/* OTP Verification Modal Styles */
/* Matches plugin's glassmorphism design */

/* Modal Overlay */
.fob-otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fobOtpFadeIn 0.2s ease;
}

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

/* Prevent body scroll when modal is open */
body.fob-otp-modal-open {
    overflow: hidden;
}

/* Modal Container */
.fob-otp-modal {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fobOtpSlideIn 0.3s ease;
}

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

/* Close Button */
.fob-otp-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(139, 92, 246, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 15px !important;
}

.fob-otp-close:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.1);
}

.fob-otp-close i {
    color: #6d28d9;
    font-size: 18px;
}

/* Header */
.fob-otp-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.05));
    border-radius: 20px 20px 0 0;
}

.fob-otp-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.fob-otp-icon i {
    font-size: 36px;
    color: #6d28d9;
}

.fob-otp-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.fob-otp-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Body */
.fob-otp-body {
    padding: 30px;
}

/* Phone Display */
.fob-otp-phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 12px;
    margin-bottom: 25px;
}

.fob-otp-phone-display i {
    color: #6d28d9;
    font-size: 18px;
}

.fob-otp-phone-display span {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.5px;
}

/* Steps */
.fob-otp-step {
    display: none;
}

.fob-otp-step.active {
    display: block;
    animation: fobOtpFadeIn 0.3s ease;
}

.fob-otp-message {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
    line-height: 1.6;
}

/* Input Group */
.fob-otp-input-group {
    position: relative;
    margin-bottom: 20px;
}

.fob-otp-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.fob-otp-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.fob-otp-input-group label {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

/* Timer */
.fob-otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 8px;
}

.fob-otp-timer i {
    color: #f59e0b;
    font-size: 14px;
}

.fob-otp-timer-text {
    font-size: 13px;
    color: #92400e;
}

.fob-otp-countdown {
    color: #f59e0b;
    font-weight: 700;
}

/* Actions */
.fob-otp-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Buttons */
.fob-otp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fob-otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fob-otp-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.fob-otp-btn-primary:not(:disabled):hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.fob-otp-btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
}

.fob-otp-btn-secondary:not(:disabled):hover {
    background: rgba(139, 92, 246, 0.2);
}

.fob-otp-send-btn,
.fob-otp-verify-btn {
    width: 100%;
}

.fob-otp-btn.loading {
    position: relative;
    pointer-events: none;
}

.fob-otp-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fobOtpSpin 0.6s linear infinite;
}

@keyframes fobOtpSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.fob-otp-error,
.fob-otp-success {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 15px;
}

.fob-otp-error {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 3px solid #dc2626;
}

.fob-otp-success {
    background: #f0fdf4;
    color: #15803d;
    border-left: 3px solid #22c55e;
}

.fob-otp-error i,
.fob-otp-success i {
    margin-right: 8px;
}

/* Footer */
.fob-otp-footer {
    text-align: center;
    padding: 20px 30px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.fob-otp-cancel {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.fob-otp-cancel:hover {
    color: #1f2937;
}

/* Responsive */
@media (max-width: 480px) {
    .fob-otp-modal {
        max-width: 100%;
        margin: 10px;
        border-radius: 16px;
    }
    
    .fob-otp-header {
        padding: 30px 20px 20px;
    }
    
    .fob-otp-body {
        padding: 20px;
    }
    
    .fob-otp-icon {
        width: 70px;
        height: 70px;
    }
    
    .fob-otp-icon i {
        font-size: 30px;
    }
    
    .fob-otp-title {
        font-size: 20px;
    }
    
    .fob-otp-input {
        font-size: 20px;
        letter-spacing: 6px;
        padding: 14px 16px;
    }
    
    .fob-otp-actions {
        flex-direction: column;
    }
    
    .fob-otp-btn-secondary {
        width: 100%;
    }
}

/* Custom scrollbar for modal */
.fob-otp-modal::-webkit-scrollbar {
    width: 8px;
}

.fob-otp-modal::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.fob-otp-modal::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.fob-otp-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Firefox */
.fob-otp-modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) rgba(139, 92, 246, 0.05);
}
