/* Shared styles for the custom auth pages (sign-in / sign-up). Mobile-first;
   uses the brand tokens from theme.css. */
.auth-body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem; background: var(--mist); padding: 2rem 1rem; box-sizing: border-box;
}
.auth-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); }
.auth-brand .mark { width: 34px; height: 34px; display: block; flex: none; }
.auth-brand .mark svg { width: 100%; height: 100%; display: block; }
.auth-brand .name .feed { color: var(--gold); }
.auth-brand .name { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.auth-pitch { text-align: center; color: var(--muted); font-size: .93rem; max-width: 30rem; margin: -.3rem 0 0; line-height: 1.5; }
.auth-pitch b { color: var(--navy); }

.auth-card {
  width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--fog);
  border-radius: 18px; padding: 1.6rem 1.5rem; box-sizing: border-box;
  box-shadow: 0 10px 40px rgba(12, 35, 64, .06);
}
.auth-card h1 { font-family: 'Cabinet Grotesk', sans-serif; font-size: 1.4rem; margin: 0 0 .3rem; color: var(--navy); letter-spacing: -.01em; }
.auth-card .sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.2rem; line-height: 1.5; }
.auth-card .sub b { color: var(--navy); }

.auth-field { margin-bottom: .85rem; }
.auth-field label { display: block; font-weight: 700; font-size: .84rem; margin-bottom: .32rem; color: var(--navy); }
.auth-field input, .auth-field textarea {
  width: 100%; border: 1px solid var(--fog); border-radius: 11px; padding: .72rem .85rem;
  font: inherit; color: var(--navy); box-sizing: border-box; background: #fff; -webkit-appearance: none;
}
.auth-field input:focus, .auth-field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 116, 144, .12);
}
.auth-field .row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }

.auth-btn {
  width: 100%; border: 0; border-radius: 11px; padding: .82rem 1rem; font-weight: 700;
  font-size: 1rem; cursor: pointer; background: var(--coral); color: #fff; margin-top: .5rem;
  min-height: 46px; /* comfortable tap target */
}
.auth-btn:hover { background: var(--coraldark); }
.auth-btn:disabled { opacity: .55; cursor: default; }

.auth-error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; border-radius: 11px; padding: .6rem .8rem; font-size: .86rem; margin-bottom: 1rem; line-height: 1.4; }
.auth-note { color: var(--muted); font-size: .82rem; margin: .4rem 0 0; line-height: 1.45; }
.auth-alt { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 1.15rem; }
.auth-alt a { color: var(--teal); font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-link { background: none; border: 0; color: var(--teal); font-weight: 600; font-size: .84rem; cursor: pointer; padding: 0; }
.auth-link:hover { text-decoration: underline; }
.auth-hidden { display: none !important; }
.auth-spin { opacity: .6; }

/* Affirmative acceptance of the Terms + Privacy Policy.
   `.terms-check` is the inline control on the sign-up form; `.terms-gate` is the
   undismissable panel auth.js puts in front of sign-in / the dashboard for anyone whose
   acceptance is missing or predates the current version. Both are styled here so the two
   places a customer can agree look identical. */
.terms-check {
  display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0 .2rem;
  font-size: .86rem; line-height: 1.45; color: var(--muted); cursor: pointer;
}
.terms-check input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--teal); cursor: pointer;
}
.terms-check a { color: var(--teal); font-weight: 700; }

.terms-gate {
  position: fixed; inset: 0; z-index: 9999; background: rgba(12, 35, 64, .55);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.terms-gate-card {
  width: 100%; max-width: 460px; background: #fff; border-radius: 18px;
  padding: 1.6rem 1.5rem; box-sizing: border-box; box-shadow: 0 18px 60px rgba(12, 35, 64, .28);
  color: var(--navy);
}
.terms-gate-card h2 {
  font-family: 'Cabinet Grotesk', sans-serif; font-size: 1.35rem; margin: 0 0 .35rem;
  color: var(--navy); letter-spacing: -.01em;
}
.terms-gate-sub { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0 0 1rem; }

@media (max-width: 440px) {
  .auth-body { padding: 1.1rem .75rem; gap: 1rem; }
  .auth-card { padding: 1.3rem 1.05rem; border-radius: 14px; }
  .auth-card h1 { font-size: 1.25rem; }
  .terms-gate-card { padding: 1.3rem 1.05rem; border-radius: 14px; }
}
