/* Sign in, create account, forgot / reset password.
   Same split as the landing hero: the form sits on the light half, the pitch on
   the navy half, and the header runs across both. */

.auth-frame {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr;
}
.auth-main { display: grid; grid-template-columns: 1fr 1fr; }

/* ---------- form half ---------- */
.auth-form {
  display: flex; align-items: center; justify-content: center;
  padding: 32px clamp(20px, 5vw, 64px) 64px;
}
.form { width: min(400px, 100%); animation: rise 600ms var(--ease-out) both; }
.form h1 { font-size: clamp(28px, 3vw, 34px); font-weight: 650; letter-spacing: -.02em; }
.form .sub { color: var(--muted); font-size: 14.5px; margin: 10px 0 30px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder { color: var(--muted); opacity: .75; font-weight: 450; }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.field .note { font-size: 12.5px; margin-top: 6px; min-height: 18px; color: var(--muted); }
.field.is-bad input { border-color: var(--red); }
.field.is-bad .note { color: var(--red); }
.field.is-warn input { border-color: var(--amber); }
.field.is-warn .note { color: var(--amber); }
.field.is-good input { border-color: var(--green); }
.suggest {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--amber); font-size: 12.5px; font-weight: 600; text-decoration: underline;
}

.meter { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.meter .bar { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--red);
  transition: width 250ms var(--ease-out), background-color 250ms ease; }
.meter span { flex: 0 0 64px; text-align: right; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.meter.s2 i { background: var(--amber); }
.meter.s3 i { background: var(--violet); }
.meter.s4 i { background: var(--green); }

.btn {
  width: 100%; height: 50px; margin-top: 8px;
  background: var(--violet); color: #fff; border: 0; border-radius: var(--r-sm);
  font: 600 15px var(--sans); letter-spacing: .01em; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover:not(:disabled) { background: var(--violet-hover); } }

.linkrow { display: flex; justify-content: flex-end; margin: -4px 0 14px; }
.linkrow a, .alt a { text-decoration: none; }
.linkrow a { color: var(--muted); font-size: 13px; font-weight: 550; }
.alt { margin-top: 24px; font-size: 14px; color: var(--muted); }
.alt a { color: var(--violet-ink); font-weight: 650; }
@media (hover: hover) and (pointer: fine) {
  .linkrow a:hover, .alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

.banner, .refbadge {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; margin-bottom: 18px; border-radius: var(--r-sm);
  border-left: 3px solid currentColor; font-size: 13.5px; line-height: 1.5;
}
.banner-err { background: color-mix(in srgb, var(--red) 9%, transparent); color: var(--red); }
.banner-ok, .refbadge { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.banner-info { background: var(--violet-soft); color: var(--violet-ink); }
.refbadge svg { flex: 0 0 auto; margin-top: 2px; }

/* ---------- pitch half ---------- */
.auth-side {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px clamp(24px, 5vw, 72px) 64px;
  color: var(--on-navy);
}
.auth-side .bigC {
  position: absolute; z-index: 0; right: -.18em; bottom: -.2em;
  font-size: clamp(380px, 40vw, 620px); font-weight: 800; line-height: .8;
  color: var(--violet); pointer-events: none; user-select: none;
  animation: rise 1000ms var(--ease-out) both;
}
.side-copy { position: relative; z-index: 1; max-width: 420px; }
.side-word {
  font-size: clamp(34px, 4vw, 54px); font-weight: 600; line-height: 1.05;
  letter-spacing: .3em; text-transform: uppercase;
}
.side-word span { display: block; }
.side-word span + span { color: var(--on-navy-muted); }
.side-lede { color: var(--on-navy-muted); margin: 24px 0 30px; font-size: 15px; max-width: 38ch; }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.callouts li { display: flex; align-items: center; gap: 16px; font-size: 13.5px; font-weight: 550; }
.callouts i { flex: 0 0 44px; height: 1px; background: var(--on-navy); opacity: .4; }
.side-foot { margin-top: 34px; font-size: 12.5px; color: var(--on-navy-muted); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 820px) {
  .auth-main { grid-template-columns: 1fr; }
  .auth-form { background: var(--mist); padding-top: 20px; padding-bottom: 48px; align-items: flex-start; }
  .auth-side { background: var(--navy); padding: 44px 20px 52px; }
  .auth-side .bigC { font-size: 300px; right: -.25em; bottom: -.25em; opacity: .9; }
  .side-word { font-size: 30px; }
}
