:root {
    --blue: #078cff;
    --blue-light: #10c7ea;
    --blue-dark: #006dd8;
    --text: #172033;
    --muted: #697386;
    --border: #dde3ea;
    --background: #f6f8fb;
    --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
}

.login-page { min-height: 100vh; background: var(--background); }

.login-shell {
    display: grid;
    grid-template-columns: minmax(420px, 46%) 1fr;
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 58px 64px 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 15%, rgba(20,199,234,.18), transparent 31%),
        radial-gradient(circle at 88% 85%, rgba(0,118,255,.24), transparent 38%),
        linear-gradient(145deg, #06101f 0%, #09192c 48%, #071525 100%);
    color: white;
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -180px;
    top: 16%;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 570px;
    margin: auto 0;
    transform: translateY(-12px);
}

.brand-logo {
    display: block;
    width: 325px;
    max-width: 78%;
    height: auto;
    margin-bottom: 52px;
}

.portal-label, .eyebrow {
    color: #39bdf7;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .18em;
}

.brand-content h1 {
    margin: 18px 0;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 600;
}

.brand-content p {
    max-width: 500px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 17px;
    line-height: 1.7;
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 34px;
}

.service-pills span {
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 100px;
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.75);
    font-size: 13px;
}

.brand-footer {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.36);
    font-size: 12px;
}

.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 50px 30px 28px;
    background: var(--white);
}

.login-card { width: 100%; max-width: 450px; margin: auto; }

.login-heading { margin-bottom: 34px; }

.login-heading h2 {
    margin: 12px 0 9px;
    color: var(--text);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -.025em;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.login-error {
    margin: -8px 0 24px;
    padding: 12px 14px;
    border: 1px solid #fed0d0;
    border-radius: 10px;
    background: #fff6f6;
    color: #a62d2d;
    font-size: 13px;
    line-height: 1.45;
}

.field { margin-bottom: 22px; }

.field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #364152;
    font-size: 14px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: white;
    color: var(--text);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder { color: #a4adba; }

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(7,140,255,.11);
}

.password-wrap { position: relative; }

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

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.forgot-link {
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

.primary-button {
    width: 100%;
    height: 50px;
    margin-top: 5px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(120deg, #09a9e8 0%, #087ff5 100%);
    color: white;
    font-size: 15px;
    font-weight: 650;
    box-shadow: 0 8px 22px rgba(0,115,225,.18);
    transition: transform .12s ease, box-shadow .12s ease;
}

.primary-button:hover { box-shadow: 0 10px 26px rgba(0,115,225,.24); }
.primary-button:active { transform: translateY(1px); }

.login-help {
    margin-top: 30px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.login-help a {
    color: var(--blue-dark);
    font-weight: 600;
    text-decoration: none;
}

.legal-footer {
    width: 100%;
    color: #9aa3af;
    text-align: center;
    font-size: 11px;
}

.mobile-brand { display: none; }

@media (max-width: 950px) {
    .login-shell { grid-template-columns: 40% 60%; }
    .brand-panel { padding: 44px 38px 30px; }
    .brand-logo { width: 255px; }
    .brand-content h1 { font-size: 38px; }
}

@media (max-width: 720px) {
    .login-shell { display: block; }
    .brand-panel { display: none; }
    .login-panel { min-height: 100vh; padding: 32px 24px 22px; }
    .login-card { margin: auto; }
    .mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 50px;
    }
    .mobile-brand img {
        width: 190px;
        height: auto;
        padding: 14px 18px;
        border-radius: 8px;
        background: #071525;
    }
    .mobile-brand span {
        margin-top: 10px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
    }
    .login-heading h2 { font-size: 30px; }
    .brand-content { transform: none; }
}
