/* Authentication Styles */
.auth-body {
    background: linear-gradient(135deg, #004b6b 0%, #366072 50%, #51b146 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.auth-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    background: linear-gradient(135deg, #004b6b 0%, #366072 100%);
    color: white;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.auth-logo i {
    font-size: 2.5rem;
    color: #51b146;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

.auth-body-content {
    padding: 2.5rem 2rem;
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.auth-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--bg-card);
}

.auth-form .form-control:focus {
    border-color: #004b6b;
    box-shadow: 0 0 0 0.2rem rgba(0, 75, 107, 0.25);
    background: var(--bg-card);
}

.auth-form .form-control.is-invalid {
    border-color: #e4203233;
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-base);
}

.password-toggle:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.form-check-input:checked {
    background-color: #004b6b;
    border-color: #004b6b;
}

.form-check-input:focus {
    border-color: #004b6b;
    box-shadow: 0 0 0 0.2rem rgba(0, 75, 107, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #004b6b 0%, #366072 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 75, 107, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #003a54 0%, #2d4f5f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 75, 107, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-divider {
    text-align: center;
    margin: 2rem 0 1rem;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.demo-accounts {
    margin-top: 1rem;
}

.demo-account-btn {
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    transition: var(--transition-base);
    border-width: 2px;
}

.demo-account-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-footer {
    background: var(--bg-body);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #51b146 0%, #4a9e3f 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #e4203233 0%, #c41e3a 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

/* Dark Theme */
[data-theme="dark"] .auth-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .auth-form .form-control {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

[data-theme="dark"] .auth-form .form-control:focus {
    background: var(--bg-card);
    border-color: #4dabf7;
    box-shadow: 0 0 0 0.2rem rgba(77, 171, 247, 0.25);
}

[data-theme="dark"] .auth-footer {
    background: var(--bg-body);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .auth-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .auth-logo h1 {
        font-size: 1.5rem;
    }
    
    .auth-body-content {
        padding: 2rem 1.5rem;
    }
    
    .auth-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-logo i {
        font-size: 2rem;
    }
    
    .auth-logo h1 {
        font-size: 1.3rem;
    }
    
    .demo-accounts .col-6 {
        margin-bottom: 0.5rem;
    }
}

/* Animation for form elements */
.auth-form .form-control,
.auth-form .btn {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.auth-form .form-control:nth-child(1) { animation-delay: 0.1s; }
.auth-form .form-control:nth-child(2) { animation-delay: 0.2s; }
.auth-form .form-check { animation-delay: 0.3s; }
.auth-form .btn { animation-delay: 0.4s; }

