/* Login Enhanced CSS - Simple & Clean */
:root {
    --primary-color: #4e73df;
    --primary-dark: #3a56c5;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --white-color: #ffffff;
    --text-color: #5a5c69;
    --bg-color: #f8f9fc;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --bg-color: #1a1a1a;
    --white-color: #2d2d2d;
    --text-color: #e0e0e0;
    --light-color: #2d2d2d;
    --dark-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background-color: var(--bg-color);
    overflow-x: hidden;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.login-container {
    min-height: 100vh;
    display: flex;
}

/* Left Panel - Welcome Section */
.welcome-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.08) 0%, transparent 20%);
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.welcome-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-content p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 300;
}

.features-list .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 12px;
    font-size: 0.9rem;
}

/* Right Panel - Login Form */
.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background-color: var(--white-color);
    transition: background-color 0.3s ease;
}

.login-form-container {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo .logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 1.8rem;
    border-radius: 16px;
    margin: 0 auto 1.2rem;
    box-shadow: 0 10px 25px rgba(78, 115, 223, 0.3);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.login-logo .logo-icon:hover {
    transform: rotate(45deg) scale(1.05);
}

.login-logo .logo-icon i {
    transform: rotate(-45deg);
}

.login-logo h2 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Form Styling */
.form-floating {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-floating .form-control {
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    height: calc(3.5rem + 2px);
    padding: 1.2rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white-color);
    color: var(--text-color);
}

.form-floating .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.15);
    transform: translateY(-2px);
}

.form-floating label {
    padding: 1rem;
    color: var(--secondary-color);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 5;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me label {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    margin-right: 8px;
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--secondary-color);
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e8e8e8;
}

[data-bs-theme="dark"] .separator::before,
[data-bs-theme="dark"] .separator::after {
    background-color: #404040;
}

.separator span {
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--white-color);
}

.signup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.signup-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.signup-link i {
    margin-right: 8px;
}

.login-footer {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: rgba(28, 200, 138, 0.15);
    color: #169b6b;
}

.alert-danger {
    background-color: rgba(231, 74, 59, 0.15);
    color: #d52a1a;
}

.alert-warning {
    background-color: rgba(246, 194, 62, 0.15);
    color: #dfa408;
}

.alert-info {
    background-color: rgba(54, 185, 204, 0.15);
    color: #27a2b7;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .welcome-panel {
        display: none;
    }
    
    .form-panel {
        width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 992px) {
    .welcome-panel {
        width: 50%;
    }
    
    .form-panel {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .welcome-panel {
        width: 60%;
    }
    
    .form-panel {
        width: 40%;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Management */
.form-control:focus-visible,
.login-btn:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation Classes */
.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 