/* =========================================================
 * کانتک کارت — ورود با کد یک‌بارمصرف
 * ========================================================= */
.ariandata-otp,
.ariandata-otp * { box-sizing: border-box; }
.ariandata-otp [hidden] { display: none !important; }
.ariandata-otp-hidden { display: none !important; }

.ariandata-otp {
    --ad-otp-accent: #4f46e5;
    direction: rtl;
    text-align: right;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
    visibility: hidden;
}
.ariandata-otp.is-ready { visibility: visible; }

.ariandata-otp .ad-otp-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #f1f2f6;
}
.ariandata-otp .ad-otp-tab {
    flex: 1;
    margin: 0;
    padding: 9px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4b5563;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .15s, color .15s, box-shadow .15s;
}
.ariandata-otp .ad-otp-tab:hover { color: #111827; }
.ariandata-otp .ad-otp-tab.is-active {
    background: #fff;
    color: var(--ad-otp-accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.ariandata-otp .ad-otp-tab:focus-visible { outline: 2px solid var(--ad-otp-accent); outline-offset: 2px; }

.ariandata-otp .ad-otp-methods { display: flex; gap: 16px; margin-bottom: 12px; }
.ariandata-otp .ad-otp-methods label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; }

.ariandata-otp .ad-otp-label { display: block; margin-bottom: 12px; }
.ariandata-otp .ad-otp-label-text { display: block; margin-bottom: 6px; font-weight: 600; color: #374151; }
.ariandata-otp .ad-otp-id,
.ariandata-otp .ad-otp-code {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 16px; /* جلوگیری از زوم خودکار iOS */
    text-align: left;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.ariandata-otp .ad-otp-code {
    font-size: 24px;
    letter-spacing: .5em;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ariandata-otp .ad-otp-id:focus,
.ariandata-otp .ad-otp-code:focus {
    outline: none;
    border-color: var(--ad-otp-accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .18);
}

.ariandata-otp .ad-otp-btn {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 4px 0 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--ad-otp-accent);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s, opacity .15s;
}
.ariandata-otp .ad-otp-btn:hover { filter: brightness(1.08); }
.ariandata-otp .ad-otp-btn:focus-visible { outline: 3px solid rgba(79, 70, 229, .4); outline-offset: 2px; }
.ariandata-otp .ad-otp-btn[disabled] { opacity: .7; cursor: progress; }

.ariandata-otp .ad-otp-msg { min-height: 1.2em; margin: 10px 0 0; color: #b91c1c; font-size: 13px; }
.ariandata-otp .ad-otp-msg:empty { display: none; }
.ariandata-otp .ad-otp-msg.is-ok { color: #15803d; }
.ariandata-otp .ad-otp-note { margin: 10px 0 0; color: #6b7280; font-size: 12px; }

.ariandata-otp .ad-otp-sent { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #eef2ff; color: #3730a3; font-size: 13px; }
.ariandata-otp .ad-otp-link {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    color: var(--ad-otp-accent);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    box-shadow: none;
}
.ariandata-otp .ad-otp-remember { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; color: #4b5563; }
.ariandata-otp .ad-otp-resend { display: flex; justify-content: center; margin-top: 12px; font-size: 13px; color: #6b7280; }
.ariandata-otp .ad-otp-lost { margin-top: 10px; font-size: 13px; }

/* صفحه wp-login.php */
.login .ariandata-otp {
    margin-top: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.login .ariandata-otp .ad-otp-tabs { margin: -8px -8px 18px; }
html.ariandata-otp-mode .login #nav,
html.ariandata-otp-mode .login .wp-login-lost-password { display: none; }
/* wp-login.php به همه فرم‌ها کادر می‌دهد؛ فرم‌های داخلی پنل ما کادر نمی‌خواهند */
.login .ariandata-otp form {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}
.login .ariandata-otp .ad-otp-label-text { font-size: 14px; }

/* مرحله تکمیل عضویت */
.ariandata-otp .ad-otp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ariandata-otp .ad-otp-input {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    box-shadow: none;
}
.ariandata-otp .ad-otp-input:focus { outline: none; border-color: var(--ad-otp-accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }
.ariandata-otp .ad-otp-input.is-invalid { border-color: #dc2626; }
.ariandata-otp .ad-otp-label-text small { font-weight: 400; color: #6b7280; }
.ariandata-otp .ad-otp-new { background: #ecfdf5; color: #065f46; }
@media (max-width: 380px) { .ariandata-otp .ad-otp-row { grid-template-columns: 1fr; } }
