:root {
    --navy: #0b2b4b;
    --navy-light: #123d66;
    --teal: #11b8aa;
    --teal-dark: #0d9488;
    --ink: #102a43;
    --muted: #62748a;
    --line: #dce5ed;
    --canvas: #eef4f7;
    --danger: #b42318;
    --danger-bg: #fff2f0;
}

* { box-sizing: border-box; }

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

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

.login-page::before {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 5%, rgba(17, 184, 170, .12), transparent 27rem),
        radial-gradient(circle at 92% 95%, rgba(11, 43, 75, .08), transparent 30rem);
}

.login-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr);
    width: min(1120px, calc(100% - 48px));
    min-height: 680px;
    margin: 48px auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(11, 43, 75, .08);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(11, 43, 75, .16);
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 64px 56px 48px;
    color: #fff;
    background: linear-gradient(145deg, #0b2b4b 0%, #0a3555 58%, #07595f 130%);
}

.brand-panel::before,
.brand-panel::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.brand-panel::before { width: 420px; height: 420px; right: -260px; top: -180px; }
.brand-panel::after { width: 300px; height: 300px; left: -210px; bottom: -100px; }

.brand-panel__glow {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -60px;
    right: -70px;
    border-radius: 50%;
    background: rgba(17, 184, 170, .22);
    filter: blur(12px);
}

.brand-panel__content, .brand-panel__feature { position: relative; z-index: 1; }

.brand-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 28px;
    padding: 7px 12px;
    color: #9cf0e8;
    background: rgba(17, 184, 170, .13);
    border: 1px solid rgba(105, 225, 213, .24);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.brand-panel h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(2.35rem, 4vw, 3.65rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.brand-panel__content > p {
    max-width: 390px;
    margin: 0;
    color: #c9d8e6;
    font-size: 1.02rem;
    line-height: 1.75;
}

.brand-panel__feature { display: flex; gap: 14px; align-items: center; }
.feature-icon { display: grid; flex: 0 0 46px; height: 46px; place-items: center; background: rgba(17, 184, 170, .16); border: 1px solid rgba(105, 225, 213, .28); border-radius: 13px; }
.feature-icon svg { width: 24px; fill: #75e2d8; }
.brand-panel__feature strong, .brand-panel__feature small { display: block; }
.brand-panel__feature strong { margin-bottom: 3px; font-size: .92rem; }
.brand-panel__feature small { color: #aabed0; font-size: .78rem; }

.form-panel { display: grid; place-items: center; padding: 56px clamp(40px, 7vw, 92px); }
.login-card { width: 100%; max-width: 430px; }
.login-logo { display: block; width: min(280px, 82%); height: auto; margin: 0 0 48px; }
.login-heading { margin-bottom: 28px; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--teal-dark); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.login-heading h2 { margin: 0 0 10px; color: var(--ink); font-size: 1.75rem; line-height: 1.2; letter-spacing: -.025em; }
.login-heading p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }

.login-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 12px 14px; border: 1px solid; border-radius: 10px; font-size: .84rem; line-height: 1.45; }
.login-alert svg { flex: 0 0 19px; width: 19px; margin-top: 1px; fill: currentColor; }
.login-alert--error { color: var(--danger); background: var(--danger-bg); border-color: #fecdca; }

.login-form label { display: block; margin: 0 0 7px; color: #29435c; font-size: .82rem; font-weight: 700; }
.input-wrap { position: relative; margin-bottom: 19px; }
.input-wrap svg { position: absolute; z-index: 1; top: 50%; left: 15px; width: 19px; transform: translateY(-50%); fill: #8394a7; pointer-events: none; }
.input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 45px;
    color: var(--ink);
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-size: .91rem;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap input::placeholder { color: #9aa8b7; }
.input-wrap input:hover { border-color: #b8c8d6; }
.input-wrap input:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(17, 184, 170, .12); }
.input-wrap:focus-within svg { fill: var(--teal-dark); }

.login-submit {
    display: flex;
    width: 100%;
    height: 51px;
    margin-top: 7px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(100deg, var(--teal-dark), var(--teal));
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(13, 148, 136, .22);
    cursor: pointer;
    font: inherit;
    font-size: .91rem;
    font-weight: 750;
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.login-submit svg { width: 19px; fill: currentColor; transition: transform .18s; }
.login-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 11px 22px rgba(13, 148, 136, .28); filter: saturate(1.08); }
.login-submit:hover:not(:disabled) svg { transform: translateX(3px); }
.login-submit:focus-visible { outline: 3px solid rgba(17, 184, 170, .3); outline-offset: 3px; }
.login-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.login-footer { margin: 28px 0 0; color: #8797a8; font-size: .73rem; text-align: center; }
.login-footer span { margin-right: 5px; color: var(--teal); font-size: .55rem; }

@media (max-width: 840px) {
    .login-shell { grid-template-columns: 1fr; width: min(600px, calc(100% - 32px)); min-height: auto; margin: 24px auto; }
    .brand-panel { display: none; }
    .form-panel { padding: 52px clamp(28px, 9vw, 72px) 42px; }
    .login-logo { margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .login-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
    .form-panel { align-items: start; padding: 38px 24px 28px; }
    .login-logo { width: 230px; margin-bottom: 42px; }
    .login-heading h2 { font-size: 1.55rem; }
}

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