/* ============================================================
   MoveClerk — sign-in / create-account screen (Front Door wave,
   2026-10-19). Rebuilt to the approved Front Door mock: the app
   family's exact tokens, scoped to #login-screen so the signed-in
   app keeps its own theme. Replaces the 2026-10-03 futuristic
   login skin (glass/glow/aurora) wholesale — none of its values
   remain on this screen. Markup ids/classes and all behavior are
   untouched; this file is presentation only.
   ============================================================ */

#login-screen {
  /* The app family's tokens, scoped to this screen. */
  --bg:#0a1120; --surface:#121e33; --surface-2:#16253f; --surface-3:#1b2c4c;
  --line:#223657; --line-strong:#2e4a73;
  --text:#eef3fa; --muted:#b6c4da; --muted-2:#8fa3c2;
  --teal:#38e1ff; --teal-soft:rgba(56,225,255,.12);
  --amber:#f2b33d; --red:#ff9a7a; --green:#3dd68c;
  --radius:18px;
  color-scheme:dark;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 32px 16px;
}

/* ---------- Shell: brand pane + card (the mock's auth shell) ---------- */
#login-screen .login-shell {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  width: 100%;
  max-width: 940px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(56,225,255,.05), 0 24px 80px rgba(0,0,0,.55);
  overflow: hidden;
}

/* ---------- Brand pane ---------- */
#login-screen .login-brand {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: flex-start;
  color: var(--text);
}
#login-screen .login-brand::before { background-image: none; }
#login-screen .login-mark {
  width: 76px; height: 76px; border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: none;
  margin-bottom: 18px;
}
#login-screen .login-wordmark { height: 44px; width: auto; display: block; margin-bottom: 12px; }
#login-screen .login-logo {
  font-size: 27px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 10px;
}
#login-screen .login-logo span { color: var(--teal); }
#login-screen .login-tagline {
  font-size: 16px; font-weight: 400; line-height: 1.5;
  color: var(--muted); margin: 0 0 22px; letter-spacing: 0;
}
#login-screen .login-points { list-style: none; margin: 0 0 30px; padding: 0; }
#login-screen .login-points li {
  padding: 7px 0; font-size: 15.5px; color: var(--text);
  display: flex; gap: 10px; align-items: baseline;
}
#login-screen .login-points li::before { content: "✓"; color: var(--teal); font-weight: 800; }
#login-screen .login-trial {
  margin: auto 0 0; padding-top: 24px;
  font-size: 14px; font-weight: 500; color: var(--muted-2);
}

/* ---------- Form card ---------- */
#login-screen .login-shell .login-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  padding: 40px 38px;
  color: var(--text);
}
#login-screen .login-card h1,
#login-screen .login-card h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); margin: 0 0 6px;
}
#login-screen .login-card .muted { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
#login-screen .login-card p.muted { margin-bottom: 22px; }

/* ---------- Labels, inputs, password toggle ---------- */
#login-screen label {
  display: block;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  margin: 16px 0 7px;
}
#login-screen input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--text);
  background: #0d1730;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
#login-screen input:hover { border-color: var(--line-strong); }
#login-screen input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
#login-screen ::placeholder { color: var(--muted-2); opacity: 1; }
/* Keep browser autofill dark so it never flashes white. */
#login-screen input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 60px #0d1730 inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}
#login-screen .pw-toggle { color: var(--teal); font-weight: 700; }
#login-screen .pw-toggle:hover { color: #2ad6c7; }
#login-screen .req { color: var(--red); }
#login-screen .opt { color: var(--muted-2); font-weight: 500; }

/* ---------- Buttons & links ---------- */
#login-screen .btn.primary {
  background: var(--teal);
  border-color: transparent;
  color: #06121f;
  box-shadow: none;
}
#login-screen .btn.primary:hover { background: #2ad6c7; transform: none; box-shadow: none; }
#login-screen .btn.primary:active { background: var(--teal); transform: scale(.98); }
#login-screen .btn.primary.big {
  width: 100%;
  min-height: 56px;
  font-size: 17px; font-weight: 700;
  border-radius: 12px;
  margin-top: 20px;
}
#login-screen .link-btn {
  display: inline-block;
  padding: 12px 10px;
  min-height: 48px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
}
#login-screen .link-btn:hover { color: #2ad6c7; background: var(--teal-soft); text-decoration: none; }
#login-screen .auth-links {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 2px;
  text-align: center;
}
#login-screen .auth-links p { margin: 0; color: var(--muted); font-size: 15.5px; }
#login-screen .fine-note {
  text-align: center; color: var(--muted-2);
  font-size: 13.5px; margin: 12px 0 0;
}
#login-screen .fine-note a { color: var(--teal); }

/* ---------- Status text ---------- */
#login-screen .error { color: var(--red); font-weight: 600; }
#login-screen .notice { color: var(--green); font-weight: 600; }
#login-screen a { color: var(--teal); }

/* ---------- Folds on this screen (2FA + the forgot door) ---------- */
#login-screen .auth-fold {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-top: 16px;
  overflow: hidden;
}
#login-screen .fold-btn {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  padding: 15px 16px;
  min-height: 60px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
}
#login-screen .fold-btn:hover { background: var(--surface-2); }
#login-screen .fold-btn .sum-title {
  font-size: 16px; font-weight: 700;
  display: flex; flex-direction: column; gap: 1px;
}
#login-screen .fold-btn .count { font-size: 13px; color: var(--muted-2); font-weight: 600; background: transparent; padding: 0; border-radius: 0; }
#login-screen .fold-btn .plus {
  margin-left: auto; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; line-height: 1;
  transition: transform .18s ease;
}
#login-screen .auth-fold.open .plus { transform: rotate(45deg); }
#login-screen .fold-body { border-top: 1px solid var(--line); padding: 2px 16px 18px; }
/* The forgot door is the fold's closed face standing alone: clicking it
   swaps the card to the forgot panel (the live flow), it does not expand
   in place. */
#login-screen #forgot-link {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-top: 16px;
}
#login-screen #forgot-link .plus { transform: none; }

/* ---------- Forgot-password panel ---------- */
#login-screen #forgot-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 4px 18px 18px;
  margin-top: 16px;
}
#login-screen .step-tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft);
  border: 1px solid rgba(56,225,255,.35);
  padding: 5px 10px; border-radius: 999px;
  margin: 14px 0 2px;
}
#login-screen .step-tag.alt {
  color: var(--amber); background: rgba(242,179,61,.12);
  border-color: rgba(242,179,61,.4);
}
#login-screen #forgot-section .btn.primary.big { margin-top: 16px; }
#login-screen #forgot-step2 .muted { margin-bottom: 4px; }

/* ---------- Signup section ---------- */
#login-screen #signup-section { margin-top: 6px; }

/* ---------- Small screens: brand becomes a slim header ---------- */
@media (max-width: 860px) {
  #login-screen .login-shell { grid-template-columns: 1fr; max-width: 520px; }
  #login-screen .login-brand {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    align-items: center; text-align: center;
    padding: 30px 24px 24px;
  }
  #login-screen .login-mark { margin-bottom: 12px; }
  #login-screen .login-tagline { margin-bottom: 0; }
  #login-screen .login-points, #login-screen .login-trial { display: none; }
  #login-screen .login-shell .login-card { padding: 30px 24px 28px; }
}
@media (max-width: 400px) {
  #login-screen { padding: 16px 10px; }
  #login-screen .login-shell .login-card { padding: 26px 18px 24px; }
  #login-screen .login-brand { padding: 24px 18px 20px; }
}
