/**
 * OTP Verification Styles
 */

.email-verification-wrapper {
    position: relative;
}

.email-input-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.email-input-group input[type="email"] {
    flex: 1;
}

.btn-otp-send, .btn-otp-verify {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-otp-send:hover:not(:disabled), 
.btn-otp-verify:hover:not(:disabled) {
    background: #34495e;
}

.btn-otp-send:disabled, 
.btn-otp-verify:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

.phone-verification-wrapper .btn-otp-send {
    margin-top:10px;
}

.otp-verification-section {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.otp-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 15px;
}

.otp-input-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.otp-input {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    width: 200px;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-family: monospace;
}

.otp-input:focus {
    outline: none;
    border-color: #2c3e50;
}

.otp-status {
    margin-bottom: 10px;
}

.otp-message {
    display: block;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

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

.otp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.otp-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.resend-otp-link,
.change-email-otp-link {
    color: #2c3e50;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}

.resend-otp-link:hover,
.change-email-otp-link:hover {
    color: #34495e;
}

.otp-action-separator {
    color: #6c757d;
}

#resend-timer {
    color: #6c757d;
    font-weight: normal;
}

.email-verified-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-weight: 600;
}

.email-verified-badge svg {
    flex-shrink: 0;
}

.change-email-link {
    margin-left: auto;
    color: #2c3e50;
    text-decoration: underline;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s;
}

.change-email-link:hover {
    color: #34495e;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .email-input-group {
        flex-direction: column;
    }
    
    .btn-otp-send {
        width: 100%;
    }
    
    .otp-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .otp-input {
        width: 100%;
        letter-spacing: 4px;
    }
    
    .btn-otp-verify {
        width: 100%;
    }
}

/* Admin settings styles */
.otp-stats {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    border-left: 4px solid #2c3e50;
}

.otp-stats strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
}

/* Loading states */
.otp-loading {
    position: relative;
}

.otp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2c3e50;
    border-radius: 50%;
    animation: otp-spin 1s linear infinite;
}

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