.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.login-wrapper {
    width: 100%;
    max-width: 1400px;
    padding: 2rem 1rem;
}

.login-grid {
    min-height: 100vh;
    gap: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

@media (min-width: 601px) {
    .login-grid {
        flex-wrap: nowrap;
    }
    
    .login-form-section,
    .welcome-section {
        flex-shrink: 0;
    }
}

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 2px solid #e5e7eb;
}

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card {
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #e5e7eb;
}

.feature-card {
    height: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #d1d5db;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .login-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .login-grid {
        min-height: auto;
        gap: 1rem;
        flex-direction: column;
    }
    
    .login-card {
        margin: 0 auto;
    }
    
    .welcome-section {
        display: none;
    }
    
    .welcome-card .mud-card-content {
        padding: 1.5rem !important;
    }
    
    .login-card .mud-card-content {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 0.5rem;
    }
    
    .feature-card .mud-stack-row {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-card .mud-stack-row > div:first-child {
        margin-bottom: 0.5rem;
    }
}

/* Enhanced button styling */
.login-card .mud-button-filled-primary {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-card .mud-button-filled-primary:hover {
    background: #1e40af !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Input field enhancements */
.login-card .mud-input-outlined .mud-input-slot {
    border-radius: 8px;
    border-width: 2px;
    border-color: #6b7280;
}

.login-card .mud-input-outlined:not(.mud-input-error):not(.mud-disabled):hover .mud-input-slot {
    border-color: #1d4ed8;
}

.login-card .mud-input-outlined.mud-input-focused .mud-input-slot {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card,
.welcome-card {
    animation: fadeInUp 0.6s ease-out;
}

.welcome-card {
    animation-delay: 0.2s;
}

/* Icon styling */
.text-center .mud-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* High contrast text styling for accessibility */
.login-card .mud-typography-h4 {
    color: #111827 !important;
    font-weight: 700;
}

.login-card .mud-typography-h6 {
    color: #374151 !important;
    font-weight: 600;
}

.login-card .mud-input-label {
    color: #374151 !important;
    font-weight: 500;
}

.login-card .mud-checkbox-label {
    color: #374151 !important;
}

.login-card .mud-link {
    color: #1d4ed8 !important;
    font-weight: 500;
    text-decoration: underline;
}

.login-card .mud-link:hover {
    color: #1e40af !important;
}

/* Welcome card text styling */
.welcome-card .mud-typography-h3 {
    color: #111827 !important;
    font-weight: 700;
}

.welcome-card .mud-typography-h5 {
    color: #374151 !important;
    font-weight: 600;
}

.welcome-card .mud-typography-h6 {
    color: #111827 !important;
    font-weight: 600;
}

.welcome-card .mud-typography-body2 {
    color: #4b5563 !important;
}

.welcome-card .mud-typography-body1 {
    color: #374151 !important;
    font-weight: 500;
}

/* Focus indicators for better accessibility */
.login-card .mud-button:focus,
.login-card .mud-input:focus,
.login-card .mud-checkbox:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Error message styling */
.login-card .alert-danger {
    background-color: #fef2f2;
    border: 2px solid #dc2626;
    color: #991b1b;
    font-weight: 500;
}