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

.login-page {
    background: #07111e;
    color: #e8edf2;
    min-height: 100vh;
    font-family: "Open Sans", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Split layout ── */
.login-main {
    display: grid;
    grid-template-columns: 44fr 56fr;
    min-block-size: 100vh;
}

/* ════════════════════════════════════
   LEFT PANEL
   ════════════════════════════════════ */
.login-hero {
    background: #07111e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.75rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Ambient glow */
.login-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 85%, rgba(184,137,42,.13) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 10%, rgba(20,45,80,.7) 0%, transparent 55%),
        linear-gradient(155deg, #0b1828 0%, #07111e 60%, #050d17 100%);
    pointer-events: none;
}

/* Subtle dot grid */
.login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.login-hero__logo {
    display: block;
    position: relative;
    z-index: 1;
}

.login-hero__logo img { height: 40px; width: auto; }

.login-hero__body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 3rem 2rem;
}

.login-hero__eyebrow {
    color: #b8892a;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.login-hero__eyebrow::before {
    content: "";
    display: block;
    width: 20px;
    height: 1.5px;
    background: #b8892a;
    border-radius: 2px;
    flex-shrink: 0;
}

.login-hero__tagline {
    color: #fff;
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.22;
    margin: 0 0 .75rem;
    letter-spacing: -.015em;
}
.login-hero__tagline em {
    font-style: normal;
    color: rgba(255,255,255,.45);
    font-weight: 400;
}

.login-hero__sub {
    color: rgba(255,255,255,.42);
    font-size: .875rem;
    line-height: 1.6;
    margin: 0 0 2.5rem;
    max-width: 30ch;
}

/* Feature chips — compact 2-column grid */
.login-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    padding: .6rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    letter-spacing: .01em;
    transition: background .15s, border-color .15s;
}
.login-feature:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(184,137,42,.25);
}

.login-feature__icon {
    flex-shrink: 0;
    color: #b8892a;
    display: flex;
    align-items: center;
}

.login-hero__footer {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.18);
    font-size: .7rem;
    letter-spacing: .04em;
}

/* ════════════════════════════════════
   RIGHT PANEL — form
   ════════════════════════════════════ */
.login-panel {
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 3rem;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 22rem;
}

.login-card-eyebrow {
    display: block;
    color: #b8892a;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: .65rem;
}

.login-card-header {
    margin-block-end: 2rem;
}
.login-card-header h1 {
    color: #07111e;
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.login-card-header p {
    color: #8a96a3;
    font-size: .875rem;
    margin: 0;
    line-height: 1.5;
}

/* Form */
.login-form { display: grid; gap: 1.1rem; }

.login-field { display: grid; gap: .4rem; }

.login-field label {
    color: #374151;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.login-field input {
    background: #fff;
    border: 1.5px solid #e3e8ef;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(7,17,30,.04);
    color: #111827;
    font: inherit;
    font-size: .9375rem;
    width: 100%;
    min-height: 2.9rem;
    padding: .65rem .95rem;
    transition: border-color .15s, box-shadow .15s;
}
.login-field input:hover { border-color: #c5cdd8; }
.login-field input:focus {
    background: #fff;
    border-color: #b8892a;
    box-shadow: 0 0 0 3px rgba(184,137,42,.11);
    outline: 0;
}
.login-field input::placeholder { color: #b5bdc8; opacity: 1; }
.login-field input[aria-invalid=true] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.09);
}

/* Password toggle */
.login-field--password { position: relative; }
.login-pwd-wrap { position: relative; display: block; }
.login-field--password input { padding-inline-end: 2.75rem; }
.login-pwd-toggle {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: .2rem;
    color: #b5bdc8;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.login-pwd-toggle:hover { color: #374151; }

/* Errors */
.login-alert,
.login-field-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
    padding: .6rem .85rem;
}
.login-alert ul,
.login-field-errors ul { list-style: none; margin: 0; padding: 0; }

/* Submit */
.login-submit {
    background: #07111e;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .015em;
    margin-block-start: .25rem;
    min-height: 2.9rem;
    padding: .65rem 1rem;
    transition: background .15s, box-shadow .15s, transform .1s;
    width: 100%;
    box-shadow: 0 1px 3px rgba(7,17,30,.18), 0 4px 10px rgba(7,17,30,.1);
}
.login-submit:hover {
    background: #0f2235;
    box-shadow: 0 2px 6px rgba(7,17,30,.22), 0 6px 16px rgba(7,17,30,.13);
}
.login-submit:active { transform: translateY(1px); box-shadow: none; }
.login-submit:focus-visible { outline: 2px solid #b8892a; outline-offset: 2px; }

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-block: 1.25rem;
    color: #c8d0da;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8edf2;
}

/* Secondary action */
.login-secondary-action {
    display: block;
    text-align: center;
    color: #b8892a;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    padding: .6rem 1rem;
    border: 1.5px solid rgba(184,137,42,.28);
    border-radius: 8px;
    transition: background .15s, border-color .15s;
    letter-spacing: .01em;
}
.login-secondary-action:hover {
    background: rgba(184,137,42,.05);
    border-color: rgba(184,137,42,.55);
}
.login-secondary-action:focus-visible { outline: 2px solid #b8892a; outline-offset: 2px; }

/* Contact links */
.login-contact {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-block-start: 1.1rem;
    align-items: center;
}
.login-contact a {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    color: #a0aab4;
    font-size: .76rem;
    text-decoration: none;
    transition: color .15s;
}
.login-contact a:hover { color: #374151; }

/* ── Responsive ── */
@media (width <= 860px) {
    .login-main { grid-template-columns: 1fr; }
    .login-hero { padding: 2.25rem 2rem 2.5rem; min-height: auto; }
    .login-hero__body { padding-block: 2rem 1.5rem; }
    .login-hero__tagline { font-size: 1.65rem; }
    .login-panel { padding: 2.75rem 1.75rem; background: #fff; }
}

@media (width <= 480px) {
    .login-panel { padding: 2rem 1.25rem; }
    .login-card-header h1 { font-size: 1.55rem; }
    .login-hero { padding: 1.75rem 1.25rem 2rem; }
    .login-hero__tagline { font-size: 1.45rem; }
    .login-features { grid-template-columns: 1fr; }
}
