/*
 * SMS OTP Login Pro for WHMCS — unified login compatibility layer.
 *
 * The OTP card inherits the active WHMCS theme's native card/form/button
 * classes. These rules are intentionally small and focus on layout, tabs and
 * OTP-only states so visual changes in the theme continue to flow through.
 */
.otp_login_pro-unified {
    --otp-login-accent: var(--arsam-primary, var(--primary, #ff5722));
    --otp-login-border: var(--arsam-border, var(--border, #e4e4e7));
    --otp-login-muted: var(--arsam-muted, var(--text-muted, #74767d));
    width: 100%;
    max-width: 540px;
    margin-right: auto;
    margin-left: auto;
    font-family: inherit;
    color: inherit;
}

.otp_login_pro-unified *,
.otp_login_pro-unified *::before,
.otp_login_pro-unified *::after { box-sizing: border-box; }

.otp_login_pro-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 0 auto 12px;
    padding: 4px;
    border: 1px solid var(--otp-login-border);
    border-radius: 10px;
    background: var(--bg-muted, #f6f7f8);
}

.otp_login_pro-tab {
    min-height: 40px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-lifted, #6b7280);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.otp_login_pro-tab.is-active {
    background: #fff;
    color: var(--otp-login-accent);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.otp_login_pro-tab:focus-visible {
    outline: 2px solid var(--otp-login-accent);
    outline-offset: 2px;
}

.otp_login_pro-pane[hidden] { display: none !important; }
.otp_login_pro-pane > form,
.otp_login_pro-pane > .card,
.otp_login_pro-pane form.login-form { width: 100%; }

.otp_login_pro-unified form.login-form .card,
.otp_login_pro-otp-card { max-width: 540px; margin-right: auto; margin-left: auto; }

.otp_login_pro-heading p { line-height: 1.9; }
.otp_login_pro-alert { margin-bottom: 1rem; line-height: 1.8; }
.otp_login_pro-alert[hidden] { display: none !important; }

.otp_login_pro-request-form input[type="tel"],
.otp_login_pro-verify-form input[inputmode="numeric"] {
    direction: ltr;
    text-align: left;
}

.otp_login_pro-code {
    direction: ltr !important;
    text-align: center !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    letter-spacing: .28em;
    font-variant-numeric: tabular-nums;
}

.otp_login_pro-submit {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.otp_login_pro-spinner {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: inline-block;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: otp_login_pro-spin .7s linear infinite;
}
.otp_login_pro-spinner[hidden] { display: none !important; }
@keyframes otp_login_pro-spin { to { transform: rotate(360deg); } }

.otp_login_pro-sent {
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.9;
}

.otp_login_pro-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.otp_login_pro-link {
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--otp-login-accent) !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 13px;
}
.otp_login_pro-link:disabled { opacity: .5; cursor: not-allowed; }

/* ArsamNet/Nexus theme alignment from the supplied client-area stylesheet. */
.otp_login_pro-theme--nexus .otp_login_pro-tabs,
.otp_login_pro-auto-theme .otp_login_pro-tabs { font-family: inherit; }

@media (max-width: 575.98px) {
    .otp_login_pro-unified { max-width: 100%; }
    .otp_login_pro-tabs { margin-right: 0; margin-left: 0; }
    .otp_login_pro-actions { align-items: stretch; flex-direction: column; gap: 2px; }
    .otp_login_pro-link { width: 100%; justify-content: center; }
}
