 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
        --red:    #C8193A;
        --red2:   #E8304F;
        --blue:   #1A3FAD;
        --blue2:  #2B5CE6;
        --ink:    #0D1526;
        --ink2:   #1E2D4A;
        --slate:  #4A5878;
        --muted:  #8A97B0;
        --line:   rgba(26,63,173,.12);
        --white:  #FFFFFF;
        --offwhite: #F7F8FC;
        --card-bg: #FFFFFF;
        --ease: cubic-bezier(.4,0,.2,1);
    }

    html, body {
        height: 100%;
        min-height: 100vh;
        font-family: 'Outfit', sans-serif;
        background: var(--offwhite);
        overflow: hidden;
    }

    /* ── Layout ─────────────────────────────────────── */
    .page {
        display: flex;
        height: 100vh;
        width: 100vw;
    }

    /* ── Left panel ──────────────────────────────────── */
    .left {
        flex: 1.1;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 3.5rem 4rem;
        overflow: hidden;
        background: var(--ink);
    }

    /* geometric background pattern */
    .left::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            linear-gradient(135deg, rgba(200,25,58,.18) 0%, transparent 50%),
            linear-gradient(315deg, rgba(26,63,173,.22) 0%, transparent 55%);
        pointer-events: none;
    }

    /* large faint circle top-right */
    .left::after {
        content: '';
        position: absolute;
        top: -120px; right: -120px;
        width: 420px; height: 420px;
        border-radius: 50%;
        border: 1.5px solid rgba(200,25,58,.14);
        pointer-events: none;
    }

    .circle-deco {
        position: absolute;
        bottom: -80px; left: -80px;
        width: 320px; height: 320px;
        border-radius: 50%;
        border: 1.5px solid rgba(26,63,173,.18);
        pointer-events: none;
    }
    .circle-deco2 {
        position: absolute;
        top: 38%; right: 60px;
        width: 7px; height: 7px;
        border-radius: 50%;
        background: var(--red);
        box-shadow: 0 0 18px 6px rgba(200,25,58,.35);
        pointer-events: none;
    }
    .circle-deco3 {
        position: absolute;
        bottom: 28%; left: 52px;
        width: 5px; height: 5px;
        border-radius: 50%;
        background: var(--blue2);
        box-shadow: 0 0 14px 5px rgba(43,92,230,.4);
        pointer-events: none;
    }

    /* thin diagonal stripe accent */
    .stripe {
        position: absolute;
        top: 0; bottom: 0;
        right: 0;
        width: 3px;
        background: linear-gradient(180deg, transparent, var(--red) 40%, var(--blue) 70%, transparent);
        opacity: .55;
    }

    .left-content { position: relative; z-index: 2; }

    .brand-logo {
        height: 64px;
        margin-bottom: 3rem;
        filter: brightness(1.1);
    }

    .hero-eyebrow {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: var(--red2);
        margin-bottom: .75rem;
    }

    .hero-title {
        font-family: 'Playfair Display', serif;
        font-size: clamp(2rem, 3.2vw, 2.8rem);
        font-weight: 700;
        color: #fff;
        line-height: 1.18;
        margin-bottom: 1.25rem;
    }
    .hero-title em {
        font-style: italic;
        color: var(--red2);
    }

    .hero-sub {
        font-size: 14px;
        font-weight: 300;
        color: rgba(255,255,255,.52);
        line-height: 1.7;
        max-width: 320px;
        margin-bottom: 2.5rem;
    }

    .stats {
        display: flex;
        gap: 2rem;
    }
    .stat-num {
        font-size: 22px;
        font-weight: 700;
        color: #fff;
        line-height: 1;
    }
    .stat-lbl {
        font-size: 11px;
        color: rgba(255,255,255,.38);
        margin-top: 3px;
        letter-spacing: .04em;
    }
    .stat-div {
        width: 1px;
        background: rgba(255,255,255,.1);
        align-self: stretch;
    }

    /* ── Right panel ─────────────────────────────────── */
    .right {
        width: min(420px, 46vw);
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--white);
        position: relative;
        box-shadow: -8px 0 48px rgba(13,21,38,.1);
    }

    .right::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--red), var(--blue));
    }

    .form-wrap {
        width: 100%;
        padding: 3rem 3rem;
    }

    .form-tag {
        display: inline-block;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--blue);
        background: rgba(26,63,173,.07);
        border: 1px solid rgba(26,63,173,.14);
        border-radius: 20px;
        padding: 4px 12px;
        margin-bottom: 1.25rem;
    }

    .form-heading {
        font-family: 'Playfair Display', serif;
        font-size: 1.9rem;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: .4rem;
    }
    .form-sub {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 2rem;
    }

    /* error box from PHP */
    .form-wrap > div[style] {
        background: #FEF0F2;
        border: 1px solid rgba(200,25,58,.25);
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 13px;
        color: var(--red);
        margin-bottom: 1.25rem;
        text-align: left !important;
    }

    /* fields */
    .f-group {
        margin-bottom: 1.2rem;
    }
    .f-label {
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: var(--ink2);
        letter-spacing: .03em;
        margin-bottom: 6px;
    }
    .f-wrap {
        position: relative;
    }
    .f-ico {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
        color: var(--muted);
        pointer-events: none;
        transition: color .2s var(--ease);
    }
    .f-input {
        width: 100%;
        height: 46px;
        padding: 0 42px 0 40px;
        font-family: 'Outfit', sans-serif;
        font-size: 14px;
        color: var(--ink);
        background: var(--offwhite);
        border: 1.5px solid var(--line);
        border-radius: 10px;
        outline: none;
        transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
    }
    .f-input::placeholder { color: var(--muted); font-weight: 300; }
    .f-input:focus {
        background: #fff;
        border-color: var(--blue2);
        box-shadow: 0 0 0 3px rgba(43,92,230,.1);
    }
    .f-input:focus + .f-ico,
    .f-wrap:focus-within .f-ico { color: var(--blue2); }

    /* password toggle */
    .pw-btn {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 4px;
        cursor: pointer;
        color: var(--muted);
        font-size: 13px;
        transition: color .2s;
    }
    .pw-btn:hover { color: var(--blue2); }

    /* divider row */
    .f-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.75rem;
    }
    .remember-lbl {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        color: var(--slate);
        cursor: pointer;
        user-select: none;
    }
    .remember-lbl input { accent-color: var(--blue2); width: 14px; height: 14px; }
    .fp-link {
        font-size: 12px;
        color: var(--blue2);
        text-decoration: none;
        font-weight: 500;
    }
    .fp-link:hover { text-decoration: underline; }

    /* submit button */
    .btn-login {
        width: 100%;
        height: 48px;
        border: none;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 60%, #1e5ad4 100%);
        color: #fff;
        font-family: 'Outfit', sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .03em;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        transition: opacity .2s var(--ease), transform .15s var(--ease), box-shadow .2s;
        box-shadow: 0 4px 18px rgba(26,63,173,.28);
    }
    .btn-login:hover {
        opacity: .93;
        transform: translateY(-1px);
        box-shadow: 0 8px 28px rgba(26,63,173,.36);
    }
    .btn-login:active { transform: translateY(0); }
    .btn-login:disabled { opacity: .65; cursor: not-allowed; transform: none; }

    /* ripple */
    .btn-login .ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255,255,255,.28);
        transform: scale(0);
        animation: ripple .55s linear;
        pointer-events: none;
    }
    @keyframes ripple { to { transform: scale(4); opacity: 0; } }

    /* spinner */
    .spin {
        display: none;
        width: 18px; height: 18px;
        border: 2px solid rgba(255,255,255,.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin .7s linear infinite;
        margin: auto;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* red accent strip bottom-left of right panel */
    .right-accent {
        position: absolute;
        bottom: 0; left: 0;
        width: 3px;
        height: 40%;
        background: linear-gradient(180deg, transparent, var(--red));
        opacity: .5;
        border-radius: 0 2px 0 0;
    }

    .footer-note {
        text-align: center;
        font-size: 11px;
        color: var(--muted);
        margin-top: 1.5rem;
    }

    /* ── Responsive ──────────────────────────────────── */
    @media (max-width: 768px) {
        .left { display: none; }
        .right { width: 100vw; }
        .form-wrap { padding: 2.5rem 2rem; }
    }