/* Email Verification Modal Styles */
.verification-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.verification-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.verification-modal-header {
    background: linear-gradient(135deg, #044f27 0%, #066a35 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.verification-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.verification-modal-header p {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.verification-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.verification-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.verification-modal-body {
    padding: 40px 30px;
}

.verification-instructions {
    text-align: center;
    margin-bottom: 30px;
    color: #495057;
    line-height: 1.6;
}

.verification-code-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.verification-code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    text-transform: none;
}

.verification-code-input:focus {
    outline: none;
    border-color: #044f27;
    background: white;
    box-shadow: 0 0 0 3px rgba(4, 79, 39, 0.1);
    transform: translateY(-2px);
}

.verification-code-input.filled {
    border-color: #044f27;
    background: white;
}

.verification-timer {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
}

.verification-timer.expiring {
    color: #dc3545;
    font-weight: 600;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-verify {
    background: linear-gradient(135deg, #044f27 0%, #066a35 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-verify:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(4, 79, 39, 0.3);
}

.btn-verify:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-resend {
    background: transparent;
    color: #044f27;
    border: 2px solid #044f27;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-resend:hover:not(:disabled) {
    background: #044f27;
    color: white;
    transform: translateY(-1px);
}

.btn-resend:disabled {
    border-color: #6c757d;
    color: #6c757d;
    cursor: not-allowed;
}

.verification-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    display: none;
}

.verification-error.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.verification-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: none;
}

.verification-success.show {
    display: block;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.verification-loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.verification-loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #044f27;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 576px) {
    .verification-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .verification-modal-header {
        padding: 20px;
    }
    
    .verification-modal-body {
        padding: 30px 20px;
    }
    
    .verification-code-input-group {
        gap: 8px;
    }
    
    .verification-code-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }
    
    .verification-actions {
        gap: 12px;
    }
    
    .btn-verify, .btn-resend {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .verification-modal-content {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        color: #e2e8f0;
    }
    
    .verification-code-input {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .verification-code-input:focus {
        border-color: #68d391;
        background: #2d3748;
    }
    
    .verification-instructions {
        color: #cbd5e0;
    }
}