/* ===========================================================
   GTA — صفحه‌ی لاگین واقعی Maanfee (overlay تمام‌صفحه)
   =========================================================== */
.gta-login{
  /* ── توکن‌های متن (۲۰۲۶-۰۸-۱۵) ───────────────────────────────────────────────
     چرا: کلِ متنِ فرعیِ این صفحه‌ها با یک خاکستریِ ثابت (#6B7686) نوشته شده بود که روی
     شیشه‌ی روشن نسبتِ ۴٫۳۰ می‌داد — زیرِ حدِ AA. (اندازه‌گیری با پیکسلِ واقعیِ رندرشده،
     نه تخمینِ ترکیب: maanfee-shots/prelogin/contrast.js.) حالا رنگ‌ها یک‌جا تعریف
     می‌شوند و در html.gta-dark فقط همین چند خط عوض می‌شود — نه ده‌ها override پراکنده. */
  --gl-fg1:#141A22;          /* عنوان و متنِ اصلی */
  --gl-fg2:#4E5865;          /* لیبل، متنِ فرعی (۶٫۶ روی شیشه‌ی روشن) */
  --gl-fg3:#5F6975;          /* راهنمای ریز (۵٫۲) */
  --gl-link:#1F6A46;         /* لینک/اکشنِ متنی (۶٫۱ — قبلاً #2a7d52 با ۴٫۷۰ مرزی بود) */
  --gl-link-h:#0F4429;
  --gl-line:rgba(20,26,34,.09);
  --gl-tint:rgba(23,92,57,.07);
  --gl-tint-bd:rgba(23,92,57,.13);
  position:fixed; inset:0; z-index:1500; display:flex; align-items:center; justify-content:center; padding:24px;
  font-family:'Peyda','Segoe UI',Tahoma,sans-serif; direction:rtl; overflow:auto;
  background:
    radial-gradient(640px 480px at 0% -3%, rgba(46,139,91,.22), transparent 56%),
    radial-gradient(560px 470px at 100% 0%, rgba(206,160,52,.18), transparent 55%),
    radial-gradient(760px 660px at 102% 103%, rgba(24,160,130,.18), transparent 56%),
    radial-gradient(680px 580px at -2% 103%, rgba(31,122,75,.16), transparent 56%),
    radial-gradient(1300px 920px at 50% 50%, rgba(255,255,255,.42), transparent 62%),
    linear-gradient(135deg,#E9F2EC 0%,#E7F0E9 45%,#F2EDE0 100%);
}
/* ماندالاهای پس‌زمینه‌ی صفحه — پشت کارت، گوشه‌ها (fixed تا scrollbar نسازند) */
.gl-bg-mandala{position:fixed; z-index:0; pointer-events:none; user-select:none;
  filter:saturate(1.4) contrast(1.05); height:auto;}
/* بزرگ، گوشه‌ی پایین-چپ: مرکز ماندالا روی گوشه → فقط ربع آن دیده می‌شود */
.gl-bg-bl{width:min(820px,80vw); left:min(-330px,-22vw); bottom:min(-330px,-22vw); opacity:.5;}
/* کوچیک‌تر، گوشه‌ی بالا-راست (ربعش دیده شود، متوازن با پایین-چپ) */
.gl-bg-tr{width:min(480px,46vw); right:min(-200px,-15vw); top:min(-200px,-15vw); opacity:.5;}

/* mud-paper والد صفحه‌ی لاگین نباید backdrop-filter داشته باشد؛ وگرنه containing block
   می‌سازد و overlay fixed (.gta-login) به‌جای viewport به همان paper کوچک محدود و کارت له می‌شود */
.mud-paper:has(> .gta-login){ backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  background:transparent !important; box-shadow:none !important; padding:0 !important; }

.gl-card{
  position:relative; z-index:1; width:min(840px,100%); min-height:392px;
  display:grid; grid-template-columns:1fr 44px 1fr; align-items:stretch;
  background:rgba(255,255,255,.42); backdrop-filter:blur(22px) saturate(150%); -webkit-backdrop-filter:blur(22px) saturate(150%);
  border:1px solid rgba(255,255,255,.6); border-radius:26px;
  box-shadow:0 30px 70px rgba(15,42,28,.18), inset 0 1px 0 rgba(255,255,255,.85); overflow:hidden;
}
/* نوار گرادیان طلایی→زمردی بالای کارت — همان نوار پیشرفت اسپلش و همان نوار
   کارت صفحه‌های سیستمی (۴۰۴/دسترسی). امضای بصری مشترک این سه صفحه است تا
   کاربر از لحظه‌ی لود تا ورود حس «یک سامانه» بگیرد نه سه صفحه‌ی جدا. */
.gl-card::before{content:''; position:absolute; inset-block-start:0; inset-inline:0; height:4px; z-index:2;
  background:linear-gradient(270deg,#C8911C 0%,#2A7D52 38%,#175C39 100%);}
html.gta-dark .gl-card::before{background:linear-gradient(270deg,#E3B95A 0%,#3FA671 38%,#2A7D52 100%);}
.gl-logo{display:flex; align-items:center; justify-content:center; padding:22px 24px;}
.gl-logo-in{display:flex; flex-direction:column; align-items:center; gap:14px; width:100%;}
.gl-logo img{width:min(282px,88%); height:auto; filter:drop-shadow(0 14px 30px rgba(15,42,28,.16));}
/* یک خطِ معرفیِ کوتاه زیرِ لوگو: ستونِ لوگو روی مانیتورِ عریض یک چاهِ خالی بود و
   کاربرِ تازه هم نمی‌دانست این سامانه چیست (۲۰۲۶-۰۸-۱۵). */
.gl-logo-cap{font-size:12px; font-weight:700; color:var(--gl-fg3); text-align:center; line-height:1.9;
  letter-spacing:.2px; max-width:250px;}
/* خط جداکننده — img شناور تا ارتفاع تحمیل نکند (باگ کشیده‌شدن کارت).
   خطِ عمودی با CSS کشیده می‌شود: خطِ داخلِ divider.png آن‌قدر کم‌رنگ بود که نگینِ وسطش
   مثل یک لکه‌ی سرگردانِ وسطِ کارت دیده می‌شد (و در حالت شب اصلاً نه). */
.gl-divider{display:flex; align-items:center; justify-content:center; position:relative;}
.gl-divider::before{content:''; position:absolute; top:11%; bottom:11%; left:50%; width:1px; transform:translateX(-50%);
  background:linear-gradient(180deg, transparent 0%, rgba(23,92,57,.22) 20%, rgba(23,92,57,.22) 80%, transparent 100%);}
.gl-divider img{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); height:72%; max-height:300px; width:auto;
  opacity:.95; filter:brightness(.62) saturate(1.7);}
.gl-form{position:relative; display:flex; flex-direction:column; justify-content:center; padding:26px 36px;}
.gl-form > *{position:relative; z-index:1;}

.gl-head h1{font-size:22px; font-weight:800; color:var(--gl-fg1); margin:0 0 4px;}
.gl-sub{font-size:12.5px; color:var(--gl-fg2); margin-bottom:18px;}

.gl-tabs{display:flex; gap:5px; background:rgba(255,255,255,.4); border:1px solid rgba(255,255,255,.5);
  border-radius:13px; padding:4px; margin-bottom:18px; backdrop-filter:blur(10px);}
.gl-tabs button{flex:1; border:0; background:transparent; padding:9px; border-radius:10px; font-family:inherit;
  font-weight:700; font-size:13px; color:var(--gl-fg2); cursor:pointer; transition:.18s; display:flex; align-items:center; justify-content:center; gap:7px;}
.gl-tabs button:not(.active):hover{background:rgba(255,255,255,.55); color:var(--gl-fg1);}
.gl-tabs button.active{background:linear-gradient(140deg,#2a7d52,#15583a); color:#fff; box-shadow:0 8px 18px rgba(23,92,57,.26);}
.gl-tabs button.soon{opacity:.65; cursor:default;}
.gl-tabs .gi{width:17px; height:17px;}
.badge-soon{font-size:10px; background:rgba(200,145,28,.18); color:#9a6f12; padding:1px 7px; border-radius:999px; font-weight:700;}

.gl-field{margin-bottom:13px;}
.gl-field label{display:block; font-size:12px; font-weight:700; color:var(--gl-fg2); margin-bottom:6px;}
.gl-inp{display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.6); border:1.5px solid rgba(255,255,255,.7);
  border-radius:12px; padding:0 13px; transition:.18s; backdrop-filter:blur(8px);}
.gl-inp:hover{border-color:rgba(46,139,91,.35);}
.gl-inp:focus-within{border-color:#2E8B5B; box-shadow:0 0 0 4px rgba(46,139,91,.12); background:rgba(255,255,255,.9);}
.gl-inp .gi{width:20px; height:20px; color:#3B4654; flex:0 0 auto;}
.gl-inp input{flex:1; border:0; outline:0; background:transparent; font-family:inherit; font-size:14px; color:var(--gl-fg1); padding:11px 0;}
/* رنگِ پیش‌فرضِ مرورگر برای placeholder (خاکستریِ ۷۵۷۵۷۵) در هر دو حالت زیرِ حدِ AA بود */
.gl-inp input::placeholder, .gl-inp textarea::placeholder{color:var(--gl-fg3); opacity:1;}
/* ناحیه‌ی لمس/کلیکِ چشمکِ رمز بزرگ‌تر شد بدون اینکه چیدمان عوض شود */
.gl-inp .eye{cursor:pointer; color:var(--gl-fg2); box-sizing:content-box; padding:8px; margin:-8px -6px -8px 0; border-radius:999px; transition:.15s;}
.gl-inp .eye:hover{color:var(--gl-link); background:var(--gl-tint);}

/* پرکردن خودکار مرورگر (autofill) — نگذار کروم پس‌زمینه‌ی سفید/آبی خودش را بکشد */
.gl-inp input:-webkit-autofill,
.gl-inp input:-webkit-autofill:hover,
.gl-inp input:-webkit-autofill:focus{
  -webkit-text-fill-color:#141A22;
  caret-color:#141A22;
  transition:background-color 999999s ease-in-out 0s;
}

.gl-row{display:flex; align-items:center; justify-content:space-between; gap:10px; margin:3px 0 15px;}
.gl-remember{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--gl-fg2); cursor:pointer;
  user-select:none; padding:4px 0;}
.gl-remember:hover{color:var(--gl-fg1);}

/* ── تیکِ برند (۲۰۲۶-۰۸-۱۵) ───────────────────────────────────────────────────
   چک‌باکسِ بومی در حالت شب یک مربعِ سفیدِ درخشان بود — روشن‌ترین چیزِ کارت و بی‌ربط‌ترین.
   حالا در هر دو حالت هم‌شکلِ بقیه‌ی کارت است. (accent-color فقط حالتِ «تیک‌خورده» را
   رنگ می‌کرد، نه کادرِ خالی را.) */
.gl-remember input, .gl-terms input{
  -webkit-appearance:none; appearance:none; width:18px; height:18px; flex:0 0 auto; margin:0;
  border-radius:6px; border:1.5px solid rgba(20,26,34,.26); background:rgba(255,255,255,.75);
  cursor:pointer; transition:.15s; position:relative;}
.gl-remember input:hover, .gl-terms input:hover{border-color:#2E8B5B;}
.gl-remember input:checked, .gl-terms input:checked{
  background:linear-gradient(140deg,#2a7d52,#15583a); border-color:#175C39;}
.gl-remember input:checked::after, .gl-terms input:checked::after{
  content:''; position:absolute; inset:0; background-color:#fff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6 9.6 17 19 7.4'/%3E%3C/svg%3E") center/72% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6 9.6 17 19 7.4'/%3E%3C/svg%3E") center/72% no-repeat;}
.gl-remember input:focus-visible, .gl-terms input:focus-visible{outline:2px solid #2A7D52; outline-offset:2px;}

.gl-btn{width:100%; border:0; border-radius:13px; padding:12px 14px; min-height:46px; font-family:inherit; font-weight:800; font-size:14.5px; cursor:pointer;
  background:linear-gradient(140deg,#2a7d52,#15583a); color:#fff;
  box-shadow:0 12px 26px rgba(23,92,57,.3), inset 0 1px 0 rgba(255,255,255,.25);
  transition:.18s; display:flex; align-items:center; justify-content:center; gap:9px;}
.gl-btn:hover:not(:disabled){transform:translateY(-1px); box-shadow:0 16px 32px rgba(23,92,57,.36);}
.gl-btn:active:not(:disabled){transform:translateY(0); box-shadow:0 8px 18px rgba(23,92,57,.3);}
.gl-btn:disabled{opacity:.75; cursor:default;}
.gl-btn .gi{width:18px; height:18px; flex:0 0 auto;}
/* برچسبِ دکمه در حالتِ «مشغول» متنِ بلند می‌گیرد ("ورود انجام شد؛ سامانه در حال آماده‌سازی…")
   و قبلاً کنارِ چوگانِ جهت‌نما می‌شکست و دکمه شکل‌شکسته می‌شد (۲۰۲۶-۰۸-۱۵). */
.gl-btn .lbl{display:inline-flex; align-items:center; justify-content:center; gap:9px; line-height:1.65; text-align:center;}
.gl-spin{width:16px; height:16px; flex:0 0 auto; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; display:inline-block; animation:glspin .7s linear infinite;}
@keyframes glspin{to{transform:rotate(360deg);}}
/* وقتی چرخنده داخل دکمه است، جهت‌نمای انتهایی معنی ندارد و فقط شلوغی می‌سازد */
.gl-btn:has(.gl-spin) > .gi{display:none;}
.gl-btn:has(.gl-spin){opacity:1;}

.gl-card .gi{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;}

@media (max-width:760px){
  .gl-card{grid-template-columns:1fr;}
  .gl-divider{display:none;}
  /* لوگو روی گوشی کاملاً حذف می‌شد و کارت بی‌هویت بود؛ حالا فشرده بالای فرم می‌ماند */
  .gl-logo{padding:18px 22px 0;}
  .gl-logo img{width:min(168px,48%);}
  .gl-logo-cap{display:none;}
  .gl-form{padding:18px 22px 22px;}
}

/* ── ورود با پیامک (OTP) ── */
.gl-otp-hint{font-size:12.5px; color:var(--gl-fg2); margin:2px 0 14px; line-height:1.8;
  background:var(--gl-tint); border:1px solid var(--gl-tint-bd); border-radius:var(--gta-radius-ctl,12px); padding:9px 12px;}
.gl-otp-hint b{color:var(--gl-fg1); font-weight:800;}
.gl-otp-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; flex-wrap:wrap;}
.gl-otp-timer{font-size:12px; font-weight:700; color:var(--gl-fg2); display:inline-flex; align-items:center; gap:6px;}
.gl-otp-timer:not(:empty)::before{content:''; width:14px; height:14px; flex:0 0 auto; background-color:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.2V12l3.2 2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.2V12l3.2 2'/%3E%3C/svg%3E") center/contain no-repeat;}
.gl-link{background:none; border:0; padding:0; font-family:inherit; font-size:12.5px; font-weight:800;
  color:var(--gl-link); cursor:pointer; transition:.15s; border-radius:var(--gta-radius-sm,8px);}
.gl-link:hover{color:var(--gl-link-h); text-decoration:underline;}

.gl-signup{margin-top:18px; padding-top:14px; border-top:1px solid var(--gl-line);
  display:flex; align-items:center; justify-content:center; gap:6px; font-size:13px; color:var(--gl-fg2);}
.gl-signup a{color:var(--gl-link); font-weight:800; text-decoration:none; transition:.15s;}
.gl-signup a:hover{color:var(--gl-link-h); text-decoration:underline;}
.gl-signup .gi{width:17px; height:17px; color:var(--gl-link); flex:0 0 auto;}
.gl-signup-hint{text-align:center; font-size:11px; color:var(--gl-fg3); margin-top:4px; line-height:1.7;}

/* ===========================================================
   صفحه‌ی ثبت‌نام کارمندان — همان تم کارت برند، تک‌ستونه
   =========================================================== */
.gl-card.gl-su-card{grid-template-columns:1fr; width:min(600px,100%); min-height:auto; margin:24px 0;}
.gl-su-body{padding:30px 40px;}
.gl-su-logo{display:flex; justify-content:center; margin-bottom:10px;}
.gl-su-logo img{width:150px; height:auto; filter:drop-shadow(0 10px 22px rgba(15,42,28,.16));}
.gl-su-head{text-align:center; margin-bottom:20px;}
.gl-su-head h1{font-size:21px; font-weight:800; color:var(--gl-fg1); margin:0 0 5px;}
.gl-su-head .gl-sub{margin:0; font-size:12.5px;}
.gl-su-head .gl-sub a{color:var(--gl-link); font-weight:800; text-decoration:none;}
.gl-su-head .gl-sub a:hover{text-decoration:underline;}

.gl-grid2{display:grid; grid-template-columns:1fr 1fr; gap:0 16px;}
@media (max-width:560px){ .gl-grid2{grid-template-columns:1fr;} .gl-su-body{padding:24px 22px;} }

/* select بومی، هم‌شکل ورودی‌های gl-inp */
.gl-inp select{flex:1; border:0; outline:0; background:transparent; font-family:inherit; font-size:14px;
  color:var(--gl-fg1); padding:11px 0; cursor:pointer; -webkit-appearance:none; appearance:none;}
.gl-inp select.gl-empty{color:var(--gl-fg3);}
.gl-inp .gl-chev{width:16px; height:16px; color:var(--gl-fg2); flex:0 0 auto; pointer-events:none;}

/* پیام خطای اعتبارسنجی */
.gl-err{display:block; color:#A33947; font-size:11px; font-weight:700; margin:-8px 2px 11px; line-height:1.5;}
/* راهنمای زیرِ فیلد (مثلاً سیاستِ رمز) — ۲۰۲۶-۰۸-۱۵ */
.gl-hint{display:block; color:var(--gl-fg3); font-size:11px; margin:-6px 2px 8px; line-height:1.6;}

/* تیک شرایط */
.gl-terms{display:flex; align-items:flex-start; gap:8px; font-size:12.5px; color:var(--gl-fg2); cursor:pointer; margin:4px 0 18px; line-height:1.6;}
.gl-terms input{margin-top:2px;}

/* حالت موفقیت */
.gl-success{text-align:center; padding:14px 0 4px;}
.gl-success .gl-suc-ic{width:64px; height:64px; margin:0 auto 14px; color:var(--gl-link);}
.gl-success h1{font-size:20px; font-weight:800; color:var(--gl-fg1); margin:0 0 10px;}
.gl-success p{font-size:13.5px; color:var(--gl-fg2); line-height:1.9; margin:0 0 22px;}

/* ===========================================================
   🌙 حالت شب برند برای لاگین/ثبت‌نام — کلاس html.gta-dark را
   اسکریپت اول index.html (از localStorage) ست می‌کند؛ هم‌راستا با
   لایه‌ی تیره‌ی gta-theme.css و splash تا پرش نور بین صفحات نباشد.
   =========================================================== */
html.gta-dark .gta-login{
  /* فقط توکن‌ها عوض می‌شوند؛ بقیه‌ی قواعد بالا دست‌نخورده می‌مانند */
  --gl-fg1:#E4EDE7;
  --gl-fg2:#A3B8AB;      /* روشن‌تر از #93A79B قبلی: روی شیشه‌ی تیره ۸٫۲ */
  --gl-fg3:#93A79B;
  --gl-link:#7FC9A2;
  --gl-link-h:#A5DCC0;
  --gl-line:rgba(255,255,255,.09);
  --gl-tint:rgba(63,166,113,.10);
  --gl-tint-bd:rgba(63,166,113,.22);
  background:
    radial-gradient(640px 480px at 0% -3%, rgba(63,166,113,.14), transparent 56%),
    radial-gradient(560px 470px at 100% 0%, rgba(200,145,28,.10), transparent 55%),
    radial-gradient(760px 660px at 102% 103%, rgba(24,160,130,.10), transparent 56%),
    radial-gradient(680px 580px at -2% 103%, rgba(31,122,75,.12), transparent 56%),
    linear-gradient(135deg,#0E1712 0%,#101914 45%,#141A12 100%);
}
html.gta-dark .gl-bg-mandala{opacity:.14; filter:saturate(1.1) brightness(1.6);}
html.gta-dark .gl-card{
  background:rgba(18,26,21,.72); border-color:rgba(255,255,255,.09);
  box-shadow:0 30px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
html.gta-dark .gl-logo img,
html.gta-dark .gl-su-logo img{filter:drop-shadow(0 14px 30px rgba(0,0,0,.55)) drop-shadow(0 0 24px rgba(127,201,162,.18)) brightness(1.25);}
html.gta-dark .gl-divider::before{
  background:linear-gradient(180deg, transparent 0%, rgba(127,201,162,.26) 20%, rgba(127,201,162,.26) 80%, transparent 100%);}
html.gta-dark .gl-divider img{opacity:.5; filter:brightness(1.9) saturate(.9);}
html.gta-dark .gl-tabs{background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.08);}
html.gta-dark .gl-tabs button:not(.active):hover{background:rgba(255,255,255,.08);}
html.gta-dark .gl-tabs button.active{color:#fff;}
html.gta-dark .gl-remember input, html.gta-dark .gl-terms input{
  border-color:rgba(255,255,255,.24); background:rgba(255,255,255,.07);}
html.gta-dark .gl-remember input:hover, html.gta-dark .gl-terms input:hover{border-color:#3FA671;}
html.gta-dark .gl-remember input:checked, html.gta-dark .gl-terms input:checked{
  background:linear-gradient(140deg,#3FA671,#22764C); border-color:#3FA671;}
html.gta-dark .badge-soon{background:rgba(200,145,28,.2); color:#D9A94A;}
html.gta-dark .gl-inp{background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.1);}
html.gta-dark .gl-inp:focus-within{border-color:#3FA671; box-shadow:0 0 0 4px rgba(63,166,113,.15); background:rgba(255,255,255,.09);}
html.gta-dark .gl-inp input, html.gta-dark .gl-inp select{color:#E4EDE7;}
html.gta-dark .gl-inp select.gl-empty{color:var(--gl-fg3);}   /* #7d8a82 روی فیلدِ تیره ۳٫۸۸ بود */
html.gta-dark .gl-inp select option{background:#141D18; color:#E4EDE7;}
html.gta-dark .gl-inp .gi{color:#8FB3A0;}
html.gta-dark .gl-inp .eye, html.gta-dark .gl-inp .gl-chev{color:#93A79B;}
html.gta-dark .gl-inp input:-webkit-autofill,
html.gta-dark .gl-inp input:-webkit-autofill:hover,
html.gta-dark .gl-inp input:-webkit-autofill:focus{
  -webkit-text-fill-color:#E4EDE7;
  caret-color:#E4EDE7;
  transition:background-color 999999s ease-in-out 0s;
}
html.gta-dark .gl-link, html.gta-dark .gl-signup a, html.gta-dark .gl-signup .gi,
html.gta-dark .gl-su-head .gl-sub a, html.gta-dark .gl-success .gl-suc-ic{color:#7FC9A2;}
html.gta-dark .gl-link:hover, html.gta-dark .gl-signup a:hover{color:#A5DCC0;}
html.gta-dark .gl-err{color:#E08A93;}

/* ── پولیش موبایل صفحه‌های ورود/ثبت‌نام (۲۰۲۶-۰۸-۰۷، یافته‌ی ops/checks/ui_gate.py) ──
   ۱) فونت زیر ۱۶px روی iOS باعث زوم ناگهانی هنگام فوکوس می‌شود و کل چیدمان می‌پرد.
      قانون سراسری gta-theme.css فقط input های MudBlazor را می‌گرفت؛ فرم‌های gl-* بیرون مانده بودند.
   ۲) هدف لمس دکمه/چک‌باکس زیر ۴۴px با انگشت درست زده نمی‌شود. */
@media (max-width: 960px) {
    .gl-inp input, .gl-inp select, .gl-otp input { font-size: 16px; }
    .gl-btn { min-height: 46px; }
    .gl-tabs button { min-height: 44px; }
    .gl-terms input, .gl-remember input { width: 22px; height: 22px; }
    /* کلِ برچسبِ «مرا به خاطر بسپار» هدفِ لمس است نه فقط مربعِ ۲۲px */
    .gl-remember { min-height: 44px; }
    /* ناحیه‌ی لمس لینک‌های متنی بزرگ می‌شود بدون اینکه چیدمان به‌هم بریزد */
    .gl-link, .gl-signup a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
}

/* نشانه‌ی فوکوس روی همه‌ی کنترل‌های صفحه‌های ورود — سامانه باید کاملاً با کیبورد
   قابل استفاده باشد (قانون همیشگی علیرضا)؛ بدون این، کاربر نمی‌داند کجاست.
   ⚠️ ۲۰۲۶-۰۸-۱۵: سلکتورِ `.gl-tab` به هیچ المانی نمی‌خورد (کلاسی به این نام وجود ندارد) —
   یعنی دو تبِ «ورود با رمز/پیامک» عملاً هیچ نشانه‌ی فوکوسی نداشتند. `.gl-tabs button` درست است. */
.gl-inp:focus-within { box-shadow: 0 0 0 3px rgba(42,125,82,.22); }
.gl-btn:focus-visible, .gl-tabs button:focus-visible, .gl-link:focus-visible,
.gl-signup a:focus-visible, .gl-help summary:focus-visible,
.gl-terms:focus-within, .gl-remember:focus-within {
    outline: 2px solid #2A7D52;
    outline-offset: 2px;
    border-radius: 10px;
}
html.gta-dark .gl-inp:focus-within { box-shadow: 0 0 0 3px rgba(127,201,162,.26); }
html.gta-dark .gl-btn:focus-visible, html.gta-dark .gl-tabs button:focus-visible,
html.gta-dark .gl-help summary:focus-visible,
html.gta-dark .gl-link:focus-visible, html.gta-dark .gl-signup a:focus-visible { outline-color: #7FC9A2; }

/* انتخابِ متن با رنگِ برند — پیش‌فرضِ آبیِ مرورگر (که موقعِ select() شدنِ رمز بعد از خطا
   تمامِ فیلد را آبی می‌کرد) بینِ این همه سبز/طلایی وصله می‌زد */
.gta-login ::selection { background: rgba(42,125,82,.26); }
html.gta-dark .gta-login ::selection { background: rgba(127,201,162,.30); }

/* احترام به «حرکتِ کمتر» سیستم‌عامل: چرخنده می‌ماند (معنی دارد) ولی
   جابه‌جایی/ظهورهای تزئینی خاموش می‌شوند */
@media (prefers-reduced-motion: reduce) {
    .gl-btn:hover:not(:disabled) { transform: none; }
    .gta-login *, .gta-login *::before, .gta-login *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .gl-spin { animation: glspin 1.4s linear infinite !important; }
}
