/* ============================================================================
   DC Kids — sign-in screens: staff (admin.html) and customers (account.html).
   Same look as the storefront (store.css): Jost, ivory page, forest green,
   square edges, a full-bleed store photo with white type. Light only — the
   dashboard's dark mode never applies before sign-in.
   ============================================================================ */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.auth {
  --a-font: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a-green: #0F4C3A;
  --a-sage-dark: #5E9C7E;
  --a-sage-soft: #EEF5F0;
  --a-blush-soft: #FBF0EF;
  --a-bg: #FAFAF8;
  --a-ink: #1A1A1A;
  --a-ink-soft: #4B5563;
  --a-muted: #6B7079;
  --a-line: #E3DAD8;
  --a-danger: #B42318;
  --a-ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  font-family: var(--a-font);
}

/* ------------------------------------------------------------- layout ---- */
/* admin.js toggles these with style.display = 'flex' / 'none'. */
.auth {
  display: flex;
  min-height: 100vh; min-height: 100dvh;
  background: var(--a-bg);
  color: var(--a-ink);
  font-size: 16px;
  line-height: 1.5;
}

.auth__photo {
  position: relative;
  flex: 0 0 50%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 3.4vw, 48px);
  color: #fff;
  background: #23241f center / cover no-repeat;
  overflow: hidden;
}
.auth__photo--login  { background-image: url('images/promo_store5.jpg'); background-position: center 35%; }
/* top fade keeps the logo legible; bottom fade carries the headline */
.auth__photo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 24%),
    linear-gradient(to top, rgba(0,0,0,.66) 0%, rgba(0,0,0,.18) 46%, rgba(0,0,0,0) 66%);
}
.auth__photo > * { position: relative; }

.auth__brand {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  min-height: 44px; color: #fff;
  font-weight: 600; font-size: 20px; letter-spacing: .34em; text-transform: uppercase;
}
.auth__brand:hover { color: #fff; }
.auth__brand img { height: 40px; width: auto; filter: drop-shadow(0 1px 8px rgba(0,0,0,.3)); }

.auth__eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.86); }
.auth__photo-title {
  margin: 0; max-width: 16ch;
  font-weight: 400; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.12; letter-spacing: -0.005em;
  text-shadow: 0 1px 20px rgba(0,0,0,.2);
}

.auth__panel {
  flex: 1 1 50%;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(32px, 6vw, 96px) clamp(20px, 5vw, 80px);
}
.auth__card { width: 100%; max-width: 420px; animation: auth-rise .9s var(--a-ease) both; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.auth__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(28px, 5vh, 56px); }
.auth__label { margin: 0; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--a-sage-dark); }
.auth__back { font-size: 14px; color: var(--a-ink-soft); padding: 10px 0; }
.auth__back:hover { color: var(--a-green); }
.auth__title {
  margin: 0 0 12px; color: var(--a-ink);
  font-weight: 300; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.02em;
}
.auth__lede { margin: 0 0 28px; color: var(--a-ink-soft); font-size: 16px; }
.auth__lede strong { color: var(--a-ink); font-weight: 500; word-break: break-all; }

/* -------------------------------------------------------------- fields --- */
.auth__field { display: block; margin-bottom: 18px; }
.auth__field > span { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--a-sage-dark); }
.auth__field em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--a-muted); }
.auth__field input {
  display: block; width: 100%; height: 52px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--a-ink);
  background: #fff; border: 1px solid var(--a-line); border-radius: 0;
  transition: border-color .25s;
}
.auth__field input::placeholder { color: #A3A7AE; }
.auth__field input:focus { outline: none; border-color: var(--a-green); box-shadow: inset 0 0 0 1px var(--a-green); }

.auth__hint { margin: -4px 0 18px; font-size: 14px; color: var(--a-muted); }

/* The page scripts hide parts with the hidden attribute; never let a display rule undo it */
.auth [hidden] { display: none !important; }

/* ------------------------------------------------------------- buttons --- */
.auth__btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px;
  padding: 0 22px; margin-top: 8px;
  font: inherit; font-size: 15px; letter-spacing: .02em;
  color: #fff; background: var(--a-green); border: 1px solid var(--a-green); border-radius: 0;
  cursor: pointer; transition: opacity .3s, background .3s, color .3s;
}
.auth__btn:hover { opacity: .88; }
.auth__btn:disabled { opacity: .5; cursor: not-allowed; }
.auth__btn--ghost { color: var(--a-green); background: transparent; }
.auth__btn--ghost:hover { opacity: 1; color: #fff; background: var(--a-green); }

/* admin.css colours every bare <a> pink — each link here sets its own colour */
.auth__link {
  display: inline-block; padding: 4px 0 3px; border: 0; background: none; cursor: pointer; color: var(--a-green);
  font: inherit; font-size: 15px; border-bottom: 1px solid currentColor;
  transition: letter-spacing .35s var(--a-ease);
}
.auth__link:hover { letter-spacing: .03em; color: var(--a-green); }
.auth__links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 26px; }
.auth__links--stack { flex-direction: column; align-items: flex-start; gap: 14px; }

.auth__or {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 18px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--a-muted);
}
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--a-line); }
/* Holds the button's height while Google draws it, so the page doesn't jump */
.google-signin-btn { display: flex; min-height: 44px; }

/* ------------------------------------------------------ status messages --- */
.auth__note { display: none; margin: 0 0 18px; padding: 12px 14px; font-size: 14px; border-left: 2px solid; }
.auth__note:not(:empty) { display: block; }
.auth__note--ok  { color: var(--a-green); background: var(--a-sage-soft); border-color: var(--a-green); }
.auth__note--err { color: var(--a-danger); background: var(--a-blush-soft); border-color: var(--a-danger); }

/* ---------------------------------------------------------------- foot --- */
.auth__switch { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--a-line); font-size: 15px; color: var(--a-ink-soft); }
.auth__switch a, .auth__switch a:hover { color: var(--a-green); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.auth__legal { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--a-muted); }
.auth__legal a { color: var(--a-ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.auth__legal a:hover { color: var(--a-green); }

.auth a:focus-visible, .auth button:focus-visible {
  outline: 2px solid var(--a-green); outline-offset: 2px;
}
.auth__photo a:focus-visible { outline-color: #fff; }

/* ----------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
  .auth { flex-direction: column; }
  .auth__photo { flex: 0 0 auto; min-height: 300px; height: 42vh; height: 42svh; padding: 18px 20px 26px; }
  .auth__brand { font-size: 17px; letter-spacing: .26em; gap: 9px; }
  .auth__brand img { height: 34px; }
  .auth__eyebrow { margin-bottom: 8px; font-size: 12px; }
  .auth__photo-title { font-size: 26px; max-width: 18ch; }
  .auth__panel { flex: 1 0 auto; align-items: flex-start; padding: 34px 20px 48px; }
  .auth__card { max-width: 520px; }
  .auth__top { margin-bottom: 22px; }
  .auth__title { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth__card { animation: none; }
  .auth__link { transition: none; }
}
