/* ========================================
   AUTHENTICATION STYLES
   ======================================== */

/* Login page background */
.auth-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Login container */
.auth-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    margin: 20px;
}

/* Login header */
.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-weight: 300;
    font-size: 1.75rem;
}

.auth-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Login body */
.auth-body {
    padding: 30px;
}

/* Form inputs */
.auth-input-group {
    margin-bottom: 20px;
}

.auth-input-group .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #6c757d;
}

.auth-input-group .form-control {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.auth-input-group .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Login button */
.btn-auth-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    color: white;
    transition: all 0.3s ease;
}

.btn-auth-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-auth-login:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.5);
    color: white;
}

/* Remember me checkbox */
.auth-remember {
    margin-bottom: 20px;
}

.auth-remember .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.auth-remember .form-check-label {
    color: #6c757d;
    font-size: 14px;
}

/* Links */
.auth-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Error messages */
.auth-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Success messages */
.auth-success {
    color: #28a745;
    font-size: 14px;
    margin-top: 5px;
}

/* Signup specific styles */
.auth-signup-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.auth-signup-link p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Test pages */
.auth-test-container {
    max-width: 800px;
    margin: 0 auto;
}

.auth-test-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.auth-test-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
}

.auth-test-card .card-header h3 {
    margin: 0;
    font-weight: 300;
}

/* Status indicators */
.auth-status-guest {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    color: #856404;
}

.auth-status-authenticated {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .auth-header {
        padding: 20px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-body {
        padding: 20px;
    }
    
    .auth-input-group .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Animation for form validation */
.auth-form .was-validated .form-control:valid {
    border-color: #28a745;
}

.auth-form .was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Loading state */
.btn-auth-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-auth-login:disabled:hover {
    transform: none;
    box-shadow: none;
}

