/* ==============================
   Login OTP Modal & Overlay
============================== */
.login-otp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.login-otp-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding: 40px 30px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 1001;
}

.login-otp-modal.active {
    transform: translateX(0);
}

.login-otp-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #777;
}

.login-otp-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
}

.login-otp-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.login-otp-phone-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}

.login-otp-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.login-otp-note {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.login-otp-continue-btn {
    width: 100%;
    background: #4a6cf7;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.login-otp-continue-btn:hover {
    background: #3a5ce5;
}

.login-otp-continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.login-otp-terms {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
    line-height: 1.5;
    text-align: center;
}

.login-otp-terms a {
    color: #4a6cf7;
    text-decoration: none;
}

.login-otp-instructions {
    margin-bottom: 20px;
    color: #555;
}

.login-otp-phone-display {
    font-weight: 600;
    color: #333;
    margin: 10px 0 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 15px;
    text-align: center;
}

.login-otp-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.login-otp-input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.login-otp-input:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74,108,247,0.2);
}

.login-otp-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231,76,60,0.2);
}

.login-otp-resend-option {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-top: 15px;
}

.login-otp-resend-link {
    color: #4a6cf7;
    cursor: pointer;
    text-decoration: none;
}

.login-otp-resend-link.disabled {
    color: #ccc;
    cursor: not-allowed;
}

#loginResendTimer {
    color: #e74c3c;
    font-weight: 500;
}

/* ==============================
   Responsive Breakpoints
============================== */

/* Tablets (768px – 1024px) */
@media (max-width: 1024px) {
    .login-otp-modal {
        width: 380px;
        padding: 35px 25px;
    }

    .login-otp-header h2 {
        font-size: 22px;
    }

    .login-otp-group label {
        font-size: 14px;
    }

    .login-otp-continue-btn {
        padding: 12px;
        font-size: 15px;
    }

    .login-otp-inputs {
        gap: 8px;
    }

    .login-otp-input {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .login-otp-modal {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
    }

    .login-otp-header h2 {
        font-size: 20px;
    }

    .login-otp-input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .login-otp-continue-btn {
        font-size: 14px;
        padding: 11px;
    }

    .login-otp-note,
    .login-otp-terms,
    .login-otp-resend-option {
        font-size: 13px;
    }
}

/* Small mobile (up to 360px) */
@media (max-width: 360px) {
    .login-otp-modal {
        padding: 25px 15px;
    }

    .login-otp-header h2 {
        font-size: 18px;
    }

    .login-otp-input {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }

    .login-otp-continue-btn {
        font-size: 13px;
        padding: 10px;
    }
}
