* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #101113;
  color: #f4f0e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.site-header > a {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.site-header nav,
.site-header form {
  align-items: center;
  display: flex;
  gap: 14px;
}

.site-header button,
.subtle-link,
.dropzone button,
.login-shell button {
  background: #f4f0e8;
  border: 0;
  border-radius: 6px;
  color: #101113;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.random-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 72px 24px 24px;
  position: relative;
}

.random-image {
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 128px);
  max-width: min(1120px, 100%);
  object-fit: contain;
}

.image-caption {
  align-items: center;
  background: rgba(16, 17, 19, 0.72);
  border-radius: 8px;
  bottom: 28px;
  display: flex;
  gap: 14px;
  left: 50%;
  max-width: calc(100vw - 48px);
  padding: 10px 12px;
  position: fixed;
  transform: translateX(-50%);
}

.empty-state,
.admin-shell,
.login-shell {
  margin: 0 auto;
  max-width: 980px;
  padding: 120px 24px 48px;
}

.empty-state h1,
.admin-shell h1,
.login-shell h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 12px;
}

.kicker {
  color: #ffcf5a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.dropzone {
  border: 2px dashed rgba(244, 240, 232, 0.42);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin: 28px 0;
  padding: 28px;
}

.dropzone input[type="file"] {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.dropzone label {
  align-items: center;
  cursor: pointer;
  display: grid;
  min-height: 160px;
  place-items: center;
  text-align: center;
}

.dropzone label span {
  color: #c9c2b4;
  display: block;
  margin-top: 8px;
}

.recent-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.recent-image {
  background: #1a1c20;
  border-radius: 8px;
  overflow: hidden;
}

.recent-image img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.recent-image div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.recent-image span,
.validation {
  color: #f49a7b;
}

.status-message {
  color: #8ee6b0;
}

.login-shell form {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.login-shell input:not([type="checkbox"]) {
  background: #1a1c20;
  border: 1px solid #3b3f46;
  border-radius: 6px;
  color: #f4f0e8;
  padding: 12px;
}

.checkline {
  align-items: center;
  display: flex;
  gap: 8px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
