/* EOS Computer login experience — intentionally isolated from the application UI. */
:root {
    --eos-ink: #0b1f36;
    --eos-muted: #66758a;
    --eos-line: #dce7f2;
    --eos-blue: #0868e8;
    --eos-blue-deep: #0754be;
    --eos-cyan: #12b8dc;
    --eos-surface: #ffffff;
}

* { box-sizing: border-box; }

body.eos-login-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--eos-ink);
    background: #f3f8fd;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.eos-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(8, 104, 232, .032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 104, 232, .032) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.eos-login-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.eos-login-bg span { position: absolute; display: block; border-radius: 50%; filter: blur(2px); }
.eos-login-bg span:nth-child(1) { width: 560px; height: 560px; top: -260px; left: -150px; background: rgba(18, 184, 220, .13); }
.eos-login-bg span:nth-child(2) { width: 620px; height: 620px; right: -250px; bottom: -330px; background: rgba(8, 104, 232, .1); }
.eos-login-bg span:nth-child(3) { width: 240px; height: 240px; right: 34%; top: 8%; background: rgba(130, 207, 255, .12); filter: blur(50px); }

.eos-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(440px, .78fr);
    width: min(1420px, calc(100% - 56px));
    min-height: min(820px, calc(100vh - 56px));
    margin: 28px auto;
    overflow: hidden;
    border: 1px solid rgba(177, 198, 220, .72);
    border-radius: 30px;
    background: var(--eos-surface);
    box-shadow: 0 36px 90px rgba(25, 65, 108, .16), 0 4px 14px rgba(25, 65, 108, .06);
}

.eos-showcase { position: relative; min-height: 760px; overflow: hidden; background: #eaf5ff; isolation: isolate; }
.eos-showcase-media { position: absolute; inset: 0; }
.eos-showcase-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(247, 252, 255, .78) 0%, rgba(247, 252, 255, .05) 34%, rgba(4, 39, 78, .06) 62%, rgba(7, 39, 72, .78) 100%),
        linear-gradient(90deg, rgba(246, 252, 255, .28), transparent 58%);
}
.eos-showcase-media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; transform: scale(1.012); }

.eos-showcase-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 34px;
}

.eos-brand-lockup, .eos-auth-mobile-brand { display: flex; align-items: center; gap: 12px; }
.eos-brand-logo {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(202, 219, 236, .9);
    border-radius: 15px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 9px 25px rgba(13, 57, 100, .12);
}
.eos-brand-logo img { display: block; width: 38px; height: 38px; object-fit: contain; }
.eos-brand-lockup strong, .eos-auth-mobile-brand strong { display: block; max-width: 270px; overflow: hidden; color: #071c31; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.eos-brand-lockup small, .eos-auth-mobile-brand small { display: block; margin-top: 4px; color: #597088; font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.eos-suite-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 999px;
    color: #31506c;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 7px 22px rgba(16, 61, 101, .08);
    backdrop-filter: blur(14px);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.eos-suite-pill i, .eos-system-ready i { width: 7px; height: 7px; border-radius: 50%; background: #16b978; box-shadow: 0 0 0 4px rgba(22, 185, 120, .13); }

.eos-showcase-copy { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 76px; max-width: 690px; color: #fff; }
.eos-overline { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 15px; font-size: 10px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eos-overline i { width: 26px; height: 2px; background: #67dcf4; box-shadow: 0 0 12px rgba(103, 220, 244, .75); }
.eos-showcase-copy h1 { margin: 0; max-width: 650px; color: #fff; font-size: clamp(37px, 3.65vw, 58px); font-weight: 800; line-height: 1.01; letter-spacing: -.052em; text-shadow: 0 2px 20px rgba(3, 22, 43, .18); }
.eos-showcase-copy h1 em { color: #9cecff; font-style: normal; }
.eos-showcase-copy > p { max-width: 615px; margin: 18px 0 0; color: rgba(237, 248, 255, .92); font-size: 14px; line-height: 1.65; }
.eos-capabilities { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.eos-capabilities span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; color: #f7fcff; background: rgba(8, 32, 58, .28); backdrop-filter: blur(12px); font-size: 10px; font-weight: 750; }
.eos-capabilities svg { width: 17px; height: 17px; fill: none; stroke: #8be7fb; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eos-showcase-foot { position: absolute; z-index: 2; right: 34px; bottom: 25px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .68); font-size: 8px; font-weight: 850; letter-spacing: .22em; }
.eos-showcase-foot i { width: 17px; height: 1px; background: rgba(255, 255, 255, .38); }

.eos-auth { display: flex; min-width: 0; padding: 28px 46px 22px; flex-direction: column; background: linear-gradient(145deg, #fff 0%, #fbfdff 100%); }
.eos-auth-mobile-brand { display: none; }
.eos-auth-content { width: min(100%, 440px); margin: auto; }
.eos-auth-head { margin-bottom: 30px; }
.eos-auth-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--eos-blue); font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eos-auth-kicker svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eos-auth-head h2 { margin: 13px 0 9px; color: var(--eos-ink); font-size: clamp(30px, 2.6vw, 39px); line-height: 1.07; letter-spacing: -.045em; }
.eos-auth-head p { margin: 0; color: var(--eos-muted); font-size: 13px; line-height: 1.65; }

.eos-login-alert { display: flex; align-items: flex-start; gap: 11px; margin: -6px 0 20px; padding: 13px 14px; border: 1px solid #fecaca; border-radius: 12px; color: #9f1239; background: #fff7f8; font-size: 11px; line-height: 1.45; }
.eos-login-alert > svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px; fill: none; stroke: #e11d48; stroke-width: 1.9; stroke-linecap: round; }
.eos-login-alert strong { display: block; margin-bottom: 2px; color: #881337; font-size: 11px; }

.eos-login-form { display: grid; gap: 20px; }
.eos-form-field { display: grid; gap: 8px; }
.eos-form-field label { color: #263d56; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.eos-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#capsLockHint { color: #c25e09; font-size: 9px; font-weight: 750; }
.eos-input-wrap { position: relative; }
.eos-input-wrap > svg { position: absolute; z-index: 1; top: 50%; left: 16px; width: 20px; height: 20px; color: #8394a8; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); pointer-events: none; transition: color .18s ease; }
.eos-input-wrap input { width: 100%; height: 55px; padding: 0 50px 0 48px; border: 1px solid #ccdae8; border-radius: 13px; outline: 0; color: #102942; background: #fff; box-shadow: 0 2px 4px rgba(23, 61, 101, .025); font: 600 13px/1 Inter, "Segoe UI", Arial, sans-serif; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.eos-input-wrap input::placeholder { color: #9aa9ba; font-weight: 450; }
.eos-input-wrap:focus-within > svg { color: var(--eos-blue); }
.eos-input-wrap input:focus { border-color: #4d9cff; background: #fff; box-shadow: 0 0 0 4px rgba(8, 104, 232, .1), 0 7px 18px rgba(8, 104, 232, .05); }
.eos-password-toggle { position: absolute; z-index: 2; top: 50%; right: 9px; display: grid; width: 37px; height: 37px; padding: 0; place-items: center; border: 0; border-radius: 10px; color: #718397; background: transparent; cursor: pointer; transform: translateY(-50%); transition: color .18s ease, background .18s ease; }
.eos-password-toggle:hover { color: var(--eos-blue); background: #edf6ff; }
.eos-password-toggle:focus-visible { outline: 3px solid rgba(8, 104, 232, .2); }
.eos-password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eos-password-toggle .eye-closed, .eos-password-toggle.is-visible .eye-open { display: none; }
.eos-password-toggle.is-visible .eye-closed { display: block; }

.eos-login-submit { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; height: 55px; margin-top: 3px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--eos-blue) 0%, #0c78ed 58%, var(--eos-cyan) 145%); box-shadow: 0 14px 29px rgba(8, 104, 232, .23), inset 0 1px rgba(255, 255, 255, .2); cursor: pointer; font-size: 12px; font-weight: 850; letter-spacing: .025em; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.eos-login-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(8, 104, 232, .28), inset 0 1px rgba(255, 255, 255, .2); filter: saturate(1.07); }
.eos-login-submit:active { transform: translateY(0); }
.eos-login-submit:focus-visible { outline: 4px solid rgba(8, 104, 232, .19); outline-offset: 3px; }
.eos-login-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.eos-login-submit:hover svg { transform: translateX(3px); }
.eos-login-submit.is-loading { pointer-events: none; opacity: .8; }
.eos-login-submit.is-loading svg { animation: eos-submit-pulse .85s ease-in-out infinite alternate; }
@keyframes eos-submit-pulse { to { transform: translateX(4px); opacity: .4; } }

.eos-security-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; padding-top: 19px; border-top: 1px solid #e5edf5; }
.eos-security-row > span { display: inline-flex; align-items: center; gap: 6px; color: #7a8b9d; font-size: 8px; letter-spacing: .035em; white-space: nowrap; }
.eos-security-row svg { width: 15px; height: 15px; fill: none; stroke: #3b82d5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eos-security-row b { font-weight: 750; }
.eos-security-row .eos-system-ready { margin-left: auto; color: #507166; }
.eos-system-ready i { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(22, 185, 120, .11); }

.eos-auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 26px; color: #99a6b6; font-size: 8px; letter-spacing: .04em; }

@media (max-width: 1100px) {
    .eos-login-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr); width: min(100% - 32px, 1120px); min-height: calc(100vh - 32px); margin: 16px auto; }
    .eos-auth { padding-inline: 32px; }
    .eos-showcase-top { padding: 25px; }
    .eos-showcase-copy { left: 25px; right: 25px; bottom: 72px; }
    .eos-showcase-copy h1 { font-size: clamp(35px, 4.4vw, 49px); }
    .eos-capabilities span:nth-child(3) { display: none; }
}

@media (max-width: 820px) {
    body.eos-login-page { padding: 18px; }
    .eos-login-shell { display: block; width: min(100%, 560px); min-height: 0; margin: 0 auto; border-radius: 24px; }
    .eos-showcase { min-height: 205px; }
    .eos-showcase-media::after { background: linear-gradient(180deg, rgba(247, 252, 255, .3), rgba(5, 42, 78, .28)); }
    .eos-showcase-media img { object-position: 61% 48%; }
    .eos-showcase-top { padding: 19px; }
    .eos-brand-lockup, .eos-suite-pill, .eos-showcase-copy > p, .eos-capabilities, .eos-showcase-foot { display: none; }
    .eos-showcase-copy { left: 19px; right: 19px; bottom: 18px; max-width: 460px; }
    .eos-overline { margin-bottom: 7px; font-size: 8px; }
    .eos-showcase-copy h1 { max-width: 390px; font-size: 26px; line-height: 1.05; }
    .eos-auth { padding: 24px 28px 20px; }
    .eos-auth-mobile-brand { display: flex; margin-bottom: 36px; }
    .eos-auth-content { width: 100%; }
    .eos-auth-head h2 { font-size: 31px; }
    .eos-auth-footer { margin-top: 36px; }
}

@media (max-width: 520px) {
    body.eos-login-page { padding: 0; background: #fff; }
    .eos-login-shell { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
    .eos-showcase { min-height: 172px; }
    .eos-showcase-copy { bottom: 15px; }
    .eos-showcase-copy h1 { max-width: 330px; font-size: 23px; }
    .eos-auth { padding: 23px 20px 18px; }
    .eos-auth-mobile-brand { margin-bottom: 31px; }
    .eos-auth-head { margin-bottom: 25px; }
    .eos-auth-head h2 { font-size: 29px; }
    .eos-input-wrap input, .eos-login-submit { height: 53px; }
    .eos-security-row { gap: 9px 14px; }
    .eos-security-row .eos-system-ready { width: 100%; margin: 2px 0 0; }
    .eos-auth-footer { display: block; margin-top: 32px; line-height: 1.7; }
    .eos-auth-footer span { display: block; }
}

@media (max-height: 760px) and (min-width: 821px) {
    .eos-login-shell { min-height: 700px; }
    .eos-showcase { min-height: 700px; }
    .eos-auth-head { margin-bottom: 22px; }
    .eos-security-row { margin-top: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
