:root {
    /* Unified Design System - Matching Main App */
    --bg-deep: #f1f5f9;
    --primary-h: 42;
    --primary-s: 68%;
    --primary-l: 62%;
    --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-hover: hsl(var(--primary-h), var(--primary-s), 54%);
    --accent-h: 286;
    --accent-s: 54%;
    --accent-l: 56%;
    --accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));

    --glass-bg: rgba(255, 255, 255, 0.94);
    --glass-border: rgba(7, 95, 208, 0.18);
    --shadow-premium: 0 28px 80px rgba(21, 83, 154, 0.18);

    --text-primary: #08285b;
    --text-secondary: #6e7f96;
    --border-color: #d8e7fb;
    --success-color: #19a65a;
}

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

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 50% 0, rgba(7, 95, 208, 0.12), transparent 420px),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 42%, #ffffff 100%);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 1.5rem;
    position: relative;
}

.login-video-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
    background: #eaf3ff;
}

.login-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at top, rgba(7, 95, 208, 0.10), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 251, 255, 0.92) 100%);
}

.iridescence-bg {
    display: none;
}

.iridescence-bg canvas {
    display: none;
}

.login-container {
    position: relative;
    z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
    .login-video-bg {
        display: none;
    }

    .iridescence-bg {
        display: none;
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    perspective: 1000px;
}

.login-box {
    background: var(--glass-bg);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    box-shadow: var(--shadow-premium);
    padding: 3rem 2.5rem;
    animation: boxFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.login-box > * {
    position: relative;
    z-index: 1;
}

@keyframes boxFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(180deg, #0d68d6 0%, #075fd0 52%, #06357e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    text-shadow: 0 8px 24px rgba(7, 95, 208, 0.18);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    margin-left: 0.2rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 0 0 4px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1),
        0 10px 30px rgba(0, 0, 0, 0.22);
}

.form-group input::placeholder {
    color: rgba(110, 127, 150, 0.42);
}

.form-options {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    padding-left: 0.2rem;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
    transition: color 0.3s;
}

.checkbox-container:hover {
    color: var(--text-primary);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.76);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.login-btn {
    width: 100%;
    background: linear-gradient(180deg, #1173e8 0%, #0051ba 100%);
    color: #ffffff;
    padding: 1.1rem;
    border: 1px solid rgba(0, 79, 178, 0.24);
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 16px 34px rgba(0, 93, 210, 0.24);
    text-shadow: none;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        0 20px 40px rgba(0, 0, 0, 0.34);
    filter: brightness(1.04);
}

.login-btn:active {
    transform: translateY(-1px);
}

.register-link {
    text-align: center;
    margin-top: 2rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: var(--accent-color);
}

.signup-notice {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(110, 127, 150, 0.7);
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(7, 95, 208, 0.12);
    border-radius: 0.8rem;
    padding: 0.6rem 0.75rem;
}

.account-link-row {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.account-link-item {
    color: #075fd0;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.account-link-item:hover {
    color: #075fd0;
}

.account-link-btn {
    appearance: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.account-link-divider {
    color: rgba(110, 127, 150, 0.28);
    font-size: 0.82rem;
}

.recovery-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
}

.recovery-modal.active {
    display: block;
}

.recovery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(9px);
}

.recovery-modal-dialog {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.recovery-modal-shell {
    width: min(620px, calc(100vw - 32px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(7, 95, 208, 0.24);
    border-radius: 28px;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
    overflow: hidden;
}

.recovery-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 28px 18px;
    background:
        radial-gradient(circle at top right, rgba(7, 95, 208, 0.2), transparent 36%),
        linear-gradient(180deg, rgba(7, 95, 208, 0.06), rgba(7, 95, 208, 0));
}

.recovery-kicker {
    color: #075fd0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.recovery-modal-header h2 {
    margin: 0 0 8px;
    color: #08285b;
    font-size: 1.8rem;
    font-weight: 900;
}

.recovery-modal-header p {
    margin: 0;
    color: rgba(110, 127, 150, 0.76);
    font-size: 0.95rem;
    line-height: 1.7;
}

.recovery-close-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(7, 95, 208, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #075fd0;
    font-size: 1.5rem;
    cursor: pointer;
}

.recovery-tab-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 28px 18px;
}

.recovery-tab {
    border: 1px solid rgba(7, 95, 208, 0.16);
    background: rgba(255, 255, 255, 0.52);
    color: rgba(110, 127, 150, 0.82);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.recovery-tab.active {
    background: linear-gradient(180deg, rgba(150, 190, 240, 0.2), rgba(150, 190, 240, 0.2));
    border-color: rgba(7, 95, 208, 0.34);
    color: #08285b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.recovery-panel {
    display: none;
    padding: 0 28px 28px;
}

.recovery-panel.active {
    display: block;
}

.recovery-hero-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 17px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(7, 95, 208, 0.18), rgba(7, 95, 208, 0.16));
    border: 1px solid rgba(7, 95, 208, 0.14);
}

.recovery-hero-card strong {
    color: #08285b;
    font-size: 1rem;
    font-weight: 800;
}

.recovery-hero-card span {
    color: rgba(110, 127, 150, 0.76);
    font-size: 0.92rem;
    line-height: 1.7;
}

.recovery-form .form-group:last-of-type {
    margin-bottom: 1.2rem;
}

.recovery-submit {
    margin-top: 4px;
}

.recovery-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.recovery-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(7, 95, 208, 0.1);
    color: rgba(110, 127, 150, 0.5);
}

.recovery-step span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
}

.recovery-step em {
    font-style: normal;
    font-size: 0.86rem;
    font-weight: 700;
}

.recovery-step.active {
    color: #08285b;
    border-color: rgba(7, 95, 208, 0.24);
    background: linear-gradient(180deg, rgba(150, 190, 240, 0.12), rgba(150, 190, 240, 0.1));
}

.recovery-step.active span {
    background: linear-gradient(180deg, rgba(82, 150, 232, 0.98), rgba(7, 95, 208, 0.96));
    color: #ffffff;
}

.recovery-step-panel {
    display: none;
}

.recovery-step-panel.active {
    display: block;
}

.recovery-inline-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.recovery-inline-actions .login-btn {
    flex: 1;
}

.recovery-secondary-btn {
    min-width: 116px;
    padding: 1.05rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(7, 95, 208, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #1a2a42;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
}

.recovery-feedback {
    min-height: 22px;
    margin-top: 12px;
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(110, 127, 150, 0.7);
}

.recovery-feedback.is-success {
    color: #8be0b3;
}

.recovery-feedback.is-error {
    color: #d84242;
}

.recovery-username-result[hidden] {
    display: none !important;
}

.recovery-username-result {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 4px;
}

.recovery-result-card {
    width: 100%;
    max-width: 460px;
    padding: 32px 28px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(7, 95, 208, 0.22);
    background:
        radial-gradient(circle at top, rgba(150, 190, 240, 0.12), transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.recovery-result-kicker {
    margin-bottom: 10px;
    color: rgba(110, 127, 150, 0.6);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.recovery-result-card h3 {
    margin: 0 0 10px;
    color: #08285b;
    font-size: 1.6rem;
    font-weight: 800;
}

.recovery-result-card p {
    margin: 0;
    color: rgba(110, 127, 150, 0.74);
    line-height: 1.7;
}

.recovery-result-value {
    margin: 22px 0 24px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(7, 95, 208, 0.22);
    background: rgba(255, 255, 255, 0.56);
    color: #075fd0;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.swal2-container {
    z-index: 30000 !important;
}

/* Success Overlay Styles */
.success-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(241, 245, 249, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.success-overlay.active {
    display: flex;
}

.success-card {
    background: #ffffff;
    padding: 4rem 2.5rem;
    border-radius: 2.5rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 480px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 1);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-overlay.active .success-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: #ecfdf5;
    color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    margin: 0 auto 2rem;
    animation: iconBounce 1s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.2);
}

.success-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.success-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.user-id-badge {
    display: inline-block;
    padding: 1rem 2rem;
    background: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.go-home-btn {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 1.25rem;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 15px 30px -5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
}

.go-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
    filter: brightness(1.1);
}

@keyframes iconBounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-12px);
    }
}

/* Mobile Responsive Optimization */
@media (max-width: 480px) {
    body {
        padding: 1rem;
        align-items: flex-start;
    }

    .login-box {
        padding: 2.25rem 1.25rem;
        border-radius: 1.75rem;
        /* Smoother rounded corners on mobile */
    }

    .login-header h1 {
        font-size: 1.875rem;
    }

    .login-header {
        margin-bottom: 2.5rem;
    }

    .form-group input {
        padding: 0.875rem 1rem;
    }

    .success-card {
        padding: 3rem 1.5rem;
        border-radius: 2rem;
    }

    .success-card h2 {
        font-size: 1.75rem;
    }

    .recovery-modal-header,
    .recovery-tab-row,
    .recovery-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .recovery-stepper,
    .recovery-inline-actions {
        flex-direction: column;
    }

    .recovery-secondary-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-board-list {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        background: #ffffff;
    }

    .mobile-board-item {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 12px 14px;
        border-bottom: 1px solid #e5e7eb;
        background: #ffffff;
        cursor: pointer;
    }

    .mobile-board-thumb {
        width: 92px;
        height: 68px;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        background-size: cover;
        background-position: center;
        background-color: #f8fafc;
        color: #cbd5e1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        overflow: hidden;
    }

    .mobile-board-thumb.no-image span {
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.04em;
    }

    .mobile-board-main {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .mobile-board-title {
        color: #2f5fc4;
        font-size: 1.08rem;
        font-weight: 500;
        line-height: 1.28;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-board-number {
        color: #9ca3af;
        font-size: 0.8rem;
        margin-right: 5px;
    }

    .mobile-board-summary {
        color: #666;
        font-size: 0.86rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-board-meta {
        color: #777;
        font-size: 0.78rem;
        line-height: 1.35;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
        align-items: center;
    }

    .mobile-board-meta span:not(:last-child)::after {
        content: "/";
        color: #cbd5e1;
        margin-left: 8px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 0.75rem;
    }

    .login-box {
        padding: 2rem 1rem;
        border-radius: 1.35rem;
    }

    .login-header h1 {
        font-size: 1.65rem;
    }

    .form-options,
    .login-links {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .recovery-modal-content {
        width: calc(100vw - 18px);
    }
}

/* === Login layout: hero side-rail (concept 3) + main video background === */
body {
    display: block;
    padding: 0;
    align-items: stretch;
    justify-content: initial;
}
.login-stage {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 460px;
}
.login-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6vw;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .5);
}
.login-hero-crest {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    font-size: 40px;
    color: #ffd26a;
    background: linear-gradient(160deg, rgba(12, 99, 203, .85), rgba(6, 53, 126, .85));
    border: 3px solid #d8a84d;
    margin-bottom: 22px;
}
.login-hero-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 7vw, 88px);
    line-height: .92;
    letter-spacing: .05em;
    font-weight: 800;
}
.login-hero-sub {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 3vw, 30px);
    margin-top: 8px;
    letter-spacing: .04em;
}
.login-hero-desc {
    margin: 18px 0 0;
    font-size: 18px;
    font-weight: 800;
    max-width: 460px;
    line-height: 1.6;
}
.login-container {
    width: 100%;
    max-width: none;
    perspective: none;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: -24px 0 70px rgba(21, 83, 154, .22);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 48px;
}
.login-box {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    overflow: visible;
}
.login-box::before { display: none; }
.login-header { text-align: left; margin-bottom: 26px; }
.login-header h1 {
    font-size: 1.9rem;
    font-weight: 900;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #08285b;
    text-shadow: none;
    text-transform: none;
}
.login-lead {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: .9rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .login-stage {
        grid-template-columns: 1fr;
        place-items: center;
        padding: 24px;
    }
    .login-hero { display: none; }
    .login-container {
        max-width: 440px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 30px 80px rgba(21, 83, 154, .22);
        border: 1px solid rgba(7, 95, 208, .18);
        border-radius: 24px;
        padding: 40px 32px;
    }
}

/* overlay: darken left for hero white text, keep right (rail) clear */
.login-video-overlay {
    background:
        linear-gradient(90deg, rgba(4, 22, 52, 0.46), rgba(4, 22, 52, 0.14) 42%, transparent 62%),
        linear-gradient(180deg, transparent, rgba(8, 30, 70, 0.20));
}
@media (max-width: 900px) {
    .login-video-overlay {
        background:
            radial-gradient(circle at top, rgba(7, 95, 208, 0.10), transparent 46%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 251, 255, 0.86));
    }
}
