:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f6f8f9;
    font-synthesis: none;
    --accent: #0b6e8f;
    --accent-soft: #e1f0f6;
    --ink: #17242c;
    --line: #e1e8ec;
    --muted: #5c6b75;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; padding: 16px; gap: 16px; max-width: 1920px; margin: 0 auto; }
.auth-main { display: flex; flex-direction: column; padding: 26px clamp(24px, 4.5vw, 80px) 20px; }
.brand { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 8px 14px 8px 8px; margin-bottom: 26px; border-radius: 12px; background: #fff; }
.brand-logo { display: block; width: 40px; height: 40px; object-fit: contain; }
.brand-name { color: var(--ink); font-size: 26px; font-weight: 650; letter-spacing: -0.8px; }
.auth-content { width: 100%; max-width: 390px; margin: auto; padding: 54px 0; }
.eyebrow { margin: 0 0 12px; font-size: 10px; font-weight: 650; letter-spacing: 1.7px; color: var(--muted); }
h1 { margin: 0 0 30px; font-size: clamp(28px, 2.5vw, 36px); font-weight: 650; letter-spacing: -1.1px; line-height: 1.2; }
h1.has-description { margin-bottom: 12px; }
.auth-description { margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-form { display: grid; gap: 21px; }
.form-field > label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 53px; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px 0 46px; background: #fff; color: var(--ink); font-size: 15px; transition: border-color 150ms ease; }
.input-wrap input::placeholder { color: var(--muted); opacity: 1; }
.input-wrap input:hover { border-color: #8ca0aa; }
.input-wrap input:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.input-wrap input[aria-invalid="true"] { border-color: #be3b3b; }
.field-icon { pointer-events: none; position: absolute; left: 16px; top: 17px; width: 19px; height: 19px; color: #8ca0aa; }
.password-wrap input { padding-right: 52px; }
.password-toggle { position: absolute; right: 7px; top: 7px; display: grid; place-items: center; width: 39px; height: 39px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.password-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.password-toggle svg { width: 20px; height: 20px; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -1px 0 4px; font-size: 12px; }
.remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); min-height: 30px; }
.remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.form-options a { font-weight: 600; padding: 7px 0; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 53px; border: 1px solid transparent; border-radius: 10px; background: #d83160; color: white; font-size: 14px; font-weight: 600; box-shadow: 0 5px 12px #d8316018; transition: background-color 150ms ease; }
.submit-button:hover { background: #bf2752; }
.submit-button:active { background: #a92046; }
.submit-button svg { width: 19px; height: 19px; }
.access-help { margin: 27px 0 0; text-align: center; font-size: 12px; line-height: 1.8; color: var(--muted); }
.back-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; margin-top: 26px; font-size: 13px; line-height: 1.5; }
.back-link svg { width: 17px; height: 17px; }
.recovery-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
.recovery-links .back-link { margin-top: 20px; }
.auth-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.notice { padding: 12px 14px; margin: 0 0 20px; border: 1px solid var(--line); background: var(--accent-soft); border-radius: 9px; color: var(--accent); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.notice-error { border-color: #be3b3b33; background: #fae7e7; color: #be3b3b; }
.notice-success { border-color: #178a5033; background: #e2f3ea; color: #17683f; }

.brand-panel { display: flex; flex-direction: column; position: relative; overflow: hidden; border-radius: 20px; background: var(--accent-soft); padding: 34px clamp(30px, 4.4vw, 72px) 38px; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.panel-label { font-size: 10px; font-weight: 600; letter-spacing: 1.9px; }
.panel-spark { font-size: 27px; line-height: 1; }
.panel-heading { margin-top: clamp(42px, 7vh, 80px); position: relative; z-index: 1; }
.panel-heading h2 { margin: 0; color: var(--ink); font-weight: 550; font-size: clamp(42px, 4.6vw, 70px); line-height: 1.08; letter-spacing: -2.5px; }
.panel-heading h2 span { color: var(--accent); }
.panel-heading > p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 19px 0 0; }
.optical-art { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 260px; margin: -7px -44px 22px; }
.optical-art > svg { width: 100%; max-width: 640px; margin: 0 auto; }
.optical-glasses { transform-box: view-box; transform-origin: 50% 50%; transform: rotate(-14deg); }
.focus-note { display: inline-flex; align-items: center; gap: 8px; align-self: center; position: relative; margin-top: -21px; padding: 11px 15px; border: 1px solid #ffffffb3; border-radius: 8px; background: #ffffff; color: var(--muted); box-shadow: 0 4px 14px #17242c06; font-size: 11px; }
.focus-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.panel-bottom { position: relative; z-index: 1; padding-top: 24px; border-top: 1px solid var(--line); }
.panel-bottom > p { margin: 0 0 17px; font-size: 11px; color: var(--muted); }
.feature-list { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.feature-list > span { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; font-weight: 500; }
.feature-list svg { width: 20px; height: 20px; color: var(--accent); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .optical-glasses { transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
    .optical-art > svg:hover .optical-glasses { transform: translateY(-4px) rotate(-11deg); }
}

@media (min-width: 1600px) { .auth-layout { padding: 24px; gap: 24px; } }
@media (min-width: 761px) and (max-height: 800px) {
    .brand { margin-bottom: 18px; }
    .auth-content { padding-top: 12px; padding-bottom: 12px; }
    h1 { margin-bottom: 24px; }
    .auth-form { gap: 18px; }
    .access-help { margin-top: 22px; }
    .panel-heading { margin-top: 28px; }
    .panel-heading h2 { font-size: clamp(42px, 4vw, 56px); }
    .optical-art { min-height: 210px; }
    .optical-art > svg { max-height: 250px; }
}
@media (max-width: 1050px) {
    .auth-main { padding-left: 26px; padding-right: 26px; }
    .brand-panel { padding-left: 30px; padding-right: 30px; }
    .panel-heading h2 { font-size: 48px; }
    .optical-art { margin-left: -28px; margin-right: -28px; }
    .feature-list { gap: 12px; }
    .feature-list > span { gap: 6px; font-size: 12px; }
}
@media (max-width: 760px) {
    .auth-layout { grid-template-columns: 1fr; padding: 0; gap: 0; }
    .auth-main { min-height: 100vh; min-height: 100svh; padding: 27px 24px 22px; }
    .auth-content { max-width: 400px; padding: 52px 0; }
    .brand-panel { display: none; }
    .input-wrap input { font-size: 16px; }
    .auth-footer { max-width: 400px; width: 100%; align-self: center; }
}
@media (max-width: 360px) {
    .auth-main { padding-left: 20px; padding-right: 20px; }
    h1 { font-size: 29px; }
    .form-options { font-size: 11px; gap: 8px; }
    .desktop-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .input-wrap input, .submit-button { transition: none; }
}
