/* ===== تم صفحات احراز — دو زبان بصری =====
   پیش‌فرض = هویت «یار ماندگار» (شبِ زمردی + طلا + عاجی — هم‌خانوادهٔ ym-home)
   .auth-office = دامنهٔ اختصاصی دفاتر (بنفش/رز — زبان بصری دفترها) */
.auth-wrap{
    --auth-a:#12503f; --auth-a2:#1b6b54; --auth-b:#c9a227;
    --auth-deep:#8a6d15; --auth-deep2:#0e3b30;
    --auth-focus-ring:rgba(27,107,84,.14);
    --auth-step-ring:rgba(18,80,63,.16);
    --auth-btn-grad:linear-gradient(135deg,#eecf7f,#e0bd60 42%,#b8901d);
    --auth-btn-bd:#a5841c;
    --auth-btn-fg:#3a2c06;
    --auth-btn-shadow:rgba(201,162,39,.45);
    --auth-btn-shadow-h:rgba(201,162,39,.55);
    --auth-logo-grad:linear-gradient(135deg,#12503f,#1b6b54 55%,#c9a227);
    --auth-logo-shadow:rgba(14,59,48,.3);
    --auth-brand-bg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23e9cd86' stroke-opacity='.08' stroke-width='1'%3E%3Crect x='26' y='26' width='44' height='44'/%3E%3Crect x='26' y='26' width='44' height='44' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='4'/%3E%3C/g%3E%3C/svg%3E") 0 0/96px 96px,radial-gradient(760px 440px at 88% -12%,rgba(233,205,134,.28),transparent 62%),radial-gradient(620px 420px at 6% 110%,rgba(27,107,84,.45),transparent 58%),radial-gradient(540px 360px at 96% 82%,rgba(255,255,255,.08),transparent 60%),linear-gradient(152deg,#071613 0%,#0a1f1a 32%,#0e3b30 74%,#11483a 100%);
    --auth-blob-a:rgba(233,205,134,.12);
    --auth-blob-b:rgba(255,255,255,.07);
    --auth-brand-title-grad:linear-gradient(90deg,#fff,#f3e3b0);
    --auth-switch-bg:#f3ecd9; --auth-switch-bd:#e6dcc3;
    --auth-switch-shadow:rgba(14,59,48,.28);
    --auth-soft-bd:#e0d3ae;
    --auth-outline-shadow:rgba(201,162,39,.22);
    --auth-wrap-bg:radial-gradient(720px 480px at 0% 0%,rgba(201,162,39,.08),transparent 60%),radial-gradient(640px 460px at 0% 100%,rgba(27,107,84,.05),transparent 60%),#fffdf7;
    --auth-form-bg:radial-gradient(560px 400px at 100% -8%,rgba(233,205,134,.15),transparent 60%),radial-gradient(500px 380px at -10% 110%,rgba(27,107,84,.05),transparent 58%);
}
.auth-wrap.auth-office{
    --auth-a:#7c3aed; --auth-a2:#a855f7; --auth-b:#d946ef;
    --auth-deep:#a21caf; --auth-deep2:#6d28d9;
    --auth-focus-ring:#a855f71f;
    --auth-step-ring:#7c3aed24;
    --auth-btn-grad:linear-gradient(135deg,#7c3aed,#d946ef 55%,#f472b6);
    --auth-btn-bd:rgba(109,40,217,.4);
    --auth-btn-fg:#fff;
    --auth-btn-shadow:rgba(217,70,239,.42);
    --auth-btn-shadow-h:rgba(217,70,239,.5);
    --auth-logo-grad:linear-gradient(135deg,#7c3aed,#d946ef);
    --auth-logo-shadow:rgba(124,58,237,.32);
    --auth-brand-bg:radial-gradient(760px 440px at 88% -12%,rgba(238,199,95,.34),transparent 62%),radial-gradient(620px 420px at 6% 110%,rgba(244,114,182,.38),transparent 58%),radial-gradient(540px 360px at 96% 82%,rgba(255,255,255,.12),transparent 60%),linear-gradient(152deg,#6d28d9 0%,#a21caf 45%,#d63384 78%,#f472b6 100%);
    --auth-blob-a:#eec75f1f;
    --auth-blob-b:#ffffff14;
    --auth-brand-title-grad:linear-gradient(90deg,#fff,#ffe4f1);
    --auth-switch-bg:#f4f1fb; --auth-switch-bd:#eadff9;
    --auth-switch-shadow:rgba(124,58,237,.35);
    --auth-soft-bd:#e3d5f6;
    --auth-outline-shadow:rgba(217,70,239,.2);
    --auth-wrap-bg:radial-gradient(720px 480px at 0% 0%,rgba(217,70,239,.07),transparent 60%),radial-gradient(640px 460px at 0% 100%,rgba(124,58,237,.06),transparent 60%),#fff;
    --auth-form-bg:radial-gradient(560px 400px at 100% -8%,rgba(244,114,182,.10),transparent 60%),radial-gradient(500px 380px at -10% 110%,rgba(212,175,55,.07),transparent 58%);
}
.auth-wrap{min-height:100vh;display:flex;background:#fff}.auth-form-col{flex:0 0 600px;display:flex;align-items:center;justify-content:center;padding:48px 40px}.auth-box{width:100%;max-width:400px}.auth-logo{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:10px}.auth-logo-mark{width:52px;height:52px;border-radius:16px;background:var(--auth-logo-grad);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px var(--auth-logo-shadow)}.auth-logo-name{font-size:2.1rem;font-weight:800;color:var(--auth-a);line-height:1.6}.auth-logo-caption{text-align:center;font-size:12.5px;color:#8a93a8;margin-bottom:30px}.auth-heading{font-size:15px;font-weight:700;color:#1e293b;text-align:center;margin-bottom:6px}.auth-lead{font-size:13px;color:#8a93a8;text-align:center;margin-bottom:26px}.auth-field{margin-bottom:16px}.auth-field label{display:block;font-size:12.5px;font-weight:600;color:#4b5563;margin-bottom:7px}.auth-field label .req{color:#ef4444}.auth-input-wrap{position:relative}.auth-input{width:100%;height:50px;border:1.5px solid #e6e9f2;border-radius:12px;background:#f7f8fc;padding:0 16px;font-family:inherit;font-size:14px;color:#1e293b;outline:none;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}.auth-input::placeholder{color:#a5aec4;font-size:13px}.auth-input:focus{border-color:var(--auth-a2);background:#fff;box-shadow:0 0 0 4px var(--auth-focus-ring)}.auth-eye-btn{position:absolute;inset-inline-start:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#9aa3b8;padding:8px;cursor:pointer;line-height:1;border-radius:8px}.auth-eye-btn:hover{color:var(--auth-b)}.auth-phone-prefix{position:absolute;inset-inline-start:10px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:6px;height:34px;padding:0 10px;border-inline-end:1.5px solid #e6e9f2;color:#64748b;font-size:13.5px;font-weight:700;pointer-events:none}.auth-phone-prefix svg{border-radius:3px}.auth-input-phone{padding-inline-start:92px;direction:ltr!important;text-align:left}.auth-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.auth-remember{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#4b5563;cursor:pointer;-webkit-user-select:none;user-select:none}.auth-remember input{width:16px;height:16px;accent-color:var(--auth-deep);cursor:pointer}.auth-link{font-size:12.5px;color:var(--auth-a);text-decoration:none}.auth-link:hover{color:var(--auth-deep);text-decoration:underline}.auth-terms{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:#4b5563;line-height:1.8;margin:-4px 0 14px;cursor:pointer;-webkit-user-select:none;user-select:none}.auth-terms input{width:16px;height:16px;margin-top:3px;accent-color:var(--auth-deep);cursor:pointer;flex:0 0 auto}.auth-terms a{color:var(--auth-a);text-decoration:none;font-weight:600}.auth-terms a:hover{text-decoration:underline}.auth-btn{width:100%;height:50px;border:1px solid var(--auth-btn-bd);border-radius:12px;background:var(--auth-btn-grad);color:var(--auth-btn-fg);font-family:inherit;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 10px 24px var(--auth-btn-shadow);cursor:pointer;transition:transform .15s ease,box-shadow .2s ease,filter .2s ease}.auth-btn:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 12px 28px var(--auth-btn-shadow-h)}.auth-btn:disabled{opacity:.6;cursor:not-allowed;box-shadow:none}.auth-foot{text-align:center;font-size:13px;color:#8a93a8;margin-top:26px}.auth-locknote{text-align:center;font-size:12px;color:#9aa3b8;margin-top:14px;line-height:1.8}.auth-alert{display:flex;align-items:center;gap:8px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:13px;border-radius:10px;padding:10px 14px;margin-bottom:18px}.auth-note{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;font-size:12.5px;border-radius:10px;padding:10px 14px;margin-top:18px;line-height:1.8}.auth-otp-hint{font-size:13px;color:#64748b;text-align:center;margin-bottom:18px;line-height:1.9}.auth-otp-hint b{color:#0f172a}.auth-otp-input{text-align:center;font-size:22px;font-weight:700;letter-spacing:12px;padding-left:26px;direction:ltr}.auth-otp-timer{text-align:center;font-size:12.5px;color:#8a93a8;margin:14px 0 4px}.auth-otp-timer b{color:var(--auth-a)}.auth-back-link{display:inline-flex;align-items:center;gap:5px;background:none;border:0;color:#64748b;font-size:12.5px;font-family:inherit;cursor:pointer;padding:4px 0;margin-top:12px}.auth-back-link:hover{color:var(--auth-deep)}.auth-dev-code{direction:ltr;display:inline-block;background:#ecfdf5;border:1px dashed #16a34a;color:#15803d;font-weight:800;font-size:16px;letter-spacing:6px;border-radius:8px;padding:2px 12px 2px 18px}.auth-success{display:flex;align-items:center;gap:8px;background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d;font-size:13px;border-radius:10px;padding:10px 14px;margin-bottom:18px}.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#a5aec4;font-size:12px}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:#e6e9f2}.auth-btn-outline{background:#fff;color:var(--auth-a);border:1.5px solid var(--auth-soft-bd);box-shadow:none;text-decoration:none}.auth-btn-outline:hover:not(:disabled){filter:none;border-color:var(--auth-b);color:var(--auth-deep);transform:translateY(-1px);box-shadow:0 8px 20px var(--auth-outline-shadow)}.auth-steps{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:24px}.auth-step{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;background:#eef1f7;color:#8a93a8;transition:background .25s ease,color .25s ease}.auth-step.active{background:var(--auth-a);color:#fff;box-shadow:0 0 0 4px var(--auth-step-ring)}.auth-step.done{background:#dcfce7;color:#15803d}.auth-step-line{flex:0 0 34px;height:2px;border-radius:2px;background:#e6e9f2}.auth-step-line.done{background:#86efac}.auth-meter{height:5px;border-radius:4px;background:#eef1f7;margin-top:8px;overflow:hidden}.auth-meter-fill{display:block;height:100%;border-radius:4px;transition:width .25s ease,background .25s ease}.auth-meter-fill.weak{background:#ef4444}.auth-meter-fill.fair{background:#f59e0b}.auth-meter-fill.good{background:#38bdf8}.auth-meter-fill.strong{background:#16a34a}.auth-meter-label{font-size:11.5px;color:#8a93a8;margin-top:5px}.auth-meter-label.mismatch{color:#dc2626}.auth-meter-label.match{color:#15803d}.otp-boxes{display:flex;gap:9px;justify-content:center;margin-bottom:16px}.otp-box{width:48px;height:56px;border:1.5px solid #e6e9f2;border-radius:12px;background:#f7f8fc;text-align:center;font-family:inherit;font-size:22px;font-weight:700;color:#1e293b;outline:none;caret-color:var(--auth-a2);transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.otp-box:focus{border-color:var(--auth-a2);background:#fff;box-shadow:0 0 0 4px var(--auth-focus-ring)}.auth-captcha{display:flex;align-items:center;gap:10px}.auth-captcha-q{flex:0 0 auto;min-height:50px;min-width:118px;max-width:58%;padding:6px 16px;border:1.5px dashed #c7d2e4;border-radius:12px;background:repeating-linear-gradient(-45deg,#f7f8fc 0 6px,#eef1f7 6px 12px);display:flex;align-items:center;justify-content:center;gap:8px;font-size:19px;color:#334155;-webkit-user-select:none;user-select:none}.auth-captcha-q b{font-weight:800;color:var(--auth-deep2)}.auth-captcha-words{font-weight:700;color:var(--auth-deep2);font-size:14.5px;line-height:1.6}.auth-captcha-input{flex:1;direction:ltr;text-align:left}.auth-captcha-refresh{flex:0 0 auto;width:42px;height:50px;border:1.5px solid #e6e9f2;border-radius:12px;background:#fff;color:#8a93a8;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:color .15s ease,border-color .15s ease}.auth-captcha-refresh:hover{color:var(--auth-deep);border-color:var(--auth-soft-bd)}.auth-input-ltr{direction:ltr;text-align:left}.auth-field-hint{font-size:11.5px;color:#a5aec4;margin-top:6px;line-height:1.7}.auth-field-status{font-size:12px;margin-top:6px;display:flex;align-items:center;gap:5px}.auth-field-status.ok{color:#15803d}.auth-field-status.bad{color:#dc2626}.auth-field-status.checking{color:#8a93a8}.auth-rules{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:5px 12px}.auth-rules li{font-size:11.5px;color:#a5aec4;display:flex;align-items:center;gap:6px;transition:color .2s ease}.auth-rules li:before{content:"";width:5px;height:5px;border-radius:50%;background:#d4dae6;transition:background .2s ease}.auth-rules li.ok{color:#15803d}.auth-rules li.ok:before{background:#16a34a}.auth-select{appearance:none;cursor:pointer;padding-inline-end:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238a93a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 14px center}.auth-select:invalid{color:#a5aec4}.auth-trial{background:linear-gradient(135deg,#f0fdf4,#ecfdf5);border:1px solid #bbf7d0;border-radius:12px;padding:12px 16px;margin-bottom:22px;display:flex;flex-direction:column;gap:4px}.auth-trial b{font-size:13.5px;color:#166534}.auth-trial span{font-size:12px;color:#4b7a5e}.auth-done{text-align:center;padding:14px 0 6px}.auth-done p{font-size:14px;font-weight:600;color:#1e293b;margin:14px 0 22px}.auth-done-icon{width:72px;height:72px;border-radius:50%;background:#f0fdf4;border:1.5px solid #bbf7d0;color:#16a34a;display:inline-flex;align-items:center;justify-content:center}.auth-brand-col{flex:1;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--auth-brand-bg);padding:48px 32px}.auth-brand-col:before,.auth-brand-col:after{content:"";position:absolute;border-radius:50%;pointer-events:none}.auth-brand-col:before{width:480px;height:480px;top:-180px;inset-inline-start:-160px;background:var(--auth-blob-a)}.auth-brand-col:after{width:360px;height:360px;bottom:-140px;inset-inline-end:-110px;background:var(--auth-blob-b)}.auth-brand-inner{position:relative;z-index:1;text-align:center;max-width:720px;width:100%}.auth-brand-title{font-size:2rem;font-weight:800;margin-bottom:10px;background:var(--auth-brand-title-grad);-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1.9}.auth-brand-sub{color:#ffffffd9;font-size:14px;margin-bottom:40px}.auth-brand-list{list-style:none;margin:0 auto;padding:0;display:inline-flex;flex-direction:column;gap:10px;text-align:start}.auth-brand-list li{color:#fff;font-size:.92rem;font-weight:500;background:#ffffff20;border:1px solid #ffffff38;border-radius:12px;padding:.55rem 1.15rem;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.auth-brand-shot{width:100%;max-width:660px;margin:0 auto;filter:drop-shadow(0 30px 60px rgba(0,0,0,.45));animation:auth-float 7s ease-in-out infinite}@keyframes auth-float{0%,to{transform:translateY(0)}50%{transform:translateY(-12px)}}@media(max-width:991.98px){.auth-brand-col{display:none}.auth-form-col{flex:1;padding:32px 18px}}
.auth-wrap{background:var(--auth-wrap-bg)}
.auth-form-col{background:var(--auth-form-bg)}

.auth-mode-switch{display:flex;gap:6px;padding:5px;border-radius:14px;background:var(--auth-switch-bg);border:1px solid var(--auth-switch-bd);margin-bottom:20px}
.auth-mode-item{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:11px 8px;border-radius:10px;border:0;background:transparent;color:#7b8199;font-family:inherit;font-weight:700;font-size:13px;cursor:pointer;transition:all .2s ease}
.auth-mode-item.active{background:#fff;color:var(--auth-a);box-shadow:0 4px 14px -4px var(--auth-switch-shadow)}
.auth-mode-item:not(.active):hover{color:#4b5563}
.auth-otp-bale{display:flex;align-items:center;gap:6px;justify-content:center;font-size:11.5px;color:#8a93a8;margin-top:14px;line-height:1.8}
