/* Sign-in and sign-up pages. */
.auth { display: flex; justify-content: center; padding: 56px 16px; }
.auth-card {
    width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.auth-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 8px;
    background: linear-gradient(90deg, var(--accent), var(--sun), var(--teal));
}
.auth-title { font: 800 1.8rem/1.2 var(--display); margin: 4px 0 22px; }
.auth-error { color: var(--bad); background: var(--bad-soft); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px; font-weight: 600; }
.auth-submit { width: 100%; justify-content: center; margin-top: 6px; padding: 13px 20px; font-size: 1rem; }
.auth-alt { color: var(--muted); font-size: .95rem; margin: 20px 0 0; text-align: center; }
.auth-alt a { color: var(--accent); font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; color: var(--fg); }
.field input, .field select {
    font: 600 1rem var(--ui); padding: 12px 14px; border: 2px solid var(--line);
    border-radius: var(--radius); background: var(--paper); color: var(--fg);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .hint { color: var(--muted); font-size: .85rem; }
.field .err { color: var(--bad); font-size: .85rem; font-weight: 600; }
.field .err:empty { display: none; }
.field.has-error input, .field.has-error select { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }

/* Learner / Instructor choice on sign-up. */
.account-type { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.account-type legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.account-type__option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
    border: 2px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.account-type__option:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.account-type__option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.account-type__option input { accent-color: var(--accent); margin-top: 4px; }
.account-type__option span { display: flex; flex-direction: column; gap: 2px; }
.account-type__option small { color: var(--muted); font-size: .85rem; }
.account-type .err:empty { display: none; }
.account-type .err { color: var(--bad); font-size: .85rem; font-weight: 600; }

.auth-done { text-align: center; }
.auth-done__icon { font-size: 2.6rem; margin: 6px 0 4px; }
.auth-done p { color: var(--muted); }
.auth-done b { color: var(--fg); }
.auth-note { background: var(--sun-soft); border-radius: var(--radius); padding: 10px 14px; color: var(--fg) !important; }
.auth-ok { color: var(--ok); font-weight: 700; margin: 10px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; }
.auth-confirm { background: var(--sun-soft); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; }
.auth-confirm p { margin: 0 0 10px; font-weight: 600; }
.auth-forgot { text-align: right; margin: -6px 0 14px; font-size: .9rem; }
.auth-forgot a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-sub { color: var(--muted); margin: -10px 0 20px; }
