/**
 * OTP Verification Modal Styles
 * Beautiful and modern OTP input design
 */

/* OTP Modal Container */
.otp-modal-container {
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OTP Header */
.otp-header {
    text-align: center;
    margin-bottom: 32px;
}

.otp-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    }
}

.otp-icon i {
    font-size: 36px;
    color: white;
}

.otp-header h3 {
    margin: 0 0 12px 0;
    font-size: 26px;
    color: #2d3748;
}

.otp-subtitle {
    color: #718096;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.otp-subtitle strong {
    color: #667eea;
    font-weight: 600;
}

/* OTP Input Container */
.otp-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
}

.otp-input {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Courier New', monospace;
}

.otp-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.otp-input:valid {
    border-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.otp-input::placeholder {
    color: #cbd5e0;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .otp-input {
        width: 44px;
        height: 52px;
        font-size: 24px;
    }

    .otp-input-container {
        gap: 8px;
    }
}

/* Timer Container */
.otp-timer-container {
    text-align: center;
    margin: 20px 0;
}

.otp-timer-text {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.otp-timer-text i {
    margin-right: 6px;
    color: #667eea;
}

.otp-timer {
    font-weight: 700;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.otp-timer.expiring {
    color: #f56565;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Verify Button */
.otp-verify-btn {
    margin-top: 24px;
    position: relative;
}

.otp-verify-btn .btn-text,
.otp-verify-btn .btn-loading {
    transition: opacity 0.3s ease;
}

.otp-verify-btn.loading .btn-text {
    display: none;
}

.otp-verify-btn.loading .btn-loading {
    display: inline-block !important;
}

/* Resend Container */
.otp-resend-container {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.otp-resend-text {
    color: #718096;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.otp-resend-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #667eea;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.otp-resend-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.otp-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.otp-resend-btn i {
    font-size: 12px;
}

#resendTimer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

/* Help Text */
.otp-help-text {
    text-align: center;
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    border-radius: 8px;
}

.otp-help-text p {
    margin: 0;
    color: #4a5568;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.otp-help-text i {
    color: #667eea;
    font-size: 14px;
}

/* Success Animation */
.otp-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Error State */
.otp-input.error {
    border-color: #f56565;
    background: #fff5f5;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Loading State */
.otp-loading {
    position: relative;
    pointer-events: none;
}

.otp-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}