:root {
    --navy-950: #00182f;
    --navy-900: #00264d;
    --navy-800: #003b70;
    --navy-700: #07518f;
    --orange: #ff8400;
    --orange-soft: rgba(255, 132, 0, 0.12);
    --ink: #102033;
    --muted: #66758a;
    --line: #dce4ec;
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --danger: #b42318;
    --danger-bg: #fff1ef;
    --danger-line: #ffd2cc;
    --brand-gradient: radial-gradient(circle at top right, rgba(255, 132, 0, 0.14), transparent 32%), linear-gradient(135deg, rgba(0, 38, 77, 0.96), rgba(0, 59, 112, 0.96));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #eef3f7;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 132, 0, 0.08), transparent 22rem),
        radial-gradient(circle at 92% 90%, rgba(0, 59, 112, 0.10), transparent 28rem),
        #eef3f7;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 34px;
}

.login-shell {
    width: min(1080px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(410px, 0.96fr);
    overflow: hidden;
    border: 1px solid rgba(0, 38, 77, 0.10);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(0, 31, 63, 0.14), 0 4px 16px rgba(0, 31, 63, 0.06);
}

.login-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px;
    color: #fff;
    background: var(--brand-gradient);
    isolation: isolate;
}

.login-brand::before,
.login-brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
}

.login-brand::before {
    width: 420px;
    height: 420px;
    right: -185px;
    bottom: -170px;
}

.login-brand::after {
    width: 260px;
    height: 260px;
    right: -105px;
    bottom: -90px;
    border-color: rgba(255,132,0,0.24);
}

.login-brand__glow {
    position: absolute;
    top: -130px;
    right: -110px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255,132,0,0.16);
    filter: blur(18px);
    z-index: -1;
}

.login-brand__content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.brand-mark {
    align-self: flex-start;
    display: inline-flex;
    text-decoration: none;
}

.brand-mark__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 126px;
    height: 84px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

.brand-mark__logo {
    display: block;
    width: 100%;
    max-height: 64px;
    object-fit: contain;
}

.brand-copy {
    margin-top: 70px;
    max-width: 500px;
}

.brand-eyebrow,
.login-heading__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-eyebrow {
    color: #ffd09a;
    background: rgba(255,132,0,0.12);
    border: 1px solid rgba(255,158,52,0.25);
}

.brand-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.4rem, 4vw, 4.1rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.brand-copy p {
    margin: 0;
    max-width: 420px;
    color: rgba(255,255,255,0.74);
    font-size: 1.02rem;
    line-height: 1.65;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 58px;
}

.brand-feature {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    background: rgba(255,255,255,0.055);
    backdrop-filter: blur(8px);
}

.brand-feature__icon {
    display: block;
    margin-bottom: 8px;
    color: #ffad55;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.brand-feature span:last-child {
    display: block;
    color: rgba(255,255,255,0.88);
    font-size: 0.79rem;
    line-height: 1.35;
    font-weight: 650;
}

.login-brand__footer {
    margin-top: 34px;
    color: rgba(255,255,255,0.50);
    font-size: 0.74rem;
    letter-spacing: 0.03em;
}

.login-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
}

.login-panel__inner {
    width: min(100%, 470px);
    margin: auto;
    padding: 58px 48px 40px;
}

.login-heading__badge {
    margin-bottom: 14px;
    color: var(--navy-800);
    background: #eef5fb;
    border: 1px solid #d7e5f1;
}

.login-heading h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: 2.25rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.login-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.login-alert {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    margin: 24px 0 0;
    padding: 14px;
    border: 1px solid var(--danger-line);
    border-radius: 14px;
    background: var(--danger-bg);
    color: var(--danger);
}

.login-alert__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: var(--danger);
    font-weight: 900;
}

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

.login-alert strong {
    margin-bottom: 2px;
    font-size: 0.88rem;
}

.login-alert div > span {
    color: #7f1d1d;
    font-size: 0.82rem;
    line-height: 1.45;
}

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

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #27384b;
    font-size: 0.84rem;
    font-weight: 750;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #748399;
    pointer-events: none;
}

.input-icon svg,
.login-submit svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrap input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px 0 45px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: none;
    background: #fbfcfe;
    color: var(--ink);
    font-size: 0.93rem;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-wrap--password input {
    padding-right: 70px;
}

.input-wrap input::placeholder {
    color: #9aa7b7;
}

.input-wrap input:hover {
    border-color: #bdcad7;
}

.input-wrap input:focus {
    border-color: var(--navy-700);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7,81,143,0.09);
}

.input-wrap:focus-within .input-icon {
    color: var(--navy-700);
}

.password-toggle {
    position: absolute;
    right: 10px;
    min-width: 48px;
    height: 34px;
    padding: 0 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--navy-800);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 800;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #edf4fa;
    outline: none;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    margin-top: 2px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 13px 26px rgba(0,59,112,0.20);
    cursor: pointer;
    font-weight: 800;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.login-submit svg {
    width: 19px;
    height: 19px;
    transition: transform 150ms ease;
}

.login-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 17px 30px rgba(0,59,112,0.24);
}

.login-submit:hover svg {
    transform: translateX(2px);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit:focus-visible {
    outline: 3px solid rgba(255,132,0,0.34);
    outline-offset: 3px;
}

.login-help {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf1f5;
}

.login-help p {
    max-width: 260px;
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.login-help p strong {
    color: #394b60;
}

.login-help a {
    flex: 0 0 auto;
    color: var(--navy-800);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}

.login-panel__footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    border-top: 1px solid #edf1f5;
    color: #8b98a9;
    font-size: 0.7rem;
}

@media (max-width: 900px) {
    .login-page {
        padding: 22px;
    }

    .login-shell {
        width: min(620px, 100%);
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 210px;
        padding: 28px 32px;
    }

    .login-brand__content {
        min-height: auto;
    }

    .brand-mark__logo-wrap {
        width: 104px;
        height: 68px;
    }

    .brand-copy {
        margin-top: 32px;
    }

    .brand-copy h1 {
        max-width: 410px;
        font-size: 2.35rem;
    }

    .brand-copy p,
    .brand-features,
    .login-brand__footer {
        display: none;
    }

    .login-panel__inner {
        padding: 42px 34px 34px;
    }
}

@media (max-width: 520px) {
    body {
        background: #fff;
    }

    .login-page {
        display: block;
        padding: 0;
    }

    .login-shell {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand {
        min-height: 172px;
        padding: 22px 24px;
    }

    .brand-mark__logo-wrap {
        width: 88px;
        height: 56px;
        border-radius: 14px;
        padding: 8px 10px;
    }

    .brand-copy {
        margin-top: 22px;
    }

    .brand-copy h1 {
        margin: 10px 0 0;
        font-size: 1.8rem;
        line-height: 1.04;
    }

    .brand-eyebrow {
        min-height: 24px;
        font-size: 0.63rem;
    }

    .login-panel__inner {
        width: 100%;
        padding: 34px 22px 28px;
    }

    .login-heading h2 {
        font-size: 1.85rem;
    }

    .login-help {
        display: grid;
        gap: 12px;
    }

    .login-help p {
        max-width: none;
    }
}

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