:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #102039; background: #edf3f8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #fff 0, transparent 35%), #edf3f8; }
.auth-shell { width: min(100%, 680px); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #1268a9; font-weight: 900; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #1268a9; color: #fff; font-size: 15px; }
.card { background: #fff; border: 1px solid #d9e4ee; border-radius: 28px; padding: clamp(28px, 6vw, 52px); box-shadow: 0 20px 60px rgba(20, 51, 79, .12); }
.eyebrow { margin: 0 0 10px; color: #1268a9; font-size: .82rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.02; letter-spacing: -.045em; }
.intro { margin: 0 0 28px; color: #5b6e84; font-size: 1.08rem; line-height: 1.6; }
label { display: block; margin: 18px 0 8px; font-weight: 800; }
input { width: 100%; min-height: 54px; padding: 13px 15px; border: 2px solid #c9d7e3; border-radius: 14px; color: #102039; background: #fff; font: inherit; }
input:focus { border-color: #1268a9; outline: 4px solid rgba(18, 104, 169, .12); }
input[readonly] { color: #53667c; background: #f4f7fa; }
button, .button { display: inline-flex; justify-content: center; width: 100%; min-height: 56px; margin-top: 24px; padding: 15px 22px; border: 0; border-radius: 15px; background: #1268a9; color: #fff; font: inherit; font-weight: 900; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #0d568d; }
.message { margin: 0 0 22px; padding: 15px 17px; border-radius: 14px; line-height: 1.5; }
.error { color: #8b2430; background: #fff0f1; border: 1px solid #f4c8cd; }
.success { color: #175d3d; background: #eefaf4; border: 1px solid #bde7d0; }
.note { margin: 12px 0 0; color: #6c7d90; font-size: .91rem; line-height: 1.5; }
.password-rules { margin: 12px 0 4px; padding: 15px 17px; border: 1px solid #cfe0ed; border-radius: 14px; color: #435a71; background: #f3f8fc; font-size: .92rem; line-height: 1.5; }
.password-rules strong, .password-rules span { display: block; }
.password-rules ul { margin: 7px 0; padding-left: 21px; }
.password-rules li::marker { color: #1268a9; }
.account-grid { display: grid; gap: 14px; margin: 24px 0 4px; }
.account-item { padding: 17px; border-radius: 16px; background: #f2f6f9; }
.account-item small { display: block; margin-bottom: 4px; color: #6c7d90; font-weight: 700; }
.account-item strong { overflow-wrap: anywhere; }
.role { display: inline-flex; margin: 3px 6px 3px 0; padding: 7px 10px; border-radius: 999px; color: #075083; background: #dceefb; font-weight: 800; }
.secondary { color: #102039; background: #e8eef3; }
.secondary:hover { background: #dce5ec; }
.text-link { display: inline-flex; margin-top: 18px; color: #1268a9; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.password-link { margin-top: 10px; }
.registration-fields { min-width: 0; margin: 0 0 26px; padding: 20px; border: 1px solid #cfe0ed; border-radius: 18px; background: #f6f9fc; }
.registration-fields legend { padding: 0 8px; color: #1268a9; font-size: 1.1rem; font-weight: 900; }
.registration-fields > p { margin: 0 0 4px; color: #5b6e84; line-height: 1.5; }
.registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.registration-grid label { min-width: 0; }
.registration-grid label span { display: block; margin-bottom: 8px; }
.registration-grid label small { color: #6c7d90; font-weight: 600; }
.registration-grid .wide { grid-column: 1 / -1; }
@media (max-width: 520px) { body { padding: 12px; } .card { border-radius: 21px; } .registration-fields { padding: 16px; } .registration-grid { grid-template-columns: 1fr; } .registration-grid .wide { grid-column: auto; } }
