/* Conceptobg — admin login (portfolio editorial) */
:root {
  --auth-bg: #0c0b0a;
  --auth-ink: #f2ece4;
  --auth-muted: #9a9188;
  --auth-accent: #c9a87c;
  --auth-line: rgba(242, 236, 228, 0.12);
  --auth-card: rgba(20, 18, 16, 0.92);
  --auth-radius: 16px;
  --auth-font-body: "Cormorant Garamond", Georgia, serif;
  --auth-font-display: "Playfair Display", Georgia, serif;
  --auth-font-brand: "Special Elite", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body.cf-auth {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
  font-family: var(--auth-font-body);
  color: var(--auth-ink);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201, 168, 124, 0.14), transparent 55%),
    linear-gradient(180deg, #0c0b0a 0%, #141210 100%);
  -webkit-font-smoothing: antialiased;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  border-radius: var(--auth-radius);
  background: var(--auth-card);
  border: 1px solid var(--auth-line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-card h1 {
  margin: 0 0 6px;
  font-family: var(--auth-font-brand);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--auth-ink);
}

.auth-sub {
  margin: 0 0 28px;
  text-align: center;
  font-size: 18px;
  font-style: italic;
  color: var(--auth-muted);
}

.flash {
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.flash-error {
  background: rgba(193, 18, 31, 0.14);
  border: 1px solid rgba(193, 18, 31, 0.35);
  color: #f5a8b0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auth-muted);
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--auth-line);
  background: rgba(8, 7, 7, 0.65);
  color: var(--auth-ink);
  font-family: var(--auth-font-body);
  font-size: 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: rgba(154, 145, 136, 0.75);
}

.field input:focus {
  border-color: rgba(201, 168, 124, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.14);
  background: rgba(8, 7, 7, 0.85);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  font-family: var(--auth-font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  width: 100%;
  margin-top: 6px;
  background: #f2ece4;
  color: #1c1916;
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.auth-footer {
  margin: 24px 0 0;
  text-align: center;
  font-size: 16px;
}

.auth-footer a {
  color: var(--auth-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.auth-footer a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 22px 24px;
  }

  .field input,
  .btn {
    min-height: 48px;
  }
}
