/* 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; border-radius: 9px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800;
}
.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; }

@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; }
}
