/* The Black Directory — Admin Log In (layout mirrors the Kindness Courier admin login card) */
:root {
  --ink: #0c0c0e; --surface: #141216; --surface-2: #1c1920;
  --cream: #f5efe2; --muted: #b7ada0; --muted-2: #8a8177;
  --gold: #d4af37; --gold-2: #e8c766;
  --red: #c8102e; --green: #0f8a3c;
  --line: rgba(212, 175, 55, .22); --line-soft: rgba(255, 255, 255, .08);
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; line-height: 1.5; color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(120% 80% at 50% -10%, #1a1620, #0c0c0e 55%) fixed, #0c0c0e;
}
.serif { font-family: "Cormorant Garamond", Georgia, serif; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  position: relative; overflow: hidden;
  width: min(400px, 100%); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px 26px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4);
  display: flex; flex-direction: column; gap: 14px;
}
/* red / black / green band across the top of the card, edged in gold */
.pan-stripe { position: absolute; inset: 0 0 auto 0; height: 5px; display: flex; border-bottom: 1px solid var(--gold); }
.pan-stripe span { flex: 1; }
.pan-stripe span:nth-child(1) { background: var(--red); }
.pan-stripe span:nth-child(2) { background: #000; }
.pan-stripe span:nth-child(3) { background: var(--green); }

.logo-link { align-self: center; display: flex; line-height: 0; border-radius: 10px; }
.login-logo {
  height: 134px; width: auto; display: block; border-radius: 10px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .9), 0 0 0 1px var(--line);
}
.login-card h1 { margin: 4px 0 0; text-align: center; font-size: 32px; font-weight: 700; color: var(--gold-2); line-height: 1.1; }
.sub {
  text-align: center; margin: -6px 0 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--cream); }
input {
  font: inherit; font-weight: 500; width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line-soft); background: #0e0d10; color: var(--cream);
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--red); }
.pw-row { position: relative; display: block; }
.pw-row input { padding-right: 64px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 6px 8px; border-radius: 8px; cursor: pointer;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--gold-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
}
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1408; }
.btn.primary:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: wait; }

.error {
  margin: 0; font-size: 14px; color: #ffb4bf; text-align: center;
  background: rgba(200, 16, 46, .12); border: 1px solid rgba(200, 16, 46, .45);
  border-radius: 10px; padding: 9px 12px;
}
.back-link { align-self: center; margin-top: 6px; color: var(--muted-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.back-link:hover { color: var(--gold-2); }
