/* OTP Modal Styles */
.otp-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

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

.otp-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

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

.otp-modal-header {
    background: linear-gradient(135deg, #1e73be 0%, #0d5a9e 100%);
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    color: white;
}

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

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

.otp-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.otp-modal-close:hover {
    transform: scale(1.2);
}

.otp-modal-body {
    padding: 30px;
}

.otp-info {
    background-color: #e3f2fd;
    border-left: 4px solid #1e73be;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

.otp-input-group {
    margin-bottom: 20px;
}

.otp-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.otp-input-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.otp-input:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.otp-input.error {
    border-color: #e74c3c;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

.otp-verify-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e73be 0%, #0d5a9e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.otp-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 115, 190, 0.4);
}

.otp-verify-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.otp-resend-section {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.otp-resend-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.otp-resend-btn {
    background: transparent;
    color: #1e73be;
    border: 2px solid #1e73be;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.otp-resend-btn:hover {
    background: #1e73be;
    color: white;
}

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

.otp-timer {
    color: #e74c3c;
    font-weight: 600;
}

.otp-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

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

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

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

.otp-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Mobile Responsive */
@media only screen and (max-width: 480px) {
    .otp-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .otp-modal-header {
        padding: 20px;
    }

    .otp-modal-header h3 {
        font-size: 20px;
    }

    .otp-modal-body {
        padding: 20px;
    }

    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 20px;
    }

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

@media only screen and (max-width: 380px) {
    .otp-modal-content {
        width: 98%;
        margin: 5% auto;
    }

    .otp-modal-header {
        padding: 15px;
    }

    .otp-modal-header h3 {
        font-size: 18px;
    }

    .otp-modal-header p {
        font-size: 12px;
    }

    .otp-modal-body {
        padding: 15px;
    }

    .otp-input {
        width: 40px;
        height: 45px;
        font-size: 18px;
    }

    .otp-input-wrapper {
        gap: 6px;
    }

    .otp-modal-close {
        right: 15px;
        top: 15px;
        font-size: 28px;
    }

    .otp-verify-btn {
        padding: 12px;
        font-size: 14px;
    }

    .otp-info {
        padding: 10px;
        font-size: 13px;
    }
}
