/* Authentication Layout Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Auth page backgrounds applied to body for immediate theme switching */
body[data-theme="light"] .auth-container {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
}

body[data-theme="dark"] .auth-container {
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 1;
}

.auth-brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.auth-brand-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-content {
    width: 100%;
    max-width: 400px;
    z-index: 1;
}

.auth-theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Auth page specific card styling */
.auth-container .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

[data-theme="dark"] .auth-container .card {
    background: rgba(45, 45, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

[data-theme="dark"] .auth-container .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

[data-theme="dark"] .auth-container .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

[data-theme="dark"] .auth-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .auth-container .text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .auth-container .card-title {
    color: var(--text-color);
}

/* Dark mode branding adjustments */
[data-theme="dark"] .auth-brand-logo {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .auth-brand-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .auth-brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dark mode theme toggle adjustments */
[data-theme="dark"] .auth-theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .auth-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive auth layout */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-brand-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .auth-brand-title {
        font-size: 1.5rem;
    }
    
    .auth-brand-subtitle {
        font-size: 0.9rem;
    }
    
    .auth-content {
        max-width: 100%;
    }
}