/* Base styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 20px; /* Added space at bottom */
}

.login-logo {
    max-width: 50%;
    height: auto;
    transition: transform 0.3s ease; /* Added smooth hover effect */
}

.login-logo:hover {
    transform: scale(1.05); /* Subtle hover effect */
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); /* Interactive shadow */
}

/* Verification section styles */
#verificationSection {
    transition: all 0.3s ease;
    background-color: rgba(13, 110, 253, 0.05); /* Light blue background */
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Countdown timer styling */
#countdown {
    font-family: monospace;
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1em;
}

/* Generated code styling */
#generatedCode {
    letter-spacing: 3px;
    color: #0d6efd;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin: 5px 0;
}

/* Popup notification styles */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 320px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateX(120%);
    animation: slideIn 0.4s forwards;
}

.notification-popup.success {
    background-color: #198754;
}

.notification-popup.error {
    background-color: #dc3545;
}

.notification-popup .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.8;
}

.notification-popup .close-btn:hover {
    opacity: 1;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .d-flex.justify-content-between.mt-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between.mt-4 > * {
        width: 100%;
    }
    
    .login-logo {
        max-height: 60px !important;
    }

    .notification-popup {
        max-width: 90%;
        left: 5%;
        right: 5%;
        top: 10px;
    }
}

/* Form validation styles */
.was-validated .form-control:invalid, 
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid, 
.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Loading spinner animation */
.spinner-border {
    vertical-align: middle;
    margin-right: 8px;
}

/* Enhanced input focus states */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    z-index: 9999;
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.fade-out {
    transform: translateX(120%);
    opacity: 0;
}

.notification-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification i:first-child {
    margin-right: 12px;
    font-size: 1.2em;
}

.notification.success i:first-child {
    color: #28a745;
}

.notification.error i:first-child {
    color: #dc3545;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0 0 0 15px;
}

.notification-close:hover {
    color: #495057;
}


/* Countdown timer styles */
#countdown {
    font-family: monospace;
    transition: color 0.3s ease;
}

#countdown.text-danger {
    color: #dc3545 !important;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

/* Disabled input style */
#verificationCode:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    border-color: #dee2e6;
}


/* CAPTCHA Styles */
#captcha {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 3px;
    user-select: none;
}

#captcha span {
    display: inline-block;
    margin: 0 2px;
}

/* Unlock Modal Styles */
#unlockModal .modal-body {
    padding: 2rem;
}

#unlockModal strong {
    color: var(--bs-primary);
}

/* Disabled State */
.form-control:disabled {
    background-color: #f8f9fa;
}