@font-face {
    font-family: Nunito;
    src: url('../../admin/fonts/XRXV3I6Li01BKofINeaB.woff2') format('woff2');
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Nunito;
    src: url('../../admin/fonts/XRXV3I6Li01BKofIO-aBXso.woff2') format('woff2');
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020-202F, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: light;
    font-family: Nunito, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #24272b;
    background: #f8f9fa;
    --login-accent: #009fe3;
    --login-focus: #0076a8;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--login-focus); outline-offset: 4px; }

.login-layout {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
    padding: 24px;
    max-width: 1800px;
    margin: 0 auto;
}

.brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 680px;
    padding: 32px clamp(32px, 4.2vw, 76px) 40px;
    overflow: hidden;
    border-radius: 20px;
    background: #231f20;
    color: #fff;
}

.brand-logo { width: 192px; height: auto; margin-left: -7px; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-content { margin: 42px 0 120px; }
.brand-content .eyebrow { color: #bcbabb; margin-bottom: 24px; }
.brand-content h2 { margin: 0; font-size: clamp(38px, 3.65vw, 62px); line-height: 1.12; letter-spacing: -0.045em; font-weight: 750; }
.brand-content h2 span { color: #20b8f2; }
.brand-description { color: #c9c7c8; margin: 28px 0 0; font-size: 16px; line-height: 1.7; }
.brand-pulse { position: absolute; z-index: -1; left: 0; bottom: 66px; width: 100%; height: 210px; opacity: 0.25; }
.brand-pulse path { stroke: var(--login-accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.brand-footer { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #c9c7c8; }
.brand-dot { width: 6px; height: 6px; background: #20b8f2; border-radius: 50%; }

.login-panel { display: flex; flex-direction: column; justify-content: center; position: relative; padding: 70px 48px 80px; }
.login-content { width: 100%; max-width: 400px; margin: auto; }
.login-header { margin-bottom: 36px; }
.login-header .eyebrow { color: #0079ad; margin-bottom: 15px; }
.login-header h1 { font-size: 38px; font-weight: 750; letter-spacing: -0.045em; line-height: 1.2; margin: 0 0 12px; }
.login-header > p:last-child { color: #626972; font-size: 15px; line-height: 1.6; margin: 0; }
.login-form { display: grid; gap: 22px; }
.form-field label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 9px; }
.form-field input { display: block; width: 100%; min-width: 0; height: 52px; border: 1px solid #cbd0d6; background: #fff; border-radius: 8px; padding: 12px 14px; font-size: 16px; color: #24272b; transition: border-color 150ms; }
.form-field input:hover { border-color: #8f9aa4; }
.form-field input:focus { border-color: var(--login-focus); outline: 3px solid #0076a826; outline-offset: 1px; }
.password-field { position: relative; }
.password-field:has(.password-toggle:not([hidden])) input { padding-right: 90px; }
.password-toggle { position: absolute; right: 5px; top: 4px; min-height: 44px; padding: 0 10px; background: transparent; border: 0; border-radius: 5px; color: #4d5965; font-size: 12px; font-weight: 750; cursor: pointer; }
.password-toggle:hover { color: #006fa0; background: #f0f6f9; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; border-radius: 8px; font-size: 14px; font-weight: 800; cursor: pointer; transition: background 150ms, border-color 150ms; margin-top: 3px; border: 1px solid var(--login-accent); background: var(--login-accent); color: #002b3c; }
.login-submit:hover { background: #20b8f2; border-color: #20b8f2; }
.login-submit:active { background: #0093d1; }
.login-help { border-top: 1px solid #dfe3e7; margin-top: 30px; padding-top: 22px; font-size: 13px; color: #626972; }
.login-help summary { cursor: pointer; width: fit-content; padding: 6px 0; }
.login-help summary:hover { color: #24272b; }
.login-help p { margin: 12px 0 0; line-height: 1.7; }
.login-help a { text-underline-offset: 3px; color: #006f9e; }
.login-messages { margin-bottom: 24px; }
.login-message { border: 1px solid #e5c48b; border-radius: 8px; background: #fff5e5; color: #754610; padding: 14px 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.login-message + .login-message { margin-top: 10px; }
.login-message-success { background: #eef8f1; border-color: #b3d9be; color: #246038; }
.login-message-error { background: #fff0ef; border-color: #edb7b2; color: #9c2920; }
.login-footer { position: absolute; bottom: 16px; left: 48px; right: 48px; display: flex; justify-content: space-between; gap: 16px; color: #747b84; font-size: 11px; }
.login-footer a { text-decoration: none; }
.login-footer a:hover { color: #24272b; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1600px) {
    .login-layout { padding: 36px; }
}

@media (max-width: 1000px) {
    .login-layout { padding: 16px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
    .brand-panel { padding-left: 28px; padding-right: 28px; }
    .brand-content h2 { font-size: 38px; }
    .login-panel { padding-left: 32px; padding-right: 24px; }
    .login-footer { left: 32px; right: 24px; }
}

@media (max-width: 760px) {
    .login-layout { display: block; padding: 0; }
    .brand-panel { min-height: 0; padding: 6px 24px; border-radius: 0; flex-direction: row; align-items: center; }
    .brand-logo { width: 128px; margin: 0 0 0 -4px; }
    .brand-content, .brand-pulse { display: none; }
    .brand-footer { font-size: 11px; gap: 8px; }
    .login-panel { min-height: calc(100svh - 78px); padding: 38px 24px 24px; }
    .login-content { margin: 0 auto; }
    .login-header h1 { font-size: 34px; }
    .login-footer { position: static; width: 100%; max-width: 400px; margin: auto auto 0; padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
