/* پینگورا – ورود با موبایل در ناحیه کاربری
   رنگ‌ها و فونت تا حد امکان از قالب WHMCS به ارث می‌رسند. */

.pgotp {
    --pgotp-accent: var(--primary, #4f46e5);
    --pgotp-line: #e5e7eb;
    --pgotp-muted: #64748b;
    margin: 0 0 20px;
    text-align: right;
}
.pgotp [hidden] { display: none !important; }

.pgotp-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    background: #f3f4f6;
    border-radius: 12px;
}
.pgotp-tab {
    flex: 1;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.pgotp-tab:hover { color: #0f172a; }
.pgotp-tab.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.pgotp-tab:focus-visible { outline: 2px solid var(--pgotp-accent); outline-offset: 2px; }

.pgotp-step { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pgotp-label { margin: 6px 0 0; font-weight: 600; font-size: 14px; }
.pgotp-input { width: 100%; }
.pgotp-input[dir="ltr"] { text-align: left; }
.pgotp-code { font-size: 22px; letter-spacing: .4em; text-align: center !important; font-variant-numeric: tabular-nums; }
.pgotp-btn { width: 100%; margin-top: 10px; }
.pgotp-btn[disabled] { opacity: .7; cursor: progress; }

.pgotp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .pgotp-grid { grid-template-columns: 1fr; } }

.pgotp-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--pgotp-muted); }
.pgotp-resend { text-align: center; margin-top: 6px; }
.pgotp-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--pgotp-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.pgotp-link:hover { text-decoration: underline; }
.pgotp-link[disabled] { color: var(--pgotp-muted); cursor: default; text-decoration: none; }

.pgotp-msg { display: none; margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.7; }
.pgotp-msg.is-success { display: block; background: #ecfdf5; color: #065f46; }
.pgotp-msg.is-error { display: block; background: #fef2f2; color: #991b1b; }
.pgotp-msg.is-info { display: block; background: #eff6ff; color: #1e40af; }
