:root {
    /* Default to Dark Mode (Green Theme - eiFOS) */
    /* Dark Forest Gradient */
    --bg-body: radial-gradient(circle at 90% 10%, rgba(22, 101, 52, 0.1) 0%, transparent 40%), 
               radial-gradient(circle at 10% 90%, rgba(22, 101, 52, 0.1) 0%, transparent 40%), 
               #121212; /* Soft Black */
    
    /* Darker Card for Contrast */
    --bg-card: radial-gradient(circle at 0% 0%, rgba(22, 101, 52, 0.05) 0%, transparent 35%),
               #18181b; /* Soft Black (Zinc 950) */
    
    --border-card: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    
    --text-primary: #ffffff;
    --text-secondary: #d4d4d8; /* Zinc 300 */
    
    /* Inputs */
    --bg-input: #27272a; /* Zinc 800 */
    --border-input: #166534; /* Primary Brand Color */
    --border-input-hover: #22c55e; /* Lighter version */
    --input-text: #ffffff;
    --input-placeholder: #a1a1aa; /* Zinc 400 */
    --icon-color: #a1a1aa;
    --icon-focus: #86efac; /* Bright Lavender */
    
    --bg-autofill: #27272a;
    --text-autofill: #ffffff;
    
    --bg-option: #18181b;
    
    --concave-color: #18181b; /* Soft Black to match Card */
    --concave-shadow: #18181b;
    
    /* Green Accent for Form Overlay */
    --bg-form-accent: radial-gradient(circle at 10% 10%, rgba(22, 101, 52, 0.45) 0%, transparent 50%),
                      radial-gradient(circle at 90% 90%, rgba(22, 101, 52, 0.25) 0%, transparent 45%);
    
    --link-color: #86efac; /* Bright Lavender */
    --link-hover: #dcfce7; 
    
    --bg-bubble: #ffffff;
    --text-bubble: #166534;
    --arrow-bubble: #ffffff;
    
    --bg-error: #3a1540; 
    --border-error: #22c55e;
    --text-error: #bbf7d0;
    
    --shadow-focus: rgba(22, 101, 52, 0.3);
    --version-bg: rgba(255, 255, 255, 0.1);

    /* Toggle Switch Colors */
    --toggle-bg: #166534;
    --toggle-handle: #ffffff;
}

[data-theme="light"] {
    --bg-body: radial-gradient(circle at 90% 10%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
               radial-gradient(circle at 10% 90%, rgba(22, 101, 52, 0.05) 0%, transparent 40%),
               linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); /* Light Green mix */
    
    /* White Card with Green Accents */
    --bg-card: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.1) 0%, transparent 55%),
               radial-gradient(circle at 10% 90%, rgba(22, 101, 52, 0.05) 0%, transparent 45%),
               #ffffff;
               
    --border-card: 1px solid #dcfce7;
    --shadow-card: 0 25px 50px -12px rgba(22, 101, 52, 0.05), 0 0 0 1px rgba(22, 101, 52, 0.02);
    
    --text-primary: #25172f;
    --text-secondary: #166534;
    
    --bg-input: #fbf9fd;
    --border-input: #dcfce7;
    --border-input-hover: #86efac;
    --input-text: #25172f;
    --input-placeholder: #4b5563;
    --icon-color: #4b5563;
    --icon-focus: #22c55e;
    
    --bg-autofill: #fbf9fd;
    --text-autofill: #25172f;
    
    --bg-option: #ffffff;
    
    --concave-color: #ffffff;
    --concave-shadow: #ffffff;
    
    --bg-form-accent: radial-gradient(circle at 10% 10%, rgba(22, 101, 52, 0.35) 0%, transparent 55%),
                      radial-gradient(circle at 90% 90%, rgba(22, 101, 52, 0.20) 0%, transparent 50%);

    --link-color: #166534;
    --link-hover: #25172f;
    
    --bg-bubble: #25172f;
    --text-bubble: #ffffff;
    --arrow-bubble: #25172f;
    
    --bg-error: #f8f5fa;
    --border-error: #dcfce7;
    --text-error: #166534;
    
    --shadow-focus: rgba(34, 197, 94, 0.2);
    --version-bg: rgba(0, 0, 0, 0.05);

    --toggle-bg: #dcfce7;
    --toggle-handle: #ffffff;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease;
}

/* =====================================================
   Theme Switcher
   ===================================================== */
.theme-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.theme-switch-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--toggle-bg);
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--toggle-handle);
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
}

.fa-sun, .fa-moon {
    font-size: 14px;
    z-index: 1;
}

.fa-sun { color: #facc15; } /* Yellow sun */
.fa-moon { color: #bbf7d0; } /* Light Green moon */

input:checked + .slider {
    background-color: #4ade80; /* Green active */
}
/* When Customizing for dark/light specifically */
[data-theme="light"] .slider {
    background-color: #86efac;
}
[data-theme="dark"] .slider {
    background-color: #15803d;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* =====================================================
   Main Card Container
   ===================================================== */
.login-card {
    display: flex;
    width: 1000px;
    max-width: 100%;
    max-height: 95vh;
    height: 750px;
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* =====================================================
   Error Box
   ===================================================== */
.error-box {
    background-color: var(--bg-error);
    border: 1px solid var(--border-error);
    color: var(--text-error);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    animation: slideDown 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message {
    font-size: 14px;
    font-weight: 500;
}

.close-error {
    background: none;
    border: none;
    color: var(--text-error);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-error:hover { opacity: 1; }

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =====================================================
   Left Side - Form Section
   ===================================================== */
.form-section {
    width: 50%;
    min-width: 380px;
    padding: 50px 60px 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Concave Edge Effect */
.form-section::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 93%;
    transform: translateY(-50%);
    width: 1500px;
    height: 1500px;
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 20px 0 80px 10px var(--concave-shadow), 0 0 0 5000px var(--concave-color);
    z-index: -2;
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

/* Gradient Overlay for Form Section Background */
.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-form-accent);
    z-index: -1;
    pointer-events: none;
    transition: background 0.3s ease;
    /* Soften the right edge to blend with the concave curve */
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

/* =====================================================
   Logo Area
   ===================================================== */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 25px;
    position: relative;
    z-index: 3;
    animation: fadeIn 0.5s ease forwards 0.1s;
    opacity: 0;
}

.client-logo {
    width: auto;
    height: 70px;
    max-width: 250px;
}

/* =====================================================
   Typography
   ===================================================== */
.title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 3;
    animation: fadeIn 0.5s ease forwards 0.15s;
    opacity: 0;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 35px;
    font-weight: 400;
    position: relative;
    z-index: 3;
    animation: fadeIn 0.5s ease forwards 0.2s;
    opacity: 0;
}

/* =====================================================
   Form Styling
   ===================================================== */
.login-form {
    position: relative;
    z-index: 10; /* Higher than footer and other elements to allow dropdown to overlap */
}

.input-group {
    margin-bottom: 18px;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}
.input-group:nth-child(1) { animation-delay: 0.25s; }
.input-group:nth-child(2) { animation-delay: 0.3s; }
.input-group:nth-child(3) { animation-delay: 0.35s; }
.input-group:nth-child(4) { animation-delay: 0.40s; }


.input-wrapper {
    background-color: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 50px;
    transition: all 0.25s ease;
    position: relative;
}

.input-wrapper:hover {
    border-color: var(--border-input-hover);
}

.input-wrapper:focus-within {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px var(--shadow-focus);
}

[data-theme="light"] .input-wrapper:focus-within {
    background-color: #fff;
}

.input-wrapper input {
    background: transparent;
    border: none;
    color: var(--input-text);
    width: 100%;
    height: 100%;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--input-placeholder);
    font-weight: 400;
}

.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-autofill) inset;
    -webkit-text-fill-color: var(--text-autofill);
    caret-color: var(--text-autofill);
    transition: background-color 5000s ease-in-out 0s;
}

.input-icon {
    color: var(--icon-color);
    font-size: 1.1rem;
    margin-left: 12px;
    transition: color 0.25s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--icon-focus);
}

.password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover .input-icon {
    color: #4ade80;
}

/* Company Select */
.company-wrapper {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 18px;
    height: 60px;
    cursor: pointer;
}

.company-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-label {
    font-size: 0.7rem;
    color: var(--icon-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-select {
    background: transparent;
    border: none;
    color: var(--input-text);
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding-right: 30px;
}

/* Custom Dropdown Styling */
.select-hidden {
    display: none;
}

.select-selected {
    background-color: transparent;
    color: var(--input-text);
    padding: 0;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    user-select: none;
    width: 100%;
    height: 100%;
    display: flex; /* Flex to align text vertically */
    align-items: center;
}

.select-items {
    position: absolute;
    background-color: var(--bg-option); /* Solid background color */
    border: 1px solid var(--border-input);
    border-radius: 10px;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Stronger shadow */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    /* Transition only visual properties, not position (top/left) to prevent flying effect */
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--thumb-bg, #166534) transparent;
}

.select-items.select-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 12px 18px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-card);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background-color: rgba(139, 92, 246, 0.1); 
    color: #86efac; /* Bright Lavender */
}

.select-option.same-as-selected {
    background-color: rgba(139, 92, 246, 0.15); /* Slightly stronger bg */
    color: var(--input-text);
    font-weight: 600;
}

/* Custom Scrollbar for Webkit */
.select-items::-webkit-scrollbar {
    width: 6px;
}
.select-items::-webkit-scrollbar-track {
    background: transparent;
}
.select-items::-webkit-scrollbar-thumb {
    background-color: #166534;
    border-radius: 3px;
}
[data-theme="light"] .select-items::-webkit-scrollbar-thumb {
    background-color: #dcfce7;
}

/* Rotation class for icon */
.dropdown-icon.rotate {
    transform: translateY(-50%) rotate(180deg);
    color: #4ade80; /* Active color */
}

.company-select option {
    background-color: var(--bg-option);
    color: var(--input-text);
    padding: 10px;
}

.dropdown-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--icon-color);
    font-size: 0.85rem;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.company-wrapper:focus-within .dropdown-icon {
    color: #86efac;
}

/* =====================================================
   Form Options (Remember Me & Forgot Pass)
   ===================================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -5px;
    animation: fadeIn 0.5s ease forwards 0.4s;
    opacity: 0;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
    position: relative;
    padding-left: 28px;
}

.remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: -1px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.remember-me:hover input ~ .checkmark {
    border-color: var(--border-input-hover);
}

.remember-me input:checked ~ .checkmark {
    background-color: #166534; /* Primary Brand Checkbox */
    border-color: #166534;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.remember-me input:checked ~ .checkmark:after {
    display: block;
}

.remember-me .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password-link {
    font-size: 0.9rem;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* =====================================================
   Login Button
   ===================================================== */
.login-btn {
    width: 100%;
    padding: 18px 24px;
    margin-top: 12px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #22c55e 0%, #166534 100%); /* Deep Green Gradient */
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.4), 0 2px 4px rgba(22, 101, 52, 0.25);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease forwards 0.4s;
    opacity: 0;
    z-index: 3;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(22, 101, 52, 0.5), 0 4px 8px rgba(22, 101, 52, 0.3);
}

.login-btn:hover::before { left: 100%; }
.login-btn:active { transform: translateY(0) scale(0.98); }

/* Loading state - show text with spinner */
.login-btn.loading {
    position: relative;
    pointer-events: none;
}

.login-btn.loading .btn-text {
    padding-left: 35px; /* Make room for spinner */
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -70px; /* Position spinner to the left of text */
    margin-top: -11px;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   SSO (eiFAM) Sign-In
   ===================================================== */
.sso-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeIn 0.5s ease forwards 0.4s;
    opacity: 0;
    z-index: 3;
}

.sso-divider::before,
.sso-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-input);
}

.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    margin-top: 10px;
    border: 1px solid var(--border-input);
    border-radius: 50px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 3;
    transition: all 0.25s ease;
    animation: fadeIn 0.5s ease forwards 0.45s;
    opacity: 0;
}

.sso-btn:hover {
    border-color: #86efac;
    color: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.4);
}

.sso-btn:active {
    transform: translateY(0) scale(0.98);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
    animation: fadeIn 0.5s ease forwards 0.45s;
    opacity: 0;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.footer a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.version {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: var(--version-bg);
    border-radius: 12px;
}

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* =====================================================
   Right Side - Image Section
   ===================================================== */
.image-section {
    width: 60%;
    margin-left: -10%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: url('../img/login-bg-new-night.png') center/cover no-repeat;
}

[data-theme="light"] .image-section {
    background: url('../img/login-bg-new-light.png') center/cover no-repeat;
}

.image-section::before {
    display: none;
}

/* =====================================================
   Mascot
   ===================================================== */
.help-bubble {
    position: fixed;
    bottom: 0px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    z-index: 100;
}

.bubble-text {
    background: var(--bg-bubble);
    color: var(--text-bubble);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    margin-bottom: 50px;
    position: relative;
    animation: bounce 2s infinite;
    transition: opacity 0.2s ease; /* Smooth text change */
}

.bubble-text::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 12px;
    width: 0; 
    height: 0; 
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--arrow-bubble);
}

.mascot-img {
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
    cursor: pointer;
}

.mascot-img:hover {
    transform: translateY(-5px) scale(1.05);
}

.mascot-img.clicked {
    transform: scale(0.95);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        height: auto;
        max-width: 450px;
    }

    .form-section {
        width: 100%;
        min-width: unset;
        padding: 40px 35px 35px;
        order: 2;
    }

    .form-section::after { display: none !important; }

    .image-section {
        width: 100%;
        margin-left: 0;
        height: 250px;
        order: 1;
        background: url('/new-login-ui/img/login-bg-new-night.png') center/cover no-repeat;
    }

    [data-theme="light"] .image-section {
        background: url('/new-login-ui/img/login-bg-new-light.png') center/cover no-repeat;
    }
    
    .image-section::before {
        width: 100%;
        height: 60px;
        background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
        top: auto;
        bottom: 0;
        left: 0;
    }

    .title { font-size: 2rem; }
    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .help-bubble { display: none; }
    
    .theme-switch-wrapper {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    body { padding: 10px; }
    .form-section { padding: 30px 25px 25px; }
    .title { font-size: 1.8rem; }
}
