:root {
    --primary: #584ed2;
    --primary-hover: #4639b3;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #2d3748;
    --text-muted: #718096;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body.theme-3 {
    --primary: #51459d;
    --primary-hover: #41358a;
    --bg-gradient: linear-gradient(135deg, #1A2980 0%, #26D0CE 100%);
}

.custom-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Background elements for depth */
.custom-login::before,
.custom-login::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.custom-login::before {
    top: -100px;
    left: -100px;
}

.custom-login::after {
    bottom: -100px;
    right: -100px;
}

.custom-login-inner {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.custom-login .navbar-brand {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

.custom-login .logo {
    max-height: 50px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.custom-login .card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 40px;
    margin-bottom: 20px;
}

.custom-login h2 {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1rem !important;
    text-align: center;
}

.custom-login .form-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.custom-login .form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
}

.custom-login .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 78, 210, 0.15);
}

.custom-login .btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.custom-login .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 78, 210, 0.3);
}

.custom-login .auth-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Language bar styling */
.lang-dropdown-only-desk .dash-head-link {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 15px !important;
    text-decoration: none;
}

.lang-dropdown-only-desk .dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Hide background images if they look clunky */
.login-bg-img {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .custom-login .card {
        padding: 30px 20px;
    }

    .custom-login h2 {
        font-size: 1.5rem;
    }
}

/* Standardization Overrides */
.custom-login .navbar {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-top: 1.5rem !important;
}

.custom-login .dash-header .navbar-brand a .logo {
    width: auto !important;
    height: auto !important;
    max-height: 80px !important;
    max-width: 250px !important;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2)) !important;
    transition: transform 0.3s ease;
}

.custom-login .dash-header .navbar-brand a .logo:hover {
    transform: scale(1.05);
}

.custom-login .dash-header {
    margin-bottom: 0;
}

.custom-login .text-center.mb-4 {
    margin-bottom: 2rem !important;
}

.lang-dropdown-only-desk .dash-head-link {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px);
}