/* Mobile OTP Login Popup — overrides the Happy Coders OTP plugin popup (scoped to .bc-login-modal) */

html.bc-login-open {
    overflow: hidden;
}

#hcotp-otp-popup-modal.bc-login-modal {
    background: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    z-index: 100000;
}

.bc-login-center {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.bc-login-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    width: 100%;
    max-width: 880px;
    background: #254343;
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    font-family: 'Inter', sans-serif;
}

.bc-login-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    z-index: 1;
}

/* Left: brand panel */
.bc-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 32px 24px;
    text-align: center;
}

.bc-login-brand__logo {
    max-width: 200px;
    max-height: 90px;
    width: auto;
    height: auto;
}

.bc-login-brand__name {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.bc-login-brand__title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

/* Right: form panel */
.bc-login-form-panel {
    background: #fff;
    border-radius: 12px;
    padding: 40px 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
}

#hcotp-otp-popup-modal.bc-login-modal #hcotp-otp-form-wrap {
    position: static;
    transform: none;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    align-items: stretch;
}

.bc-login-modal .hcotp-popup-image,
.bc-login-modal #send_otp_section .hcotp-label-style,
.bc-login-modal #send_otp_section .hcotp-description {
    display: none;
}

/* Mobile number field: [+91 | number] */
.bc-login-modal .hcotp-mobile-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.bc-login-modal .hcotp-mobile-input-wrap:focus-within {
    border-color: #254343;
}

.bc-login-modal .hcotp-country-select {
    position: static;
    height: auto;
    border: none;
    border-right: 1px solid #d1d5db;
    background: #f9fafb;
    padding: 0 10px;
    font-size: 15px;
    color: #111827;
    appearance: none;
    -webkit-appearance: none;
}

.bc-login-modal #msg91_mobile {
    border: none;
    border-radius: 0;
    padding: 12px;
    height: 48px;
    font-size: 16px;
    outline: none;
    box-shadow: none;
}

.bc-login-notify {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

.bc-login-notify input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #254343;
}

/* Buttons */
.bc-login-modal #send_otp_section #msg91_send_otp,
.bc-login-modal #msg91_verify_otp {
    width: 100%;
    height: 48px;
    margin-top: 14px;
    border-radius: 8px;
    background-color: #254343 !important;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.bc-login-modal #send_otp_section #msg91_send_otp:disabled,
.bc-login-modal #msg91_verify_otp:disabled {
    background-color: #9ca3af !important;
}

.bc-login-modal .hcotp-verify-otp {
    width: 100%;
}

/* Verify step */
.bc-login-sent-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 8px;
}

.bc-login-sent-to {
    margin: 0;
    font-size: 14px;
    color: #374151;
}

.bc-login-edit {
    background: none;
    border: none;
    padding: 0;
    color: #c48a1f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.bc-login-modal #hcotp_otp_input_wrap .hcotp-label-style {
    font-size: 18px;
    font-weight: 700;
}

.bc-login-modal #hcotp_otp_input_wrap .hcotp-description {
    font-size: 13px;
    margin: 4px 0 12px;
}

.bc-login-modal .hcotp-otp-inputs {
    gap: 10px;
}

.bc-login-modal .hcotp-otp-field {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 8px;
    font-size: 20px;
}

.bc-login-modal #hcotp_resend_otp {
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.bc-login-modal .hcotp-otp-send-status,
.bc-login-modal .hcotp-otp-verify-status {
    font-size: 13px;
    text-align: center;
}

.bc-login-terms {
    margin: 24px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
}

.bc-login-terms a {
    color: #6b7280;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 767px) {
    .bc-login-card {
        grid-template-columns: 1fr;
        max-width: 420px;
        padding: 12px;
    }

    .bc-login-brand {
        gap: 12px;
        padding: 20px 16px 16px;
    }

    .bc-login-brand__logo {
        max-height: 56px;
    }

    .bc-login-brand__title {
        font-size: 18px;
    }

    .bc-login-form-panel {
        padding: 24px 18px 18px;
        min-height: 0;
    }

    .bc-login-modal .hcotp-otp-field {
        width: 44px;
        height: 44px;
    }
}
