.email-verification-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease-out;
}

.email-verification-content {
    background: #ffffff;
    margin: 10% auto;
    width: 90%;
    max-width: 420px; /* Increase slightly */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    overflow: hidden; /* Add this */
}

.email-verification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-verification-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.email-verification-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.email-verification-close:hover {
    color: #333;
}

.email-verification-body {
    padding: 20px;
    box-sizing: border-box; /* Add this */
}

.email-info {
    margin-bottom: 20px;
    text-align: center;
}

.email-display {
    color: #fd7e14; /* Orange color for email */
    font-weight: 600;
    font-size: 16px;
    margin: 5px 0;
}

.verification-code-input {
    margin: 20px 0;
    width: 100%; /* Add this */
}

.verification-code-input label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.verification-code-input input {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 2px solid #eaeaea;
    border-radius: 6px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 4px;
    transition: border-color 0.2s;
    box-sizing: border-box; /* Add this */
    margin: 0; /* Add this */
}

.verification-code-input input:focus {
    outline: none;
    border-color: #5cb85c; /* Green focus color to match primary button */
    box-shadow: 0 0 0 0.2rem rgba(92, 184, 92, 0.25);
}

#verification-timer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 15px 0;
    color: #666;
}

.timer-icon {
    margin-right: 5px;
    font-size: 16px;
}

#verification-time {
    font-weight: bold;
    color: #dc3545; /* Red color for countdown */
    font-size: 16px;
}

.verification-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

#verification-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    min-height: 20px;
}

#verification-message .success {
    color: #28a745; /* Green for success */
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
}

#verification-message .error {
    color: #dc3545; /* Red for errors */
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
}

#verification-message .info {
    color: #0c5460; /* Teal for info messages */
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
}

.primary-btn {
    background-color: #5cb85c; /* Green primary button */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    min-width: 100px;
}

.primary-btn:hover {
    background: #3ea987;
}

.primary-btn:hover:not(:disabled) {
    background-color: #449d44;
}

.primary-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.secondary-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 100px;
}

.secondary-btn:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.secondary-btn:disabled {
    background-color: #f8f9fa;
    color: #cccccc;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.tertiary-btn {
    background-color: transparent;
    color: #6c757d;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    min-width: 100px;
}

.tertiary-btn:hover {
    color: #495057;
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}