/* Account workspace. Palette and typography from login_page/login_page.css. */
:root {
  --navy: #001b44;
  --ink: #1a1f36;
  --muted: #697386;
  --blue: #0f62fe;
  --blue-hover: #0050e6;
  --accent: #1abcd6;
  --surface: #fff;
  --paper: #f4f7fb;
  --line: #e0e6eb;
  --soft-line: #eef2f7;
  --danger: #d93025;
  --danger-bg: #ffebe9;
  --focus: rgba(15, 98, 254, .25);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--navy); font-weight: 700; letter-spacing: -.035em; }
h2, .form-heading h1 { margin-bottom: 10px; font-size: 28px; line-height: 1.3; }
small { font-size: 12px; line-height: 1.55; color: var(--muted); }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px 20px; border-radius: 10px; background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; }
.identity-layout { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.identity-header { display: flex; align-items: center; width: 100%; min-height: 88px; gap: 24px; padding: 18px max(32px, calc((100vw - 1184px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.identity-brand { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 168px; padding: 10px 16px; border-radius: 9px; background: var(--navy); flex-shrink: 0; }
.identity-brand img { display: block; width: 136px; height: auto; }
.header-context { padding-left: 24px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--muted); }
.header-help { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.header-help:hover { color: var(--blue); }
.identity-main { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 32px 24px; }
.identity-main:focus { outline: none; }
.identity-card { width: 100%; max-width: 488px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 2px 4px rgba(0, 27, 68, .02), 0 16px 48px -24px rgba(0, 27, 68, .18); }
.identity-content { padding: 28px 36px; }
.account-tabs { display: flex; padding: 7px; gap: 4px; margin: 12px 12px 0; border-radius: 12px; background: var(--paper); }
.account-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.account-tabs a[aria-current] { color: var(--navy); background: var(--surface); border-color: var(--line); box-shadow: 0 1px 3px rgba(0, 27, 68, .05); }
.account-tabs a:hover { color: var(--blue); }
.form-heading { margin-bottom: 20px; }
.section-label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .015em; margin-bottom: 8px; }
.intro { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 0; }
.identity-form { display: flex; flex-direction: column; gap: 8px; }
.identity-form > label, .form-field > label, .graduation-field label { display: block; font-size: 14px; line-height: 1.5; font-weight: 600; margin-top: 7px; color: var(--ink); }
.identity-form > input, .form-field > input, .password-field input, .graduation-field input { width: 100%; min-width: 0; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.identity-form input::placeholder, .graduation-field input::placeholder { color: var(--muted); opacity: .75; }
.identity-form input:hover, .graduation-field input:hover { border-color: var(--muted); }
.identity-form input:focus, .graduation-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--focus); outline: none; }
.identity-form input[type='checkbox']:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.identity-form input[aria-invalid='true'], .identity-form input:user-invalid, .graduation-field input:user-invalid { border-color: var(--danger); }
.password-field { position: relative; }
.password-field input { padding-right: 84px; }
.password-field button { position: absolute; top: 4px; right: 4px; min-height: 44px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: 11px; font-weight: 600; }
.password-field button:hover { color: var(--blue); background: var(--paper); }
.forgot-link { align-self: flex-end; padding: 6px 0 2px; font-size: 12px; font-weight: 600; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
.primary, .secondary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); margin-top: 14px; box-shadow: 0 2px 4px rgba(15, 98, 254, .12); }
.primary:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); box-shadow: 0 3px 8px rgba(15, 98, 254, .2); }
.secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.secondary:hover:not(:disabled) { background: var(--paper); border-color: var(--muted); }
/* Aviso de aceite (sem caixa de marcação), logo acima do botão principal. */
.terms-notice { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); text-align: center; text-wrap: pretty; }
.terms-notice a { color: var(--ink); font-weight: 600; text-decoration-color: rgba(26, 31, 54, .28); }
.terms-notice a:hover { color: var(--blue); text-decoration-color: currentColor; }
.terms-notice + .primary { margin-top: 10px; }
/* Outras contas: só os logos oficiais, numa linha, mesmo tamanho e mesmo destaque. */
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--muted); font-size: 12px; font-weight: 500; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.provider-logos { display: flex; justify-content: center; gap: 12px; }
.provider-logo { flex: 0 1 96px; min-width: 56px; height: 56px; display: grid; place-items: center; padding: 0; color: #000; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 27, 68, .04); transition: border-color .15s, box-shadow .2s, transform .15s; }
.provider-logo svg { display: block; width: 24px; height: 24px; }
.provider-logo .logo-apple { width: 23px; height: 23px; margin-top: -2px; }
.provider-logo .logo-google { width: 22px; height: 22px; }
.provider-logo:hover:not(:disabled) { border-color: #c9d2de; box-shadow: 0 10px 22px -14px rgba(0, 27, 68, .35); transform: translateY(-1px); }
.provider-logo:active:not(:disabled) { transform: scale(.96); box-shadow: 0 1px 2px rgba(0, 27, 68, .04); }
.provider-logo:disabled { opacity: 1; }
/* Espera do login e do cadastro: tela inteira, translúcida, com o spinner da marca ao centro. */
.auth-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(244, 247, 251, .66); -webkit-backdrop-filter: blur(8px) saturate(140%); backdrop-filter: blur(8px) saturate(140%); animation: auth-overlay-in .16s ease-out; cursor: wait; }
.auth-overlay:focus { outline: none; }
.auth-overlay-panel { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 216px; max-width: 100%; padding: 30px 32px 26px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 2px 6px rgba(0, 27, 68, .04), 0 28px 64px -28px rgba(0, 27, 68, .38); animation: auth-panel-in .22s cubic-bezier(.2, .8, .2, 1); }
.auth-overlay-panel p { margin: 0; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; text-align: center; }
.auth-spinner { position: relative; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(from 0turn, rgba(15, 98, 254, .1) 0turn, rgba(15, 98, 254, .1) .12turn, var(--accent) .5turn, var(--blue) 1turn); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); animation: identity-spin .8s linear infinite; }
.auth-spinner::after { content: ''; position: absolute; top: 0; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blue); }
@keyframes auth-overlay-in { from { opacity: 0; } }
@keyframes auth-panel-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes auth-pulse { 50% { opacity: .45; } }
.switch-auth { text-align: center; font-size: 13px; line-height: 1.8; color: var(--muted); margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--soft-line); }
.switch-auth a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-button { display: block; min-height: 44px; padding: 12px 6px; margin: 8px auto 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover:not(:disabled) { color: var(--blue); }
.identity-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1184px; width: calc(100% - 64px); margin: 0 auto; padding: 8px 0 24px; font-size: 11px; color: var(--muted); }
.footer-brand { font-weight: 600; }
.identity-footer nav { display: flex; gap: 24px; }
.identity-footer a { color: var(--muted); text-decoration: none; }
.identity-footer a:hover { color: var(--blue); text-decoration: underline; }
.identity-message { font-size: 13px; line-height: 1.7; padding: 14px 16px; margin: 20px 0 0; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; color: var(--ink); overflow-wrap: anywhere; }
.identity-message.error { border-left-color: var(--danger); background: var(--danger-bg); color: var(--ink); }
.identity-message:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--blue); background: var(--paper); }
.step-icon .icon { width: 24px; height: 24px; }
#verificationPanel:focus { outline: none; }
#verificationCode { font-size: 24px; font-weight: 600; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 24px; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; }
.back-link .icon { width: 16px; height: 16px; }
.back-link:hover { color: var(--blue); }
.privacy-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.identity-card[aria-busy='true'] .primary:disabled::after { content: ''; width: 14px; height: 14px; flex-shrink: 0; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: identity-spin .8s linear infinite; }
@keyframes identity-spin { to { transform: rotate(360deg); } }
/* Formation, interests and profile form a single, optional account task. */
body[data-identity-page='onboarding'] .identity-card { max-width: 920px; }
body[data-identity-page='onboarding'] .identity-content { padding: 0; }
.onboarding-workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.onboarding-context { display: flex; flex-direction: column; padding: 36px 28px; border-radius: 20px 0 0 20px; background: var(--paper); border-right: 1px solid var(--line); }
.onboarding-context h1 { font-size: 25px; line-height: 1.3; margin-bottom: 12px; }
.onboarding-context > p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 32px; }
.onboarding-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.onboarding-steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.step-number { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.onboarding-steps strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.6; }
.onboarding-steps small { display: block; font-size: 12px; }
.onboarding-steps [aria-current='step'] strong { color: var(--navy); }
.onboarding-steps [aria-current='step'] .step-number { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(15, 98, 254, .08); }
.onboarding-steps .is-complete .step-number { border-color: var(--blue); color: var(--blue); }
.onboarding-optional { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 52px; color: var(--muted); }
.onboarding-optional .icon { width: 16px; height: 16px; margin-top: 3px; }
.onboarding-optional p { font-size: 12px; line-height: 1.8; margin: 0; }
.onboarding-content { padding: 32px 36px 24px; min-width: 0; }
.onboarding-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.onboarding-top .section-label { margin: 0; }
#stepCount { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
progress { appearance: none; display: block; width: 100%; height: 3px; border: 0; border-radius: 3px; margin: 12px 0 28px; background: var(--soft-line); accent-color: var(--blue); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--soft-line); }
progress::-webkit-progress-value { background: var(--blue); border-radius: 3px; }
progress::-moz-progress-bar { background: var(--blue); }
.onboarding-step h2 { font-size: 25px; }
.onboarding-step h2:focus { outline: none; }
.onboarding-step .intro { margin-bottom: 22px; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 82px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--muted); }
.choice-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; background: var(--paper); border: 1px solid var(--soft-line); border-radius: 10px; color: var(--navy); }
.choice-icon .icon { width: 23px; height: 23px; }
.choice-copy { flex: 1; min-width: 0; }
.choice strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.55; }
.choice small { display: block; margin-top: 3px; font-size: 12px; }
.choice input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: rgba(15, 98, 254, .035); }
.choice:has(input:checked) .choice-icon { color: var(--blue); background: var(--surface); border-color: var(--line); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice:has(input:disabled) { opacity: .65; cursor: wait; }
.featured .choice-icon { color: var(--blue); }
.graduation-field { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--soft-line); }
.graduation-field label { margin: 0 0 4px; }
.graduation-field small { display: block; font-size: 12px; }
.graduation-field input { width: 140px; flex-shrink: 0; }
.step-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.step-actions .primary { flex: 1; margin: 0; }
.step-actions .secondary { width: 112px; }
.sex-fieldset legend { position: static; width: auto; height: auto; clip-path: none; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.sex-choices { grid-template-columns: 1fr 1fr; }
.sex-choices .choice { min-height: 62px; }
.sex-choices .choice:last-child { grid-column: 1 / -1; }
body[data-identity-page='onboarding'] .identity-message { margin: 0 32px 24px; }
/* Course identity and the live QR are deliberately separate surfaces. */
body[data-identity-page='course-access'] .identity-card { max-width: 920px; }
body[data-identity-page='course-access'] .identity-content { padding: 0; }
.course-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 28px; border-bottom: 1px solid var(--line); }
.course-topbar .back-link, .course-topbar .section-label { margin: 0; }
.course-workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.course-context { min-width: 0; padding: 32px; background: var(--paper); border-right: 1px solid var(--line); border-radius: 0 0 0 20px; }
.course-cover-frame { margin-bottom: 28px; width: 100%; overflow: hidden; border-radius: 12px; background: var(--navy); }
.course-cover { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.course-cover-fallback { display: flex; align-items: center; justify-content: center; padding: 36px; }
.course-cover-fallback img { width: 100%; max-width: 200px; height: auto; }
.course-context h1 { font-size: 27px; line-height: 1.3; margin-bottom: 28px; overflow-wrap: anywhere; }
.account-note { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.account-note > .icon { color: var(--muted); width: 18px; height: 18px; margin-top: 4px; }
.account-note > div { min-width: 0; }
.account-note span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.account-note strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.course-context .privacy-note { font-size: 12px; margin-top: 14px; }
.course-scan { padding: 32px 36px 24px; min-width: 0; }
.course-scan .form-heading { text-align: center; margin-bottom: 20px; }
.course-scan h2 { font-size: 25px; }
.course-scan .intro { font-size: 14px; }
.course-qr-frame { width: 248px; height: 248px; max-width: 100%; padding: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 auto 18px; box-shadow: 0 3px 14px rgba(0, 27, 68, .04); }
.course-qr-frame img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-placeholder { max-width: 160px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.8; }
.qr-status { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.7; color: var(--navy); text-align: center; }
.qr-timer { min-height: 20px; margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#refreshCourseQr { max-width: 248px; margin: 14px auto 0; }
.scan-instructions { counter-reset: scan; display: grid; gap: 10px; list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--soft-line); }
.scan-instructions li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.scan-instructions li::before { counter-increment: scan; content: counter(scan); display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); font-size: 10px; font-weight: 600; }
.course-scope { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0; padding: 12px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 12px; line-height: 1.65; }
.course-scope .icon { width: 14px; height: 14px; margin-top: 1px; }
body[data-identity-page='course-access'] .identity-message { margin: 0 28px 24px; }
@media (min-width: 760px) {
  body[data-identity-page='register'] .identity-card { max-width: 560px; }
}
@media (max-width: 760px) {
  .identity-header { min-height: 76px; padding: 14px 20px; gap: 16px; }
  .identity-brand { width: 148px; padding: 10px 14px; }
  .identity-brand img { width: 120px; }
  .header-context { display: none; }
  .header-help { font-size: 11px; gap: 6px; }
  .header-help .icon { width: 18px; height: 18px; }
  .identity-main { padding: 28px 20px; align-items: flex-start; }
  .identity-content { padding: 28px; }
  .identity-footer { width: calc(100% - 40px); font-size: 10px; padding-bottom: 20px; }
  .identity-footer nav { gap: 18px; }
  .onboarding-workspace { display: block; }
  .onboarding-context { padding: 24px 28px; border: 0; border-bottom: 1px solid var(--line); border-radius: 20px 20px 0 0; }
  .onboarding-context > .section-label, .onboarding-context > h1, .onboarding-context > p, .onboarding-optional { display: none; }
  .onboarding-steps { display: flex; justify-content: space-between; gap: 12px; }
  .onboarding-steps li { gap: 8px; }
  .onboarding-steps small { display: none; }
  .onboarding-steps strong { font-size: 12px; }
  .step-number { width: 26px; height: 26px; font-size: 10px; }
  .onboarding-content { padding: 24px 28px 20px; }
  .onboarding-step h2 { font-size: 24px; }
  .course-workspace { display: block; }
  .course-topbar { padding: 10px 24px; }
  .course-topbar > .section-label { display: none; }
  .course-context { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 18px; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .course-cover-frame { grid-row: 1 / 3; margin: 0; align-self: start; }
  .course-cover { aspect-ratio: 1; }
  .course-cover-fallback { padding: 12px; }
  .course-context > .section-label { align-self: end; margin-bottom: 5px; }
  .course-context h1 { font-size: 22px; margin-bottom: 0; align-self: start; }
  .account-note { grid-column: 1 / -1; margin-top: 20px; padding-top: 16px; }
  .course-context > .privacy-note { grid-column: 1 / -1; margin-top: 8px; }
  .course-scan { padding: 28px; }
}
@media (max-width: 420px) {
  .identity-main { padding: 20px 12px; }
  .identity-header { padding: 12px 16px; }
  .identity-content { padding: 24px; }
  .identity-card { border-radius: 16px; }
  .account-tabs { margin: 10px 10px 0; padding: 5px; }
  h2, .form-heading h1 { font-size: 25px; }
  .identity-form > input, .form-field > input, .password-field input, .graduation-field input { font-size: 16px; }
  .onboarding-context { padding: 20px; border-radius: 16px 16px 0 0; }
  .onboarding-steps { gap: 8px; }
  .onboarding-steps li { gap: 6px; }
  .onboarding-steps strong { font-size: 12px; }
  .onboarding-content { padding: 24px 20px 18px; }
  .onboarding-step h2 { font-size: 23px; }
  .choice { padding: 14px 12px; gap: 10px; }
  .choice-icon { width: 34px; height: 38px; }
  .graduation-field { gap: 12px; }
  .graduation-field input { width: 120px; }
  .course-topbar { padding: 8px 20px; }
  .course-context { padding: 20px; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .course-context h1 { font-size: 20px; }
  .course-context > .section-label { font-size: 12px; }
  .course-context .account-note { margin-top: 4px; }
  .course-context > .privacy-note { margin-top: -7px; }
  .course-scan { padding: 24px 20px; }
  .course-scan h2 { font-size: 23px; }
  .course-qr-frame { width: 236px; height: 236px; }
  .identity-footer { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* Sem giro nem deslocamento: o spinner só pulsa devagar, para a espera continuar visível. */
  .auth-spinner { animation: auth-pulse 1.6s ease-in-out infinite !important; }
  .provider-logo:hover:not(:disabled), .provider-logo:active:not(:disabled) { transform: none; }
}
