@import url('/assets/css/design-system.css');
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg-page); color: var(--text-primary); font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
.auth-flow { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr); }
.auth-flow-aside { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 5vw, 72px); background: #0b2447; color: #f3f8ff; }
.auth-flow-brand { font-size: 21px; font-weight: 700; letter-spacing: -.035em; color: inherit; text-decoration: none; }
.auth-flow-aside h1 { max-width: 440px; margin: 64px 0 18px; font-size: clamp(30px, 3vw, 46px); line-height: 1.09; letter-spacing: -.045em; text-wrap: balance; }
.auth-flow-aside p { max-width: 410px; color: #bbd0e7; line-height: 1.65; }
.auth-flow-steps { display: grid; gap: 12px; margin: 44px 0; padding: 0; list-style: none; }
.auth-flow-steps li { display: flex; align-items: center; gap: 12px; color: #a9c0da; font-size: 13px; }
.auth-flow-steps li b { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border: 1px solid #6a83a0; border-radius: 50%; font-size: 11px; }
.auth-flow-steps li.active { color: #fff; font-weight: 700; }
.auth-flow-steps li.active b { border-color: #81b7ef; background: #1c65b2; }
.auth-flow-aside footer { color: #91afcd; font-size: 11px; }
.auth-flow-main { display: grid; place-items: center; padding: 32px; }
.auth-flow-card { width: min(100%, 480px); padding: clamp(24px, 4vw, 42px); border: 1px solid var(--border-default); border-radius: 18px; background: var(--bg-card); box-shadow: 0 0 0 1px rgba(0,0,0,.015), 0 8px 30px rgba(11,36,71,.06); }
.auth-flow-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 13px; background: var(--brand-subtle); color: var(--brand-text); }
.auth-flow-mark svg { width: 23px; height: 23px; }
.auth-flow-card h2 { margin: 0 0 9px; font-size: clamp(25px, 3vw, 32px); line-height: 1.16; letter-spacing: -.04em; }
.auth-flow-lead { margin: 0 0 24px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.auth-flow-lead strong { color: var(--text-primary); overflow-wrap: anywhere; }
.auth-flow-form { display: grid; gap: 15px; }
.auth-flow-form[hidden], .auth-flow-state[hidden], .auth-flow-actions[hidden] { display: none; }
.auth-flow-field { display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.auth-flow-field input { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--control-border); border-radius: 8px; outline: 0; background: var(--control-bg); color: var(--text-primary); font-size: 14px; }
.auth-flow-field input:focus { border-color: var(--control-border-focus); box-shadow: var(--focus-ring); }
.auth-flow-password { position: relative; }
.auth-flow-password input { padding-right: 52px; }
.auth-flow-password button { position: absolute; top: 3px; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 7px; background: transparent; color: var(--text-tertiary); cursor: pointer; }
.auth-flow-password button:hover { background: var(--control-bg-hover); }
.auth-flow-password button svg { width: 17px; height: 17px; }
.auth-flow-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--brand-500); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.auth-flow-button:hover { filter: brightness(1.08); }
.auth-flow-button:disabled { opacity: .58; cursor: default; }
.auth-flow-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--brand-text); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.auth-flow-link:hover { text-decoration: underline; }
.auth-flow-link:disabled { color: var(--text-tertiary); cursor: default; text-decoration: none; }
.auth-flow-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.auth-flow-message { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; background: var(--color-error-bg); color: var(--color-error-text); font-size: 12px; line-height: 1.5; }
.auth-flow-message[hidden] { display: none; }
.auth-flow-message.success { background: var(--color-success-bg); color: var(--color-success-text); }
.auth-flow-hint { margin: 17px 0 0; color: var(--text-tertiary); font-size: 12px; line-height: 1.5; }
.auth-flow-strength { margin-top: -5px; }
.auth-flow-strength-row { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 11px; }
.auth-flow-strength-row b { color: var(--brand-text); }
.auth-flow-strength-bar { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 5px; background: var(--border-default); }
.auth-flow-strength-bar span { display: block; width: calc(var(--strength, 0) * 25%); height: 100%; background: var(--color-error); }
.auth-flow-strength-bar[data-score="2"] span, .auth-flow-strength-bar[data-score="3"] span { background: var(--brand-500); }
.auth-flow-strength-bar[data-score="4"] span { background: var(--color-success); }
.auth-flow-rules { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.auth-flow-rules li { display: flex; align-items: center; gap: 5px; color: var(--text-tertiary); font-size: 11px; }
.auth-flow-rules li.is-met { color: var(--color-success-text); }
.auth-flow-rules svg { width: 13px; height: 13px; }
[data-password-mismatch] { color: var(--color-error-text); font-size: 11px; }
[data-password-mismatch][hidden] { display: none; }
@media (max-width: 780px) { .auth-flow { display: block; } .auth-flow-aside { min-height: 130px; padding: 22px 24px; } .auth-flow-aside h1, .auth-flow-aside p, .auth-flow-steps, .auth-flow-aside footer { display: none; } .auth-flow-main { min-height: calc(100dvh - 130px); padding: 24px 16px; } }
