:root {
    color-scheme: light;
    --login-ink: #15223b;
    --login-muted: #75819a;
    --login-blue: #315ee8;
    --login-teal: #48d3c2;
}

* { box-sizing: border-box; }

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

body.login-page {
    margin: 0;
    background: #f6f8fc;
    color: var(--login-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-layout { min-height: 100vh; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr); }
.login-brand-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 5vw, 76px); color: #fff; background: radial-gradient(ellipse at 8% 12%, #466de7 0, transparent 36%), linear-gradient(145deg, #16284b 2%, #1c3563 48%, #205070 100%); }
.login-brand-panel::before, .login-brand-panel::after { position: absolute; z-index: -1; content: ""; border: 1px solid #ffffff17; border-radius: 50%; }
.login-brand-panel::before { width: min(72vw, 780px); aspect-ratio: 1; right: -26%; top: 12%; }
.login-brand-panel::after { width: min(54vw, 570px); aspect-ratio: 1; right: -15%; top: 23%; }
.login-brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; color: #fff; text-decoration: none; }
.login-brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #ffffff4a; border-radius: 15px; background: #ffffff17; color: #fff; font-weight: 800; font-size: 1.35rem; box-shadow: 0 8px 30px #08183224; }
.login-brand-name { font-size: .93rem; font-weight: 760; letter-spacing: .12em; line-height: 1.3; }
.login-brand-name span { display: block; margin-top: 3px; color: #b7caee; font-size: .63rem; font-weight: 650; letter-spacing: .23em; }
.login-brand-copy { max-width: 590px; margin: auto 0; padding: 64px 0 24px; }
.login-kicker { display: inline-flex; align-items: center; gap: 9px; color: #b8d9ff; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.login-kicker::before { content: ""; width: 24px; height: 1px; background: var(--login-teal); }
.login-brand-copy h1 { max-width: 560px; margin: 22px 0 17px; color: #fff; font-size: clamp(2.65rem, 5vw, 5rem); font-weight: 760; letter-spacing: -.065em; line-height: .99; }
.login-brand-copy h1 span { display: block; color: #6fdfd2; }
.login-brand-copy p { max-width: 470px; margin: 0; color: #d1def3; font-size: clamp(.98rem, 1.3vw, 1.12rem); line-height: 1.75; }
.login-illustration { position: absolute; right: clamp(12px, 4vw, 62px); bottom: 12%; width: min(38%, 370px); opacity: .95; filter: drop-shadow(0 22px 46px #07182b55); }
.login-brand-footer { display: flex; align-items: center; gap: 10px; color: #b8c8e1; font-size: .78rem; }
.login-brand-footer svg { color: #70dfd2; }

.login-form-panel { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 6vw, 88px); background: linear-gradient(135deg, #fff 0%, #f9fbff 100%); }
.login-form-wrap { width: min(100%, 440px); }
.login-mobile-brand { display: none; }
.login-form-heading { margin: 0 0 10px; color: var(--login-ink); font-size: clamp(2rem, 3vw, 2.55rem); font-weight: 740; letter-spacing: -.055em; }
.login-form-intro { margin: 0 0 34px; color: var(--login-muted); font-size: .98rem; line-height: 1.65; }
.login-error { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; padding: 13px 15px; border: 1px solid #fecaca; border-radius: 12px; background: #fff5f5; color: #a12b38; font-size: .9rem; }
.login-error svg { flex: 0 0 auto; margin-top: 1px; }
.login-field { margin-bottom: 20px; }
.login-field label { display: block; margin-bottom: 8px; color: #34415a; font-size: .84rem; font-weight: 660; }
.login-input-wrap { position: relative; }
.login-input { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid #dce3ee; border-radius: 12px; outline: none; background: #fff; color: var(--login-ink); font-size: .95rem; transition: border-color .16s ease, box-shadow .16s ease; }
.login-input::placeholder { color: #a5afc0; }
.login-input:focus { border-color: #6685ef; box-shadow: 0 0 0 4px #315ee81a; }
.login-input.is-password { padding-right: 52px; }
.login-password-toggle { position: absolute; top: 50%; right: 8px; width: 38px; height: 38px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 9px; background: transparent; color: #75819a; cursor: pointer; }
.login-eye-slash { display: none; }
.login-password-toggle.password-visible .login-eye-slash { display: block; }
.login-password-toggle:hover, .login-password-toggle:focus-visible { outline: none; background: #f0f3fa; color: #315ee8; }
.login-validation { display: block; min-height: 18px; margin-top: 5px; color: #b42332; font-size: .78rem; }
.login-validation-summary:empty { display: none; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 26px; }
.login-remember { display: inline-flex; align-items: center; gap: 9px; color: #68758d; font-size: .84rem; cursor: pointer; }
.login-remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--login-blue); }
.login-signin { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; background: linear-gradient(100deg, #315ee8 0%, #4b70ed 100%); color: #fff; font-size: .96rem; font-weight: 690; box-shadow: 0 10px 22px #315ee82b; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.login-signin:hover { transform: translateY(-1px); box-shadow: 0 13px 26px #315ee83b; }
.login-signin:disabled { cursor: wait; opacity: .76; transform: none; }
.login-spinner { width: 17px; height: 17px; border: 2px solid #ffffff65; border-top-color: #fff; border-radius: 50%; animation: login-spin .7s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.login-form-footer { margin-top: 37px; color: #9aa4b5; font-size: .74rem; text-align: center; }
.login-home-link { display: block; margin-top: 19px; color: #75819a; font-size: .83rem; text-align: center; text-decoration: none; }
.login-home-link:hover { color: var(--login-blue); }

@media (max-width: 900px) {
    .login-screen { grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr); }
    .login-brand-panel { padding: 34px; }
    .login-illustration { right: 0; bottom: 15%; width: 42%; opacity: .75; }
    .login-form-panel { padding: 42px; }
}

@media (max-width: 680px) {
    .login-screen { min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .login-brand-panel { min-height: 205px; padding: 23px 24px; }
    .login-brand-mark { width: 40px; height: 40px; }
    .login-brand-copy { max-width: 450px; margin: 26px 0 0; padding: 0; }
    .login-kicker { font-size: .61rem; }
    .login-brand-copy h1 { margin: 13px 0 9px; font-size: clamp(1.7rem, 8vw, 2.4rem); letter-spacing: -.05em; }
    .login-brand-copy h1 span { display: inline; margin-left: 7px; }
    .login-brand-copy p { max-width: 430px; font-size: .82rem; line-height: 1.5; }
    .login-illustration, .login-brand-footer { display: none; }
    .login-brand-panel::before { width: 280px; top: -42%; right: -22%; }
    .login-brand-panel::after { width: 200px; top: -18%; right: -12%; }
    .login-form-panel { align-items: flex-start; padding: 33px 24px 26px; }
    .login-form-wrap { width: 100%; max-width: 480px; margin: 0 auto; }
    .login-form-heading { font-size: 2rem; }
    .login-form-intro { margin-bottom: 25px; font-size: .9rem; }
    .login-form-footer { margin-top: 27px; }
}

@media (max-width: 360px) {
    .login-brand-panel { padding-inline: 18px; }
    .login-form-panel { padding-inline: 18px; }
    .login-options { align-items: flex-start; }
}

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