:root { color-scheme: light; --bg: #f5f6fc; --surface: #fff; --text: #242943; --muted: #606983; --line: #dfe4f2; --control: #8790a8; --accent: #5148d8; --soft: #ebe9ff; --on-accent: #fff; --danger: #a12a32; --danger-soft: #fff0f1; --shadow: 0 20px 64px #32395f0d; }
html[data-theme="dark"] { color-scheme: dark; --bg: #11182a; --surface: #1a2338; --text: #f1f3ff; --muted: #b1bdd8; --line: #34415d; --control: #8d9aba; --accent: #b8b1ff; --soft: #302d56; --on-accent: #282154; --danger: #ffb1aa; --danger-soft: #452e30; --shadow: 0 20px 64px #070e2026; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100dvh; margin: 0; font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.login-header { display: flex; justify-content: space-between; align-items: center; max-width: 1360px; margin: auto; padding: 32px 48px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.brand strong { font-size: 1.2rem; }
.brand span { color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.theme-toggle { min-height: 44px; min-width: 76px; padding: 8px 16px; border: 1px solid var(--control); border-radius: 12px; background: var(--surface); color: var(--text); }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .85fr); align-items: center; gap: clamp(40px, 6vw, 100px); width: min(1190px, calc(100% - 96px)); margin: 44px auto 60px; }
.course-tag { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: .875rem; font-weight: 650; }
.course-tag svg { width: 20px; height: 20px; }
h1 { margin: 22px 0 20px; font-size: clamp(2.6rem, 4.5vw, 3.8rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 740; text-wrap: balance; }
h1 span { color: var(--accent); }
.welcome-copy { max-width: 490px; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }
.illustration-wrap { margin: 24px -20px 0; }
.login-illustration { display: block; width: 100%; height: auto; }
.course-facts { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .875rem; }
.course-facts span { display: inline-flex; gap: 6px; align-items: center; }
.course-facts b { color: var(--text); }
.course-facts svg { color: var(--accent); width: 19px; height: 19px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--accent); background: var(--soft); margin-bottom: 22px; }
.card-icon svg { width: 28px; height: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .8rem; font-weight: 650; }
h2 { margin: 0 0 12px; font-size: 1.85rem; line-height: 1.15; letter-spacing: -.04em; text-wrap: balance; }
.card-copy { margin: 0 0 28px; color: var(--muted); font-size: .94rem; }
form > label { display: block; margin: 18px 0 8px; font-size: .875rem; font-weight: 600; }
input:not([type="checkbox"]):not([type="hidden"]) { display: block; width: 100%; min-height: 50px; border: 1px solid var(--control); border-radius: 10px; padding: 11px 14px; color: var(--text); background: var(--bg); font-size: 1rem; }
.password-field { position: relative; }
.password-field input { padding-right: 52px !important; }
.password-field button { display: grid; place-items: center; position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.remember { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; font-weight: 450; color: var(--muted); cursor: pointer; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 20px; padding: 12px; border: 0; border-radius: 11px; color: var(--on-accent); background: var(--accent); font-weight: 650; text-decoration: none; transition: filter 150ms, opacity 150ms; }
.login-submit:hover { filter: brightness(.94); }
.login-submit:active { filter: brightness(.86); }
.login-submit:disabled { opacity: .65; cursor: wait; }
.submit-status { margin: 6px 0 0; min-height: 1.2em; font-size: .8rem; color: var(--muted); }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.privacy-note p { margin: 0; font-size: .78rem; line-height: 1.6; }
.privacy-note svg { width: 17px; height: 20px; }
.invite-note { margin: 20px 0 0; font-size: .8rem; color: var(--muted); }
.form-error { padding: 12px 14px; margin: 20px 0; border-radius: 10px; color: var(--danger); background: var(--danger-soft); font-size: .9rem; }
.field-hint { margin: 7px 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.login-footer { padding: 0 24px 24px; text-align: center; color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) { .login-layout { gap: 28px; width: calc(100% - 48px); grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); margin-top: 24px; } .login-header { padding: 24px; } .login-card { padding: 28px; } h1 { font-size: 2.65rem; } .course-facts { gap: 12px; } }
@media (max-width: 700px) { .login-layout { grid-template-columns: minmax(0, 1fr); max-width: 460px; width: calc(100% - 32px); margin: 20px auto 32px; gap: 28px; } .login-header { padding: 16px; } .welcome { text-align: center; } h1 { font-size: 2.65rem; margin: 14px 0; } .welcome-copy { margin: 0 auto; font-size: .94rem; } .illustration-wrap { margin: 8px 0 0; } .login-illustration { max-height: 200px; } .course-facts { justify-content: center; } .login-card { padding: 26px 24px; border-radius: 20px; } .brand span { font-size: .875rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
