/* Sign-in and reset-password pages — same look as the landing page
   (site/src/landing.css) and the dashboard (dashboard.css).
   Self-contained: these pages do not load styles.css. */

:root {
  --paper: #fbf6ee;
  --paper-2: #f4ece0;
  --card: #fffdf9;
  --ink: #2b2420;
  --ink-2: #5c524b;
  --ink-3: #776d65;
  --line: #eadfce;
  --brand: #00a0e3;
  /* Brand blue for text and buttons (5.5:1 on white, 5.1:1 on cream); --brand stays for decoration. */
  --brand-ink: #00709f;
  --brand-hover: #005f87;
  --sun: #f6b100; --sun-bg: #fff2cc;
  --rose: #e2604f; --rose-ink: #b23a2b; --rose-bg: #fde4de;
  --mint: #2f9e6e; --mint-ink: #1f7a52; --mint-bg: #dcf3e7;
  --sky: #0089c4; --sky-bg: #dcf1fb;
  --shadow: 0 2px 4px rgba(80, 55, 30, .05), 0 18px 40px -16px rgba(80, 55, 30, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.au { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 16px/1.55 'Nunito Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.auth-loading .au-shell { visibility: hidden; }
.au h1, .au h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
:where(.au) :where(button, input) { font: inherit; color: inherit; }
.au [hidden] { display: none !important; }
.au :focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.au a { color: var(--brand-ink); font-weight: 700; }

/* Headline and card sit side by side in one centred block, not at
   opposite edges of the screen. */
.au-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 72px; align-items: center;
  width: min(1080px, 100%); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 32px 40px;
}
.au-solo .au-shell { grid-template-columns: 1fr; }

/* Brand */
.au-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; }
.au-brand img { width: 36px; height: 36px; padding: 5px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(80, 55, 30, .08), 0 6px 14px -8px rgba(80, 55, 30, .35); }
.au-brand span { font: 800 20px/1 'Nunito Sans', sans-serif; letter-spacing: -.02em; }
.au-brand b { color: var(--brand-ink); }

/* Left: brand panel on the plain page background */
.au-side {
  display: flex; flex-direction: column; gap: 36px;
}
.au-side-copy h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; max-width: 12em; }
.au-side-copy em { font-style: italic; color: var(--brand-ink); }
.au-side-copy ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-weight: 700; color: var(--ink-2); }
.au-side-copy li { display: flex; align-items: center; gap: 10px; }
.au-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mint-bg); color: var(--mint-ink); font-size: 13px; flex: none; }

/* Right: the form */
.au-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; }
.au-brand-top { display: none; }
.au-solo .au-brand-top { display: inline-flex; }
.au-card { width: 100%; max-width: 420px; padding: 32px 30px; border-radius: 32px; background: var(--card); box-shadow: var(--shadow); }
.au-tag { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.au-card h1 { margin-top: 8px; font-size: 30px; line-height: 1.15; }
.au-copy { margin: 8px 0 22px; color: var(--ink-2); }

.au-form { display: grid; gap: 14px; }
.au-field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.au-field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.au-field input {
  width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--paper); font-size: 16px; font-weight: 600; color: var(--ink); transition: border-color .2s, background-color .2s;
}
.au-field input::placeholder { color: var(--ink-3); font-weight: 400; }
.au-field input:focus { outline: none; border-color: var(--brand-ink); background: var(--card); }
.au-field input[aria-invalid="true"] { border-color: var(--rose); background: #fff6f4; }
.au-password { position: relative; display: block; }
.au-password input { padding-right: 70px; }
.au-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--brand-ink); font-weight: 800; font-size: 13.5px; cursor: pointer; }
.au-eye:hover { background: var(--sky-bg); }
.au-link { padding: 0; border: 0; background: none; color: var(--brand-ink); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.au-link:hover { text-decoration: underline; }

.au-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; margin-top: 4px;
  border: 0; border-radius: 999px; background: var(--brand-ink); color: #fff !important; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(0, 160, 227, .8); transition: transform .2s var(--ease), background-color .2s;
}
.au-btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.au-btn:disabled { opacity: .65; cursor: progress; transform: none; }
.au-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: au-spin .8s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }

.au-status { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--sky-bg); color: var(--ink); font-weight: 600; font-size: 14.5px; }
.au-status.is-error { background: var(--rose-bg); color: var(--rose-ink); }
.au-status.is-ok { background: var(--mint-bg); color: var(--mint-ink); }

.au-foot { margin: 0; color: var(--ink-3); font-size: 14px; text-align: center; }
.au-foot-in { margin-top: 16px; }

@media (max-width: 900px) {
  .au-shell { grid-template-columns: 1fr; padding: 0; }
  .au-side { display: none; }
  .au-brand-top { display: inline-flex; }
  .au-panel { justify-content: flex-start; padding: calc(28px + env(safe-area-inset-top)) 16px 28px; }
  .au-card { padding: 26px 22px; border-radius: 28px; }
  .au-card h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .au-spinner { animation-duration: 2.4s; }
  .au-btn:hover { transform: none; }
}

/* Sign-up */
.au-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.au-field select { width: 100%; height: 50px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 16px; font-weight: 600; color: var(--ink); }
.au-field select:focus { outline: none; border-color: var(--brand-ink); background: var(--card); }
.au-hint { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.au-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 420px) { .au-row { grid-template-columns: 1fr; } }
.au-legal{margin:10px 0 0;font-size:.82rem;color:var(--ink-3, #8a7f76);text-align:center}.au-legal a{color:inherit;text-decoration:underline}
