@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');

/* ============================================
   VISUALBASE 11 - LOGIN PAGE v2.1
   Color Consistent Design with Genesis Integration
   ============================================ */

/* BASE STYLES */
html, body {
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--bs-primary);
}

.btn-primary {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: color-mix(in srgb, var(--bs-primary) 85%, #000 15%);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--bs-primary);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--bs-success);
}

.invalid {
    outline: 1px solid var(--bs-danger);
}

.validation-message {
    color: var(--bs-danger);
}

/* ERROR UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* MAIN CONTAINER */
.login-split-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1220 0%, #13294b 45%, #0b3a6d 100%);
}

/* ============================================
   LEFT SECTION - VISUALBASE BRANDING
   ============================================ */

.login-left-section {
    flex: 0 0 65%;
    background: rgba(10, 22, 40, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: fadeInLeft 0.8s ease-out forwards;
    color: #fff;
    padding: 0 2rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

    /* Animated radial glow */
    .login-left-section::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--bs-primary) 25%, transparent 75%) 0%, transparent 60%), radial-gradient(circle at 70% 80%, rgba(0, 196, 180, 0.15) 0%, transparent 50%);
        pointer-events: none;
        animation: pulse 4s ease-in-out infinite;
    }

    /* Floating particles */
    .login-left-section::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px), radial-gradient(circle, rgba(0,196,180,0.3) 1px, transparent 1px), radial-gradient(circle, rgba(212,175,55,0.3) 1px, transparent 1px);
        background-size: 50px 50px, 80px 80px, 100px 100px;
        background-position: 0 0, 40px 60px, 70px 20px;
        animation: particleFloat 20s linear infinite;
        pointer-events: none;
        opacity: 0.4;
    }

.brand-content {
    position: relative;
    z-index: 10;
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Logo wrapper with glassmorphism - FIXED */
.logo-wrapper {
    width: 160px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px color-mix(in srgb, var(--bs-primary) 30%, transparent 70%), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
    padding: 15px 20px;
    will-change: transform;
}

    .logo-wrapper i {
        font-size: 4rem;
        color: #fff;
    }

.brand-logo {
    width: 100%;
    height: 100%;
    max-width: 130px;
    max-height: 40px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

/* Consistent Teal Gradient Title (like Genesis gold gradient) */
.brand-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #00c4b4 0%, #0ea5e9 50%, #06b6d4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    text-shadow: none;
    line-height: 1.2;
}

.preview-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.brand-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Genesis Stats Badges */
.genesis-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .stat-badge:hover {
        transform: translateY(-5px) scale(1.05);
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 10px 30px rgba(0, 196, 180, 0.3);
    }

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00c4b4, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Unified Platform Diagram */
.platform-diagram {
    width: 100%;
    max-width: 900px;
    margin: 1rem auto 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin: 1rem 0 0 0;
    line-height: 1.4;
}

.diagram-container {
    padding: 0;
}

.unity-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 196, 180, 0.2));
    min-height: 370px;
}

/* Genesis Link Button */
.genesis-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #d4af37, #f59e0b);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3), 0 4px 16px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .genesis-link:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4), 0 8px 24px rgba(212, 175, 55, 0.3);
        color: white;
        text-decoration: none;
    }

    .genesis-link:active {
        transform: translateY(-1px);
    }

    .genesis-link i:first-child {
        font-size: 1.1rem;
        animation: spin 3s linear infinite;
    }

    .genesis-link i:last-child {
        font-size: 0.8rem;
        opacity: 0.9;
    }

/* Decorative circles */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    will-change: transform;
    pointer-events: none;
    box-shadow: 0 0 60px rgba(0, 196, 180, 0.2);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: -75px;
    animation: float 10s ease-in-out infinite;
}

/* ============================================
   RIGHT SECTION - MODERN LOGIN FORM
   ============================================ */

.login-right-section {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11, 18, 32, 0.25) 0%, rgba(19, 41, 75, 0.35) 55%, rgba(11, 58, 109, 0.4) 100%);
    padding: 0;
    animation: fadeInRight 0.8s ease-out;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    .login-right-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient( 45deg, transparent, transparent 60px, rgba(0, 102, 204, 0.02) 60px, rgba(0, 102, 204, 0.02) 120px );
        pointer-events: none;
        opacity: 0.35;
    }

/* Modern form container */
.login-form-container {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 12px 24px rgba(0, 0, 0, 0.12), 0 24px 48px rgba(0, 0, 0, 0.15), 0 48px 96px color-mix(in srgb, var(--bs-primary) 20%, rgba(0,0,0,0.15) 80%);
    border: 2px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, color-mix(in srgb, var(--bs-primary) 30%, transparent 70%), color-mix(in srgb, var(--bs-primary) 10%, transparent 90%) );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: auto;
    transition: all 0.4s ease;
    animation: cardEntrance 0.6s ease-out 0.3s backwards;
    position: relative;
    z-index: 1;
}

    .login-form-container:hover {
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.15), 0 32px 64px rgba(0, 0, 0, 0.18), 0 64px 128px color-mix(in srgb, var(--bs-primary) 25%, rgba(0,0,0,0.18) 75%);
        transform: translateY(-4px);
    }

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h2 {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--bs-dark);
        margin-top: 0;
    }

    .login-header p {
        font-size: 0.95rem;
        color: var(--bs-secondary);
    }

/* Modern form labels */
.form-label {
    color: color-mix(in srgb, var(--bs-dark) 85%, transparent 15%);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

    .form-label i {
        color: var(--bs-primary);
        opacity: 0.7;
    }

/* Modern input fields */
.form-control {
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .form-control:focus {
        border-color: var(--bs-primary);
        border-width: 2px;
        background: #fff;
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--bs-primary) 15%, transparent 85%), 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.05);
        transform: translateY(-1px);
    }

    .form-control::placeholder {
        color: #94a3b8;
    }

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Modern primary button */
.btn-primary {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, var(--bs-primary) 0%, color-mix(in srgb, var(--bs-primary) 85%, #000 15%) 100% );
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 4px 8px color-mix(in srgb, var(--bs-primary) 30%, rgba(0,0,0,0.2) 70%), 0 8px 16px color-mix(in srgb, var(--bs-primary) 25%, rgba(0,0,0,0.15) 75%);
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 8px 16px color-mix(in srgb, var(--bs-primary) 35%, rgba(0,0,0,0.25) 65%), 0 16px 32px color-mix(in srgb, var(--bs-primary) 30%, rgba(0,0,0,0.2) 70%);
    }

    .btn-primary:active {
        transform: translateY(-1px);
    }

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent );
        transition: left 0.5s;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

.btn-lg {
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

/* Beta badges */
.beta-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3));
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.betalogin-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    background: var(--bs-primary);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 1px;
    display: inline-block;
}

/* Modern divider */
.divider-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    margin: 1.5rem 0;
}

    .divider-text::before, .divider-text::after {
        content: '';
        flex: 1;
        height: 2px;
        background: linear-gradient( to right, transparent, #cbd5e1, transparent );
    }

    .divider-text:not(:empty)::before {
        margin-right: 1rem;
    }

    .divider-text:not(:empty)::after {
        margin-left: 1rem;
    }

    .divider-text span {
        color: color-mix(in srgb, var(--bs-secondary) 80%, transparent 20%);
        font-size: 0.8125rem;
        font-weight: 600;
        background: #fff;
        padding: 0 12px;
        position: relative;
        z-index: 1;
        display: inline-block;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

/* Social auth buttons */
.auth-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.auth-logo-wrapper {
    display: inline-flex;
    align-items: center;
}

.btn-microsoft-auth, .btn-google-auth {
    background-color: #ffffff;
    color: #1f2937;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.875rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.06);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-microsoft-auth::before,
    .btn-google-auth::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, color-mix(in srgb, var(--bs-primary) 8%, transparent 92%), transparent );
        opacity: 0;
        transition: opacity 0.3s;
    }

    .btn-microsoft-auth:hover::before,
    .btn-google-auth:hover::before {
        opacity: 1;
    }

    .btn-microsoft-auth:hover, .btn-google-auth:hover {
        background-color: #f8fafc;
        border-color: color-mix(in srgb, var(--bs-primary) 30%, #cbd5e1 70%);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
    }

    .btn-microsoft-auth:active, .btn-google-auth:active {
        transform: translateY(0);
    }

    .btn-microsoft-auth:focus {
        outline: 3px solid #99c2ff;
        outline-offset: 2px;
    }

    .btn-google-auth:focus {
        outline: 3px solid #9ed0ff;
        outline-offset: 2px;
    }

/* ============================================
   DARK THEME SUPPORT
   ============================================ */

:root[data-theme="fluent-dark"],
:root[data-theme="fluent-dark-custom"],
[data-bs-theme="dark"] {
    .login-right-section {
        background: linear-gradient(135deg, var(--bs-dark, #1a1a2e) 0%, color-mix(in srgb, var(--bs-primary) 5%, var(--bs-dark, #1a1a2e) 95%) 100% );
    }

        .login-right-section::before {
            background: repeating-linear-gradient( 45deg, transparent, transparent 60px, rgba(0, 196, 180, 0.02) 60px, rgba(0, 196, 180, 0.02) 120px );
        }

    .login-form-container {
        background: var(--bs-body-bg, #16213e);
        box-shadow: 0 20px 60px rgba(0, 196, 180, 0.15), 0 0 40px rgba(0, 196, 180, 0.1), 0 1px 3px rgba(0,0,0,0.3);
        border: 1px solid rgba(0, 196, 180, 0.2);
        background-image: linear-gradient(var(--bs-body-bg, #16213e), var(--bs-body-bg, #16213e)), linear-gradient(135deg, rgba(0, 196, 180, 0.2), rgba(0, 196, 180, 0.05) );
    }

        .login-form-container:hover {
            box-shadow: 0 24px 72px rgba(0, 196, 180, 0.2), 0 0 48px rgba(0, 196, 180, 0.15), 0 1px 3px rgba(0,0,0,0.4);
        }

    .login-header h2 {
        color: var(--bs-light, #f8f9fa);
    }

    .form-control {
        background: rgba(26, 33, 62, 0.5);
        border-color: rgba(0, 196, 180, 0.2);
        color: var(--bs-light, #f8f9fa);
    }

        .form-control:focus {
            background: rgba(26, 33, 62, 0.8);
            border-color: rgba(0, 196, 180, 0.5);
        }

    .divider-text span {
        background: var(--bs-body-bg, #16213e);
    }

    .btn-microsoft-auth,
    .btn-google-auth {
        background-color: #2d2d3a;
        color: #e8eaed;
        border-color: #5f6368;
    }

        .btn-microsoft-auth::before,
        .btn-google-auth::before {
            background: linear-gradient(135deg, rgba(0, 196, 180, 0.1), transparent );
        }

        .btn-microsoft-auth:hover,
        .btn-google-auth:hover {
            background-color: #3c3c4a;
            border-color: rgba(0, 196, 180, 0.3);
        }
}

/* ============================================
   RTL SUPPORT
   ============================================ */

html[dir="rtl"] body {
    font-family: "Tajawal", "Cairo", "Noto Sans Arabic", sans-serif;
    line-height: 1.7;
}

html[dir="rtl"] h1 {
    font-family: "Cairo", "Tajawal", sans-serif;
    font-weight: 700;
}

[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .btn-close {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .auth-logo {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes particleFloat {
    0% {
        background-position: 0 0, 40px 60px, 70px 20px;
    }

    100% {
        background-position: 50px 50px, 90px 110px, 120px 70px;
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

.login-left-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-logo-wrapper {
    display: none;
}

@media (max-width: 992px) {
    html, body {
        height: auto;
        overflow: auto;
    }

    .login-split-container {
        flex-direction: column;
        height: auto;
    }

    .login-left-section {
        min-height: 300px;
        padding: 2rem;
    }

    .brand-content {
        padding: 2rem 1rem;
        max-width: 750px;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .preview-subtitle {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .platform-diagram {
        max-width: 700px;
    }

    .section-title {
        font-size: 1rem;
    }

    .unity-svg {
        min-height: 300px;
    }

    .genesis-stats {
        gap: 1rem;
    }

    .stat-badge {
        min-width: 80px;
        padding: 0.75rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .login-form-container {
        padding: 2rem;
    }

    .login-right-section {
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .login-left-section {
        display: none;
    }

    .login-right-section {
        width: 100%;
        padding: 1.25rem;
        align-items: flex-start;
        justify-content: center;
        min-height: 100vh;
    }

    .form-logo-wrapper {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }

    .platform-diagram {
        display: none;
    }

    .genesis-link {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .login-left-section {
        min-height: 250px;
    }

    .logo-wrapper {
        width: 140px;
        height: 70px;
        padding: 12px 16px;
        margin-bottom: 1rem;
    }

    .brand-logo {
        max-width: 110px;
        max-height: 35px;
    }

    .brand-title {
        font-size: 2rem;
    }

    .preview-subtitle {
        font-size: 0.9rem;
    }

    .brand-subtitle {
        font-size: 1rem;
    }

    .genesis-stats {
        display: none;
    }

    .login-form-container {
        padding: 1.5rem 2rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}

.form-logo {
    width: 130px;
    height: 40px;
    margin: 0 auto;
}

/* ============================================
   BOOTSTRAP THEME OVERRIDES
   ============================================ */

:root[data-theme="fluent-custom"] {
    --bs-primary: var(--custom-primary, #0d6efd);
    --bs-link-color: var(--custom-primary, #0d6efd);
}

:root[data-theme="fluent-dark-custom"] {
    --bs-primary: var(--custom-primary, #4f46e5);
    --bs-link-color: var(--custom-primary, #4f46e5);
}
