/* Login and signup layout. Shared controls and surfaces come from ds/components.css. */
* { box-sizing: border-box; }
html { color-scheme: light; }
body.auth-app { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: var(--sat-surface); }
a { color: inherit; }
.auth-skip { position: fixed; left: 16px; top: 8px; z-index: 10; transform: translateY(-160%); }
.auth-skip:focus { transform: none; }
.auth-main { width: 100%; max-width: 420px; margin: auto; }
.auth-brand { display: block; width: 88px; margin: 0 auto 24px; }
.auth-brand svg { display: block; width: 100%; height: auto; }
.auth-card { padding: 32px; min-width: 0; background: var(--sat-surface); border: 1px solid var(--sat-line); box-shadow: var(--sat-shadow-elevated); }
.auth-card h1 { font-size: 28px; font-weight: var(--sat-weight-medium); letter-spacing: -.8px; line-height: 1.2; margin: 0 0 8px; text-align: center; }
.sub { margin: 0 0 26px; color: var(--sat-muted); font-size: var(--sat-type-body); line-height: 1.6; text-align: center; }
.field { margin-bottom: 20px; }
.field > label, .lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
label { font-size: var(--sat-type-control); font-weight: var(--sat-weight-medium); }
.forgot { font-size: var(--sat-type-meta); }
.forgot a, .switch a { text-underline-offset: 4px; text-decoration-color: var(--sat-line-input); }
.forgot a:hover, .switch a:hover { text-decoration-color: currentColor; }
.pwwrap { position: relative; }
.pwwrap input { padding-right: 44px; }
.pwtoggle { position: absolute; right: 3px; top: 3px; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: var(--sat-radius-small); color: var(--sat-muted); background: transparent; cursor: pointer; }
.pwtoggle:hover { color: var(--sat-ink); background: var(--sat-surface-soft); }
.pwtoggle svg { width: 17px; height: 17px; }
.auth-card .sat-btn { width: 100%; }
.btn-primary { margin-top: 4px; }
.btn-secondary { margin-top: 12px; }
.btn-google svg { width: 18px; height: 18px; }
.sso[hidden] { display: none; }
.sso-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--sat-muted); font-size: var(--sat-type-meta); }
.sso-sep::before, .sso-sep::after { content: ''; flex: 1; height: 1px; background: var(--sat-line); }
.rule { border: 0; border-top: 1px solid var(--sat-line); margin: 26px 0 0; }
/* Partner portal signup (apps/portal/signup.html): the terms summary and the acceptance box. */
.auth-terms { margin: 0 0 24px; font-size: var(--sat-type-control); color: var(--sat-muted); }
.auth-terms p { margin: 0; }
.auth-terms strong { color: var(--sat-ink); font-weight: var(--sat-weight-medium); }
.auth-check { display: flex; align-items: flex-start; margin: 4px 0 20px; font-size: var(--sat-type-control); font-weight: var(--sat-weight-body); color: var(--sat-muted); }
.auth-check input { flex: none; margin-top: 2px; }
.auth-check a { color: var(--sat-ink); text-underline-offset: 3px; }
.switch { margin: 22px 0 0; font-size: var(--sat-type-control); color: var(--sat-muted); text-align: center; }
.switch a { color: var(--sat-ink); font-weight: var(--sat-weight-medium); }
.error, .notice { display: none; font-size: var(--sat-type-control); line-height: 1.6; border-radius: var(--sat-radius-small); padding: 12px 14px; overflow-wrap: anywhere; }
.error { color: var(--sat-danger); background: var(--sat-danger-bg); margin: 0 0 20px; }
.notice { color: var(--sat-ink); background: var(--sat-surface-soft); margin: 14px 0 0; }
.error.show, .notice.show { display: block; }
.hint, .meter-label { font-size: var(--sat-type-meta); color: var(--sat-muted); margin: 8px 0 0; line-height: 1.5; }
.hint.met { color: var(--sat-success); }
.meter-track { height: 4px; background: var(--sat-surface-soft); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.meter-fill { height: 100%; width: 0; background: var(--sat-line-input); transition: width .15s; }
.meter-label { min-height: 18px; }
.meter-track[style*="hidden"], .meter-track[style*="hidden"] + .meter-label { display: none; }
#check-email, #verify-resend { display: none; }
#check-email-sub { overflow-wrap: anywhere; }
.auth-footer { margin: 20px 0 0; font-size: var(--sat-type-micro); color: var(--sat-muted); }
.auth-footer nav { display: flex; justify-content: center; gap: 20px; }
.auth-footer a { text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
input:-webkit-autofill { -webkit-text-fill-color: var(--sat-ink); -webkit-box-shadow: 0 0 0 100px var(--sat-surface) inset; caret-color: var(--sat-ink); }
@media (max-width: 520px) {
  body.auth-app { padding: 24px 16px; }
  .auth-card { padding: 28px 24px; }
  .auth-card h1 { font-size: 26px; }
  /* Avoid Safari zooming the form on input focus. */
  .auth-card .sat-input { font-size: 16px; }
}
@media (max-width: 380px) {
  .auth-card { padding: 25px 20px; }
  .auth-card h1 { font-size: 25px; }
  .lbl { gap: 8px; }
  .forgot { font-size: 11px; }
}
