/* OTP Modal Styles */
.otp-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.otp-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    transition: max-width 0.4s ease;
}

.otp-modal-content.qr-code-visible {
    max-width: 700px; /* Larger size for the QR code */
}

.otp-modal .close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.otp-modal-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.otp-modal .form-group {
    margin-bottom: 15px;
}

.otp-modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.otp-modal .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.otp-modal .btn, #get-otp-btn, #verify-otp-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #7462ff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.otp-modal .btn:hover, #get-otp-btn:hover, #verify-otp-btn:hover {
    background-color: #6352e8;
}

#otp-section, #qr-section {
    display: none;
}

#qr-section img {
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 650px; /* Ensure it fits within the larger modal */
    height: auto;
}

.message-area {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    color: red;
}

@media (max-width: 768px) {
    .otp-modal-content {
        padding: 20px;
        width: 95%;
    }
    .otp-modal-content.qr-code-visible {
        max-width: 95%;
    }
    #qr-section img {
        max-width: 100%;
    }
} 