/**
 * OtpPal Lightbox Styles
 */

/* Overlay */
.otppal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999998;
    display: none;
}

/* Modal Container */
.otppal-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
}

/* Modal Content */
.otppal-modal-content {
    padding: 30px;
}

/* States */
.otppal-state {
    display: none;
    text-align: center;
}

/* Loading State */
.otppal-state-loading {
    padding: 40px 20px;
}

.otppal-state h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.otppal-description {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Phone Container */
.otppal-phone-container {
    margin: 0 0 20px 0;
}

/* OTP Input Wrapper */
.otppal-otp-input-wrapper {
    margin: 0 0 15px 0;
    display: block;
}

/* OTP Input */
.otppal-otp-input {
    width: 100%;
    max-width: 200px;
    padding: 12px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin: 0;
    font-family: monospace;
}

.otppal-otp-input:focus {
    outline: none;
    border-color: #0073aa;
}

/* Change Phone Wrapper */
.otppal-change-phone-wrapper {
    margin: 0 0 20px 0;
    display: block;
}

/* Change Phone Link */
.otppal-change-phone {
    display: inline-block;
    margin: 0;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.otppal-change-phone:hover {
    text-decoration: underline;
}

/* Buttons */
.otppal-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 120px;
}

.otppal-button-primary {
    background-color: #0073aa;
    color: #fff;
}

.otppal-button-primary:hover:not(:disabled) {
    background-color: #005a87;
}

.otppal-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.otppal-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: otppal-spin 0.6s linear infinite;
}

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

/* Error Messages */
.otppal-error {
    color: #d63638;
    font-size: 14px;
    margin: 10px 0;
    padding: 10px;
    background-color: #fcf0f1;
    border-left: 4px solid #d63638;
    border-radius: 4px;
    display: none;
}

/* Success State */
.otppal-state-success {
    padding: 20px 0;
}

.otppal-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: #00a32a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
    .otppal-modal {
        width: 95%;
        max-height: 95vh;
    }

    .otppal-modal-content {
        padding: 20px;
    }

    .otppal-state h3 {
        font-size: 20px;
    }

    .otppal-otp-input {
        font-size: 20px;
        letter-spacing: 6px;
    }
}

