:root {
    --login-primary: #2f9df4;
    --login-primary-dark: #187fce;
    --login-page-bg: #c8d9e3;
    --login-text: #25293d;
    --login-muted: #7b8094;
    --login-line: #e3e8ef;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body.login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--login-text);
    background: var(--login-page-bg);
    font-family: var(--erp-font-family);
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    width: calc(100vw - 8rem);
    max-width: 1440px;
    height: min(820px, calc(100vh - 6rem));
    min-height: min(720px, calc(100vh - 2rem));
    display: grid;
    grid-template-columns: minmax(410px, 41%) minmax(0, 59%);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 48px rgba(63, 83, 100, .16);
}

.login-panel {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 42px 58px 30px;
    background: #fff;
}

.login-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 11px;
}

.login-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.login-brand strong,
.login-brand span { display: block; }

.login-brand strong {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .01em;
}

.login-brand span {
    margin-top: 2px;
    color: #98a2b1;
    font-size: 9px;
    letter-spacing: .09em;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
    margin: auto;
}

.login-intro { margin-bottom: 32px; }

.login-eyebrow {
    display: block;
    margin-bottom: 11px;
    color: var(--login-primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
}

.login-intro h1 {
    margin: 0;
    color: #202638;
    font-size: clamp(44px, 4.2vw, 64px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.055em;
}

.login-intro p {
    margin: 10px 0 0;
    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.6;
}

.login-alert {
    padding: 10px 39px 10px 12px;
    margin-bottom: 18px;
    border-radius: 0;
    font-size: 11px;
}

.login-alert .btn-close { padding: 13px; font-size: 9px; }

.login-form { display: grid; gap: 20px; }

.login-field { display: block; }

.login-field > span:first-child {
    display: block;
    margin-bottom: 7px;
    color: #445064;
    font-size: 11px;
    font-weight: 500;
}

.login-input-wrap {
    height: 46px;
    display: flex;
    align-items: center;
    border: 1px solid #dbe2ea;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.login-input-wrap:focus-within {
    border-color: var(--login-primary);
    box-shadow: 0 0 0 3px rgba(47, 157, 244, .1);
}

.login-input-wrap > i {
    flex: 0 0 auto;
    margin-left: 14px;
    color: #9aa6b5;
    font-size: 14px;
}

.login-input-wrap input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0 12px;
    border: 0;
    outline: 0;
    color: var(--login-text);
    background: transparent;
    font: inherit;
    font-size: 13px;
}

.login-input-wrap input::placeholder { color: #b1bac5; }

.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus,
.login-input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--login-text);
    caret-color: var(--login-text);
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-out 0s;
}

.login-input-wrap input:autofill {
    color: var(--login-text);
    background: #fff;
    box-shadow: 0 0 0 1000px #fff inset;
}

.login-password-toggle {
    width: 42px;
    height: 100%;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    color: #99a5b4;
    background: transparent;
    font-size: 14px;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    color: var(--login-primary);
    outline: 0;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: -4px;
    color: #929dac;
    font-size: 10px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #667387;
    cursor: pointer;
}

.login-remember input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--login-primary);
}

.login-submit {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    border: 1px solid var(--login-primary);
    color: #fff;
    background: var(--login-primary);
    font-size: 13px;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    border-color: var(--login-primary-dark);
    background: var(--login-primary-dark);
    outline: 0;
}

.login-submit i { font-size: 14px; transition: transform .15s ease; }
.login-submit:hover i { transform: translateX(3px); }

.login-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid #eef1f5;
    color: #a0aab7;
    font-size: 9px;
}

.login-showcase {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 16px 16px 16px 0;
    overflow: hidden;
    border-radius: 22px;
    color: #f5f6f7;
    background: #555b63;
    isolation: isolate;
}

.login-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 42%, rgba(24, 28, 33, .58) 0%, rgba(30, 34, 39, .37) 30%, rgba(30, 34, 39, .08) 61%, rgba(15, 18, 22, .2) 100%),
        linear-gradient(180deg, rgba(11, 14, 18, .12) 0%, rgba(11, 14, 18, .26) 100%);
}

.showcase-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #555b63;
    filter: saturate(.88) contrast(1.04);
}

.showcase-topline {
    position: absolute;
    top: 34px;
    right: 38px;
    left: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(245, 247, 249, .72);
    font-size: 9px;
    letter-spacing: .13em;
}

.showcase-topline span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.showcase-topline i { font-size: 12px; }

.showcase-copy {
    position: absolute;
    top: 48%;
    left: 50%;
    z-index: 2;
    width: min(84%, 640px);
    max-width: none;
    text-align: center;
    transform: translate(-50%, -52%);
}

.showcase-kicker {
    display: block;
    margin-bottom: 16px;
    color: rgba(238, 241, 244, .76);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
}

.showcase-copy h2 {
    margin: 0;
    max-width: none;
    color: #f8f9fa;
    font-size: clamp(45px, 4.15vw, 70px);
    line-height: .91;
    font-weight: 700;
    letter-spacing: -.065em;
    text-shadow: 0 4px 26px rgba(8, 10, 13, .26);
}

.showcase-copy p {
    max-width: 460px;
    margin: 22px auto 0;
    color: rgba(241, 243, 245, .78);
    font-size: 13px;
    line-height: 1.75;
}

.showcase-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 23px; }
.showcase-tags span { padding: 5px 10px; border: 1px solid rgba(236, 240, 244, .24); color: rgba(246, 248, 250, .82); background: rgba(34, 39, 45, .22); font-size: 9px; backdrop-filter: blur(10px); }

.showcase-edition {
    position: absolute;
    right: 7%;
    bottom: 13%;
    display: grid;
    justify-items: end;
    color: rgba(42, 38, 34, .72);
    text-align: right;
}

.showcase-edition span { font-size: 8px; letter-spacing: .18em; }
.showcase-edition strong { margin: -3px 0 -4px; font-size: 76px; line-height: 1; font-weight: 300; letter-spacing: -.08em; }
.showcase-edition small { font-size: 7px; letter-spacing: .14em; }

.showcase-controls {
    position: absolute;
    right: 38px;
    bottom: 31px;
    left: 38px;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    padding: 5px 9px;
    border: 1px solid rgba(234, 238, 242, .18);
    border-radius: 22px;
    color: rgba(245, 247, 249, .76);
    background: rgba(24, 28, 33, .5);
    box-shadow: 0 8px 28px rgba(5, 7, 10, .18);
    backdrop-filter: blur(12px);
    font-size: 9px;
}

.showcase-control-button {
    width: 26px;
    height: 28px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.showcase-control-button:hover,
.showcase-control-button:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.12);
    outline: none;
}
.showcase-play {
    width: 28px;
    border: 1px solid rgba(236,240,244,.28);
    background: rgba(255,255,255,.08);
}
.showcase-progress {
    --progress: 0%;
    height: 14px;
    min-width: 60px;
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
}
.showcase-progress::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f4f6f8 var(--progress), rgba(236,240,244,.24) var(--progress));
}
.showcase-progress::-webkit-slider-thumb {
    width: 8px;
    height: 8px;
    margin-top: -3px;
    border: 0;
    border-radius: 50%;
    appearance: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.14);
}
.showcase-progress::-moz-range-track {
    height: 2px;
    border-radius: 999px;
    background: rgba(236,240,244,.24);
}
.showcase-progress::-moz-range-progress {
    height: 2px;
    border-radius: 999px;
    background: #f4f6f8;
}
.showcase-progress::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}
.showcase-time { font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
    .login-shell { grid-template-columns: minmax(390px, 46%) minmax(0, 54%); }
    .login-panel { padding-right: 42px; padding-left: 42px; }
    .showcase-copy { top: 48%; }
    .showcase-copy h2 { font-size: 36px; }
    .showcase-edition strong { font-size: 60px; }
}

@media (max-width: 820px) {
    body.login-page { overflow: auto; align-items: flex-start; }
    .login-shell {
        width: 100%;
        min-height: 100vh;
        height: auto;
        grid-template-columns: 1fr;
        box-shadow: none;
    }
    .login-panel { min-height: 680px; padding: 32px clamp(24px, 8vw, 64px) 26px; }
    .login-form-wrap { margin-top: 70px; margin-bottom: 70px; }
    .login-showcase { min-height: 560px; margin: 0 18px 18px; }
}

@media (max-width: 520px) {
    .login-panel { min-height: 100vh; padding: 26px 22px 22px; }
    .login-form-wrap { margin-top: 55px; margin-bottom: 55px; }
    .login-options { align-items: flex-start; flex-direction: column; gap: 9px; }
    .login-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
    .login-showcase { display: none; }
}

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