/* Sign-in / sign-up / consent pages */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth { width: min(100% - 32px, 460px); margin: max(8vh, 40px) auto 48px; flex: 1; animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.mark {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 22px; position: relative;
  background: conic-gradient(from 200deg, #0a84ff, #5e5ce6, #bf5af2, #ff375f, #ff9f0a, #30d158, #0a84ff);
}
.mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.auth h1 { font-size: 32px; line-height: 1.125; font-weight: 600; letter-spacing: .004em; text-align: center; margin: 0 0 8px; }
.auth > .sub { text-align: center; color: var(--text-2); margin: 0 0 32px; font-size: 17px; }
.auth > .sub b { color: var(--text); font-weight: 500; }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.auth .actions { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.auth .links { text-align: center; margin-top: 28px; font-size: 14px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.auth .divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 18px 0; }
.auth .divider::before, .auth .divider::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
.who {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 980px; background: var(--fill);
  margin: 0 auto 20px; width: max-content; max-width: 100%; font-size: 14px; cursor: pointer; border: 0;
}
.who img { width: 28px; height: 28px; }
.error-box { color: var(--danger); font-size: 14px; text-align: center; min-height: 20px; margin: 4px 0 0; }
.step { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateX(10px); } }
.auth-foot { text-align: center; font-size: 12px; color: var(--text-3); padding: 20px 16px calc(72px + env(safe-area-inset-bottom)); }
@media (max-width: 480px) {
  .auth { margin-top: max(5vh, calc(24px + env(safe-area-inset-top))); }
  .auth h1 { font-size: 28px; }
  .auth > .sub { margin-bottom: 24px; }
  .field.has-suffix input { padding-right: 16px; }
  .field .suffix { display: none; }            /* mailbox domain shown in the hint below instead */
  .consent-actions { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg); }
}

/* Account chooser */
.accounts { display: flex; flex-direction: column; }
.accounts .row { min-height: 64px; font-size: 16px; }
.accounts .row img { width: 40px; height: 40px; }
.accounts .row .chev { color: var(--text-3); width: 14px; height: 14px; }

/* Consent */
.client-mark {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px; display: grid; place-items: center; font-size: 28px; font-weight: 600;
  color: #fff; background: linear-gradient(160deg, #8e8e93, #48484a);
}
.host { font-family: var(--mono); font-size: 15px; background: var(--fill); padding: 2px 8px; border-radius: 6px; color: var(--text); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: rgba(255, 159, 10, .12); color: var(--text); font-size: 13px; line-height: 1.45; margin-bottom: 20px; }
.notice svg { width: 16px; height: 16px; flex: none; color: var(--warn); margin-top: 1px; }
.scopes .row { align-items: flex-start; padding: 12px 14px; }
.scopes .dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.scopes .dot svg { width: 15px; height: 15px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
