/* auth-styles.css - Light Blue Theme */
:root {
    --primary-color: #4a86e8;
    --secondary-color: #a7c7f7;
    --accent-color: #6c9ce0;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --border-radius: 10px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --input-shadow: 0 2px 6px rgba(74, 134, 232, 0.15);
    --transition: all 0.3s ease;
}

.auth-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e1e8f5;
}

.auth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 22px;
    text-align: center;
    border-bottom: 1px solid #e1e8f5;
}

.auth-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.auth-body {
    padding: 25px;
}

.auth-body .form-floating {
    margin-bottom: 18px;
}

.auth-body .form-control {
    border-radius: 8px;
    padding: 14px 16px;
    height: auto;
    border: 1px solid #d1e2f9;
    box-shadow: var(--input-shadow);
    transition: var(--transition);
}

.auth-body .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 134, 232, 0.2);
}

.auth-body .btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(74, 134, 232, 0.25);
}

.auth-body .btn-primary:hover {
    background: linear-gradient(to right, #3a76d6, #5b8cdc);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 134, 232, 0.3);
}

.btn-google {
    background: #db4437;
    color: white;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(219, 68, 55, 0.25);
    border: none;
}

.btn-google:hover {
    background: #c23321;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(219, 68, 55, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f5f9ff;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid #e1e8f5;
}

.user-icon {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(74, 134, 232, 0.25);
}

.btn-group {
    display: flex;
    gap: 15px;
}

.btn-logout {
    background: linear-gradient(to right, #e74c3c, #e67e22);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    flex: 1;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.25);
}

.btn-logout:hover {
    background: linear-gradient(to right, #c0392b, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

.btn-cancel {
    background: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    flex: 1;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.25);
}

.btn-cancel:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e1e8f5;
}

.divider::before {
    margin-right: .8em;
}

.divider::after {
    margin-left: .8em;
}

.auth-alert {
    border-radius: 8px;
    border: none;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-access-denied {
    text-align: center;
    padding: 30px;
}

.auth-access-denied h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.auth-access-denied p {
    color: #6c757d;
    margin-bottom: 20px;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.text-danger {
    color: #dc3545 !important;
}

@media (max-width: 576px) {
    .auth-container {
        max-width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .auth-body {
        padding: 20px;
    }
    
    .auth-header {
        padding: 18px;
    }
    
    .auth-header h3 {
        font-size: 1.3rem;
    }
}

/* Floating label adjustments */
.form-floating > label {
    padding: 1rem 0.75rem;
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--primary-color);
    font-weight: 500;
}

/* Animation for form elements */
.form-control, .btn, .auth-card {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.btn:focus, .form-control:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 134, 232, 0.25);
}

/* Additional styles for password recovery pages */
.auth-alert {
    border-radius: 8px;
    border: none;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.auth-alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.text-center {
    text-align: center;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}