/* =================================================================
   AUTHENTICATION PAGES - MINIMAL CSS (Bootstrap 5 Optimized)
   ================================================================= */

/* Import Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* CSS Variables */
:root {
    --auth-primary: #017bfe;
    --auth-primary-dark: #0056b3;
    --auth-bg-light: #eafbff;
}

/* Essential Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Global Styles */
body { font-family: 'Poppins', sans-serif; }

/* Background Wrapper */
.auth-wrapper {
    min-height: 100vh;
    padding-top: 60px; /* Navbar clearance */
    position: relative;
}

/* Background Image Support */
.auth-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

/* Card Animation */
.auth-card { 
    animation: fadeInUp 0.6s ease-out; 
    position: relative;
    z-index: 1;
}

/* Primary Button Override */
.btn-auth-primary {
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    border: none;
    transition: all 0.3s ease;
    color: white;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 123, 254, 0.3);
    color: white;
}

/* Form Focus Enhancement */
.form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.2rem rgba(1, 123, 254, 0.15);
}

/* Link Styling */
.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Enhanced Error Messages */
.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-danger .alert-heading {
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-success .alert-heading {
    color: #155724;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .auth-wrapper { padding-top: 30px; }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .btn-auth-primary { border: 2px solid var(--auth-primary-dark); }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .auth-card, .btn-auth-primary { animation: none; transition: none; }
}

/* Modal Form Control Height Adjustment */
.modal-body .form-control {
    min-height: 38px;
    padding: 0.5rem 0.75rem;
}

.modal-body .form-control:not(textarea) {
    height: 38px;
}

/* Label styling for modals */
.modal-body .form-label.fw-semibold {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.modal-body .form-label.fw-semibold i {
    color: var(--auth-primary);
}

/* =================================================================
   EMAIL VERIFICATION MODALS
   ================================================================= */

/* Modal Content Enhancements */
.modal-content {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

/* Modal Header Gradients */
.modal-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.modal-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

.modal-header.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%) !important;
}

/* Icon Circle Animations */
.modal-body .rounded-circle {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-body .rounded-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Alert Box Enhancements */
.modal-body .alert {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-body .alert-info {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    color: #01579b;
}

.modal-body .alert-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

/* Modal Button Enhancements */
.modal-footer .btn {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Success Modal Specific */
#emailVerificationModal .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

#emailVerificationModal .btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

#emailVerificationModal .btn-outline-success:hover {
    background: #28a745;
    color: white;
}

/* Warning Modal Specific */
#accountNotActivatedModal .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border: none;
    color: white;
}

#accountNotActivatedModal .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
}

/* Info Modal Specific */
#accountAlreadyVerifiedModal .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
    border: none;
    color: white;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Text Enhancements */
.modal-body h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-body .text-muted {
    color: #6c757d !important;
    line-height: 1.6;
}

/* Responsive Modal Adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem !important;
    }
    
    .modal-footer .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}
