/**
 * WooPlus Auth — Frontend styles (v2.21.0).
 *
 * Design language: SERIOUS PROFESSIONAL.
 *   - Solid colors. No gradients. No backdrop-blur. No glow.
 *   - Sharp edges. Radius is 0–4px maximum. No pill buttons.
 *   - Strong, deliberate borders (1.5–2px on inputs and tabs).
 *   - Tabs read as a row of equal-weight buttons; the active tab is marked
 *     by a thick bottom rule plus a token-coloured fill — not a slider pill.
 *   - Typography is tight: 600 weight on labels and the active tab.
 *
 * Token bridge:
 *   --wpu-auth-* variables map to DS --wooplus-* tokens, so changing the
 *   brand colour in DS settings flows through to the login UI.
 *
 * Compat: keeps every selector that the prior templates emitted, even ones
 *   no longer used by the new lazy template (e.g. .wpu-passkey-* classes
 *   used by the my-account passkey manager UI).
 */

/* ==========================================================================
   Token bridge — DS → auth
   ========================================================================== */

.wpu-auth-page,
.wpu-auth-card {
    --wpu-auth-primary:       var(--wooplus-primary, #1F2937);
    --wpu-auth-primary-hover: var(--wooplus-primary-dark, #111827);
    --wpu-auth-primary-soft:  var(--wooplus-primary-soft, rgba(31, 41, 55, .12));

    --wpu-auth-bg:            var(--wooplus-bg, #F8FAFC);
    --wpu-auth-card-bg:       var(--wooplus-surface, #FFFFFF);
    --wpu-auth-text:          var(--wooplus-text, #0F172A);
    --wpu-auth-text-mute:     var(--wooplus-text-muted, #475569);
    --wpu-auth-placeholder:   #64748B;
    --wpu-auth-border:        var(--wooplus-border, #CBD5E1);
    --wpu-auth-border-strong: var(--wooplus-border-strong, #94A3B8);

    --wpu-auth-radius-sm: 2px;
    --wpu-auth-radius:    4px;
}

/* ==========================================================================
   Page wrapper
   ========================================================================== */

.wpu-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--wpu-auth-bg);
    position: relative;
    font-family: Vazirmatn, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--wpu-auth-text);
}

/* The "blob" decoration is intentionally muted — solid faint accents, no gradient. */
.wpu-auth-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wpu-auth-bg-blob { display: none; }

/* ==========================================================================
   Card
   ========================================================================== */

.wpu-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--wpu-auth-card-bg);
    border: 1.5px solid var(--wpu-auth-border);
    border-radius: var(--wpu-auth-radius);
    padding: 32px 28px 28px;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 0 0 rgba(15, 23, 42, .04);
}

/* Header */
.wpu-auth-card-header { text-align: center; margin-bottom: 24px; }
.wpu-auth-logo { margin-bottom: 14px; }
.wpu-auth-logo img {
    max-height: 56px;
    width: auto;
    display: inline-block;
}
.wpu-auth-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--wpu-auth-text);
}
.wpu-auth-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--wpu-auth-text-mute);
    line-height: 1.6;
}

/* ==========================================================================
   Tabs (serious style — solid, square)
   ========================================================================== */

.wpu-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--wpu-auth-border);
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

/* The slide indicator is a thick bottom rule rather than a pill behind the tab. */
.wpu-auth-tab-indicator {
    position: absolute;
    bottom: -2px; /* sit on top of the strip's border */
    height: 3px;
    background: var(--wpu-auth-primary);
    transition: right .18s ease, width .18s ease;
    pointer-events: none;
}

.wpu-auth-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--wpu-auth-text-mute);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: color .12s ease, background-color .12s ease;
    position: relative;
}
.wpu-auth-tab:hover {
    color: var(--wpu-auth-text);
    background: var(--wpu-auth-primary-soft);
}
.wpu-auth-tab.is-active {
    color: var(--wpu-auth-primary);
}
.wpu-auth-tab-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: currentColor;
}
.wpu-auth-tab-label { overflow: hidden; text-overflow: ellipsis; }

/* On narrow viewports with many tabs, drop icons to save horizontal room. */
@media (max-width: 480px) {
    .wpu-auth-tabs[data-tab-count="4"] .wpu-auth-tab-icon,
    .wpu-auth-tabs[data-tab-count="5"] .wpu-auth-tab-icon,
    .wpu-auth-tabs[data-tab-count="6"] .wpu-auth-tab-icon { display: none; }
    .wpu-auth-tab { padding: 12px 10px; font-size: 12px; }
}

/* ==========================================================================
   Panels
   ========================================================================== */

.wpu-auth-panel-host {
    /* The panels themselves carry their own padding/spacing; this is just
       a positioning host. */
    min-height: 200px;
}
.wpu-auth-channel {
    display: block; /* every panel is its own host now (no sibling channels) */
}

.wpu-auth-step[hidden] { display: none; }

/* Static info paragraphs (Magic Link / Passkey explainers) */
.wpu-auth-info-static {
    font-size: 13px;
    color: var(--wpu-auth-text-mute);
    line-height: 1.7;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: var(--wooplus-surface-2, #F1F5F9);
    border: 1px solid var(--wpu-auth-border);
    border-radius: var(--wpu-auth-radius);
}

/* ==========================================================================
   Inputs
   ========================================================================== */

.wpu-auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--wpu-auth-text);
    margin-bottom: 6px;
    margin-top: 14px;
}
.wpu-auth-label:first-child { margin-top: 0; }

.wpu-auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    font-family: inherit;
    /* 16px و نه کمتر: سافاری iOS زیر ۱۶ پیکسل کل صفحه را روی فوکوس زوم
       می کند. این اولین صفحه ای است که خریدار می بیند و ان پرش، شماره
       تلفن نیمه تایپ شده را از دید خارج می کند. */
    font-size: 16px;
    line-height: 1.4;
    /* پس زمینه باید همان توکنی باشد که بلاک حالت تیره بازتعریفش می کند.
       وقتی اینجا #fff هاردکد بود، در حالت تیره سیستم عامل رنگ متن به
       ‎#F1F5F9 می رفت ولی پس زمینه سفید می ماند: نسبت ۱٫۱۰:۱، یعنی
       خریدار شماره و رمزش را داخل کادری تایپ می کرد که هیچ چیز در ان
       دیده نمی شد. */
    background: var(--wpu-auth-card-bg, #fff);
    color: var(--wpu-auth-text);
    border: 1.5px solid var(--wpu-auth-border);
    border-radius: var(--wpu-auth-radius);
    outline: none;
    transition: border-color .12s ease, background-color .12s ease;
}
.wpu-auth-input:hover { border-color: var(--wpu-auth-border-strong); }
.wpu-auth-input:focus {
    border-color: var(--wpu-auth-primary);
    box-shadow: 0 0 0 3px var(--wpu-auth-primary-soft);
}
/* یک رنگ ثابت نمی تواند هر دو تم را راضی کند: ‎#94A3B8 روی سفید فقط
   ۲٫۵۶:۱ می داد. حالا توکن است — روشن ‎#64748B (۴٫۷۶:۱ روی سفید) و تیره
   ‎#94A3B8 (۵٫۸۱:۱ روی ‎#1E293B). */
.wpu-auth-input::placeholder { color: var(--wpu-auth-placeholder, #64748B); }

/* Phone row: country select + number input side by side */
.wpu-auth-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.wpu-auth-country {
    flex: 0 0 110px;
    padding: 11px 8px;
    font-family: inherit;
    /* همان قاعده ۱۶ پیکسل: select هم روی iOS زوم را شلیک می کند. */
    font-size: 16px;
    /* همان تله حالت تیره که روی ورودی بود؛ ممیزی فقط ورودی را دیده بود. */
    background: var(--wpu-auth-card-bg, #fff);
    color: var(--wpu-auth-text);
    border: 1.5px solid var(--wpu-auth-border);
    border-radius: var(--wpu-auth-radius);
    outline: none;
    cursor: pointer;
    direction: ltr;
}
.wpu-auth-country:focus {
    border-color: var(--wpu-auth-primary);
    box-shadow: 0 0 0 3px var(--wpu-auth-primary-soft);
}
.wpu-auth-phone-row .wpu-auth-input { flex: 1 1 auto; }

/* OTP code input — tighter, monospaced, large */
.wpu-auth-code {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.4em;
    padding: 14px 12px;
    font-family: ui-monospace, "Courier New", monospace;
}

/* Checkbox row */
.wpu-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--wpu-auth-text-mute);
    cursor: pointer;
}
.wpu-auth-checkbox input[type="checkbox"] {
    accent-color: var(--wpu-auth-primary);
    width: 16px;
    height: 16px;
    margin: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wpu-auth-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--wpu-auth-primary);
    border: 1.5px solid var(--wpu-auth-primary);
    border-radius: var(--wpu-auth-radius);
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}
.wpu-auth-btn:hover {
    background: var(--wpu-auth-primary-hover);
    border-color: var(--wpu-auth-primary-hover);
}
.wpu-auth-btn:active { transform: translateY(1px); }
.wpu-auth-btn[disabled],
.wpu-auth-btn.is-busy {
    opacity: .55;
    cursor: progress;
    pointer-events: none;
}
/* Small spinner shown while a request is in flight */
.wpu-auth-btn.is-busy::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wpu-auth-spin .7s linear infinite;
}
@keyframes wpu-auth-spin { to { transform: rotate(360deg); } }

/* Inline link buttons (back / resend / forgot password) */
.wpu-auth-link {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 8px 0;
    margin-top: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--wpu-auth-text-mute);
    cursor: pointer;
    text-decoration: none;
}
.wpu-auth-link:hover {
    color: var(--wpu-auth-primary);
    text-decoration: underline;
}
.wpu-auth-link[disabled] {
    opacity: .5;
    cursor: not-allowed;
    text-decoration: none;
}
.wpu-auth-pw-links { margin: 14px 0 0; text-align: center; font-size: 13px; }
.wpu-auth-pw-links a { color: var(--wpu-auth-text-mute); text-decoration: none; font-weight: 500; }
.wpu-auth-pw-links a:hover { color: var(--wpu-auth-primary); text-decoration: underline; }

/* ==========================================================================
   Status / errors
   ========================================================================== */

.wpu-auth-status {
    margin-top: 16px;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--wpu-auth-radius);
    border: 1.5px solid transparent;
    display: none;
}
.wpu-auth-status:not(:empty) { display: block; }
.wpu-auth-status-pinned { display: block; margin-bottom: 16px; margin-top: 0; }

.wpu-auth-status.is-info {
    background: #F1F5F9;
    color: #1E293B;
    border-color: #CBD5E1;
}
.wpu-auth-status.is-success {
    background: var(--wooplus-success-light, #DCFCE7);
    color: var(--wooplus-success-dark, #065F46);
    border-color: var(--wooplus-success, #10B981);
}
.wpu-auth-status.is-error {
    background: var(--wooplus-danger-light, #FEE2E2);
    color: var(--wooplus-danger-dark, #991B1B);
    border-color: var(--wooplus-danger, #EF4444);
}

.wpu-auth-info {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--wpu-auth-text);
    line-height: 1.6;
}
.wpu-auth-recipient-display {
    display: inline-block;
    direction: ltr;
    font-weight: 600;
    color: var(--wpu-auth-primary);
    background: var(--wpu-auth-primary-soft);
    padding: 1px 6px;
    border-radius: var(--wpu-auth-radius-sm);
}

/* ==========================================================================
   Skeleton (shown while a tab fetch is in flight)
   ========================================================================== */

.wpu-auth-panel-skeleton {
    padding: 4px 0;
}
.wpu-auth-skel-line,
.wpu-auth-skel-input,
.wpu-auth-skel-button {
    background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
    background-size: 200% 100%;
    border-radius: var(--wpu-auth-radius);
    animation: wpu-auth-shimmer 1.4s linear infinite;
}
.wpu-auth-skel-line   { height: 14px; width: 35%; margin-bottom: 12px; }
.wpu-auth-skel-input  { height: 42px; width: 100%; margin-bottom: 18px; }
.wpu-auth-skel-button { height: 44px; width: 100%; }
@keyframes wpu-auth-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* ==========================================================================
   Success state (after Magic Link / etc.)
   ========================================================================== */

.wpu-auth-success {
    text-align: center;
    padding: 24px 12px 8px;
}
.wpu-auth-success svg {
    color: var(--wooplus-success, #10B981);
    margin-bottom: 14px;
}
.wpu-auth-success-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--wpu-auth-text);
}
.wpu-auth-success-text {
    margin: 0;
    font-size: 13px;
    color: var(--wpu-auth-text-mute);
    line-height: 1.7;
}
.wpu-auth-success-text strong {
    direction: ltr;
    display: inline-block;
    color: var(--wpu-auth-text);
}

/* ==========================================================================
   Passkey panel
   ========================================================================== */

.wpu-auth-passkey-illustration {
    text-align: center;
    margin: 8px 0 18px;
    color: var(--wpu-auth-primary);
}
.wpu-auth-passkey-fallback {
    margin: 14px 0 0;
    padding: 11px 13px;
    background: #FEF3C7;
    color: #78350F;
    border: 1.5px solid #F59E0B;
    border-radius: var(--wpu-auth-radius);
    font-size: 13px;
    text-align: center;
}

/* ==========================================================================
   Captcha widget host
   ========================================================================== */

.wpu-auth-captcha {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

/* v5.14.26 — Isolated captcha container that lives OUTSIDE the host form
   (password/passkey/register/lostpassword flows). Visually identical to
   the inside-form variant; the wrapper only exists to give the captcha
   widget DOM isolation from the form fields. The inner .wpu-auth-captcha
   keeps its own margin so this wrapper is "transparent" layout-wise. */
.wpu-auth-captcha-island {
    display: block;
}
.wpu-auth-captcha-island > .wpu-auth-captcha {
    /* Inherit the same top margin as the inside-form variant so visual
       spacing between the form's submit button area and the widget is
       consistent. */
    margin-top: 14px;
}

/* ==========================================================================
   Social row
   ========================================================================== */

.wpu-auth-social {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.wpu-auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 14px;
    /* سومین جای همان تله: متن توکنی روی پس زمینه سفید هاردکد. */
    background: var(--wpu-auth-card-bg, #fff);
    color: var(--wpu-auth-text);
    border: 1.5px solid var(--wpu-auth-border);
    border-radius: var(--wpu-auth-radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}
.wpu-auth-social-btn:hover {
    border-color: var(--brand, var(--wpu-auth-primary));
    background: #F8FAFC;
}
.wpu-auth-social-icon { display: inline-flex; }
.wpu-auth-social-icon svg { width: 18px; height: 18px; color: var(--brand, var(--wpu-auth-primary)); }

/* "or" divider between social row and tabs */
.wpu-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--wpu-auth-text-mute);
    font-size: 12px;
    font-weight: 500;
}
.wpu-auth-divider::before,
.wpu-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--wpu-auth-border);
}

/* ==========================================================================
   Empty / disabled state
   ========================================================================== */

.wpu-auth-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--wpu-auth-text-mute);
}
.wpu-auth-empty p { margin: 4px 0; }
.wpu-auth-empty-hint { font-size: 12px; opacity: .85; }

.wpu-auth-loggedin,
.wpu-auth-disabled {
    background: var(--wpu-auth-card-bg);
    color: var(--wpu-auth-text);
    border: 1.5px solid var(--wpu-auth-border);
    border-radius: var(--wpu-auth-radius);
    padding: 16px;
    text-align: center;
    font-size: 13px;
}

/* ==========================================================================
   Dark mode (DS-driven via [data-wooplus-theme="dark"])
   ========================================================================== */

[data-wooplus-theme="dark"] .wpu-auth-page,
[data-wooplus-theme="dark"] .wpu-auth-card {
    --wpu-auth-bg:           var(--wooplus-bg, #0F172A);
    --wpu-auth-card-bg:      var(--wooplus-surface, #1E293B);
    --wpu-auth-text:         var(--wooplus-text, #F1F5F9);
    --wpu-auth-text-mute:    var(--wooplus-text-muted, #94A3B8);
    --wpu-auth-border:       var(--wooplus-border, #334155);
    --wpu-auth-border-strong:var(--wooplus-border-strong, #475569);
}
[data-wooplus-theme="dark"] .wpu-auth-input,
[data-wooplus-theme="dark"] .wpu-auth-country,
[data-wooplus-theme="dark"] .wpu-auth-social-btn {
    background: var(--wooplus-surface-2, #0F172A);
    color: var(--wooplus-text, #F1F5F9);
}
[data-wooplus-theme="dark"] .wpu-auth-info-static,
[data-wooplus-theme="dark"] .wpu-auth-status.is-info {
    background: var(--wooplus-surface-2, #0F172A);
    color: var(--wooplus-text-muted, #94A3B8);
    border-color: var(--wooplus-border, #334155);
}
[data-wooplus-theme="dark"] .wpu-auth-skel-line,
[data-wooplus-theme="dark"] .wpu-auth-skel-input,
[data-wooplus-theme="dark"] .wpu-auth-skel-button {
    background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
    background-size: 200% 100%;
}

/* OS-level dark mode (when DS hasn't set the data attribute) */
@media (prefers-color-scheme: dark) {
    .wpu-auth-page:not([data-wooplus-theme]),
    [data-wooplus-theme=""] .wpu-auth-page,
    .wpu-auth-page:not([data-wooplus-theme="light"]) {
        --wpu-auth-bg:           #0F172A;
        --wpu-auth-card-bg:      #1E293B;
        --wpu-auth-text:         #F1F5F9;
        --wpu-auth-text-mute:    #94A3B8;
        --wpu-auth-placeholder:  #94A3B8;
        --wpu-auth-border:       #334155;
        --wpu-auth-border-strong:#475569;
    }
}

/* ==========================================================================
   wp-login.php integration
   ========================================================================== */

body.login .wpu-auth-page {
    min-height: auto;
    padding: 0;
    background: transparent;
    display: block;
}
body.login .wpu-auth-bg { display: none; }
body.login .wpu-auth-card {
    margin: 0 auto;
    max-width: 100%;
    /* پنجمین و اخرین جای همان تله: کارت wp-login. متنش با همان توکنی
       رنگ می گیرد که در حالت تیره روشن می شود، پس پس زمینه اش هم باید
       همان توکن را دنبال کند. */
    background: var(--wpu-auth-card-bg, #fff);
}

/* WooCommerce my-account: don't force 100vh */
body.woocommerce-account .wpu-auth-page {
    min-height: auto;
    padding: 0;
    background: transparent;
    display: block;
    overflow: visible;
}
body.woocommerce-account .wpu-auth-bg { display: none; }
body.woocommerce-account .wpu-auth-card {
    margin: 0 auto;
}

/* On wp-login.php, hide the original WP form by default. */
body.login.wpu-auth-active #loginform,
body.login.wpu-auth-active .login form#loginform { display: none; }
body.login.wpu-auth-active.wpu-auth-classic-visible #loginform,
body.login.wpu-auth-active.wpu-auth-classic-visible .login form#loginform { display: block; }

.wpu-auth-classic-toggle {
    display: none;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--wpu-auth-border);
    text-align: center;
}
body.login .wpu-auth-classic-toggle { display: block; }
.wpu-auth-classic-toggle a {
    color: var(--wpu-auth-text-mute);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}
.wpu-auth-classic-toggle a:hover { color: var(--wpu-auth-primary); text-decoration: underline; }

/* ==========================================================================
   Legacy passkey manager UI (my-account passkey list)
   ========================================================================== */

.wpu-passkeys { padding: 20px; }
.wpu-passkey-list { list-style: none; padding: 0; margin: 16px 0; }
.wpu-passkey-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--wpu-auth-border);
    border-radius: var(--wpu-auth-radius);
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.wpu-passkey-name { font-weight: 600; font-size: 14px; flex: 1; min-width: 100px; }
.wpu-passkey-meta { font-size: 12px; color: var(--wpu-auth-text-mute); flex-basis: 100%; }
.wpu-passkey-delete {
    background: var(--wooplus-danger-light, #FEE2E2);
    color: var(--wooplus-danger-dark, #991B1B);
    border: 1.5px solid var(--wooplus-danger, #EF4444);
    padding: 4px 12px;
    border-radius: var(--wpu-auth-radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.wpu-passkey-delete:hover { background: var(--wooplus-danger, #EF4444); color: #fff; }
.wpu-passkey-add {
    margin-top: 16px;
    padding: 16px;
    background: var(--wooplus-surface-2, #F1F5F9);
    border: 1.5px solid var(--wpu-auth-border);
    border-radius: var(--wpu-auth-radius);
}
.wpu-passkey-add .wpu-auth-input { margin-bottom: 10px; }
.wpu-passkey-status {
    padding: 10px 14px;
    border-radius: var(--wpu-auth-radius);
    font-size: 13px;
    margin-top: 10px;
    border: 1.5px solid transparent;
}
.wpu-passkey-status.is-info    { background: #F1F5F9; color: #1E293B; border-color: #CBD5E1; }
.wpu-passkey-status.is-success { background: var(--wooplus-success-light, #DCFCE7); color: var(--wooplus-success-dark, #065F46); border-color: var(--wooplus-success, #10B981); }
.wpu-passkey-status.is-error   { background: var(--wooplus-danger-light, #FEE2E2); color: var(--wooplus-danger-dark, #991B1B); border-color: var(--wooplus-danger, #EF4444); }

.wpu-passkey-login-wrap { margin: 20px 0; text-align: center; }
.wpu-passkey-login-btn {
    background: var(--wpu-auth-primary) !important;
    color: #fff;
    padding: 12px 28px;
    border: 1.5px solid var(--wpu-auth-primary);
    border-radius: var(--wpu-auth-radius);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.wpu-passkey-login-btn:hover { background: var(--wpu-auth-primary-hover) !important; }
.wpu-passkey-login-btn[disabled] { opacity: 0.5; cursor: not-allowed; }


/* ==========================================================================
 * احترام به «کاهش حرکت» سیستم عامل                            (v6.16.0.8)
 * --------------------------------------------------------------------------
 * این شیت انیمیشن تعریف می کند و تا پیش از این هیچ محافظی نداشت. کاربری که
 * روی گوشی اش «کاهش حرکت» را روشن کرده، این کار را برای سرگیجه، میگرن یا
 * اختلال دهلیزی می کند؛ نادیده گرفتن ان یعنی حالش بد شود.
 *
 * چرا زمان نزدیک صفر و نه animation:none — بعضی کی فریم ها حالت پایانی را
 * می سازند (مثلا از opacity صفر به یک). none کردنشان عنصر را برای همیشه
 * نامرئی نگه می دارد؛ زمان ناچیز همان حالت پایانی را فورا اعمال می کند.
 * دامنه هم عمدا به فضای نام همین ماژول محدود است تا استایل قالب فروشنده
 * را از کار نیندازد.
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    [class^="wpu-"],
    [class*=" wpu-"] {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
