/* ===========================================================
   GTA — صفحه‌ی لاگین واقعی Maanfee (overlay تمام‌صفحه)
   =========================================================== */
.gta-login{
  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,.38), 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-logo{display:flex; align-items:center; justify-content:center; padding:22px 24px;}
.gl-logo img{width:min(282px,88%); height:auto; filter:drop-shadow(0 14px 30px rgba(15,42,28,.16));}
/* خط جداکننده — img شناور تا ارتفاع تحمیل نکند (باگ کشیده‌شدن کارت) */
.gl-divider{display:flex; align-items:center; justify-content:center; position:relative;}
.gl-divider img{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); height:72%; max-height:300px; width:auto; opacity:.8;}
.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:#141A22; margin:0 0 4px;}
.gl-sub{font-size:12.5px; color:#6B7686; 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:#6B7686; cursor:pointer; transition:.18s; display:flex; align-items:center; justify-content:center; gap:7px;}
.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:#6B7686; 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: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:#141A22; padding:11px 0;}
.gl-inp .eye{cursor:pointer; color:#6B7686;}

/* پرکردن خودکار مرورگر (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; margin:3px 0 15px;}
.gl-remember{display:flex; align-items:center; gap:7px; font-size:12.5px; color:#6B7686; cursor:pointer;}
.gl-remember input{accent-color:#2a7d52; width:15px; height:15px; flex:0 0 auto;}

.gl-btn{width:100%; border:0; border-radius:13px; padding:12px; 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:disabled{opacity:.75; cursor:default;}
.gl-btn .gi{width:18px; height:18px;}
.gl-spin{width:16px; height:16px; 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-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,.gl-logo{display:none;}
}

/* ── ورود با پیامک (OTP) ── */
.gl-otp-hint{font-size:12.5px; color:#6B7686; margin:2px 0 16px; line-height:1.7;}
.gl-otp-hint b{color:#141A22; font-weight:700;}
.gl-otp-foot{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px;}
.gl-otp-timer{font-size:12px; color:#6B7686;}
.gl-link{background:none; border:0; padding:0; font-family:inherit; font-size:12.5px; font-weight:700;
  color:#2a7d52; cursor:pointer; transition:.15s;}
.gl-link:hover{color:#15583a; text-decoration:underline;}

.gl-signup{margin-top:20px; padding-top:16px; border-top:1px solid rgba(20,26,34,.08);
  display:flex; align-items:center; justify-content:center; gap:6px; font-size:13px; color:#6B7686;}
.gl-signup a{color:#2a7d52; font-weight:800; text-decoration:none; transition:.15s;}
.gl-signup a:hover{color:#15583a; text-decoration:underline;}
.gl-signup .gi{width:17px; height:17px; color:#2a7d52; flex:0 0 auto;}
.gl-signup-hint{text-align:center; font-size:11px; color:#8d97a5; margin-top:6px; 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:#141A22; margin:0 0 5px;}
.gl-su-head .gl-sub{margin:0; font-size:12.5px;}
.gl-su-head .gl-sub a{color:#2a7d52; 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:#141A22; padding:11px 0; cursor:pointer; -webkit-appearance:none; appearance:none;}
.gl-inp select.gl-empty{color:#9aa3ad;}
.gl-inp .gl-chev{width:16px; height:16px; color:#6B7686; flex:0 0 auto; pointer-events:none;}

/* پیام خطای اعتبارسنجی */
.gl-err{display:block; color:#c0392b; font-size:11px; font-weight:600; margin:-8px 2px 11px; line-height:1.5;}

/* تیک شرایط */
.gl-terms{display:flex; align-items:flex-start; gap:8px; font-size:12.5px; color:#6B7686; cursor:pointer; margin:4px 0 18px; line-height:1.6;}
.gl-terms input{margin-top:2px; accent-color:#2a7d52; width:16px; height:16px; flex:0 0 auto;}

/* حالت موفقیت */
.gl-success{text-align:center; padding:14px 0 4px;}
.gl-success .gl-suc-ic{width:64px; height:64px; margin:0 auto 14px; color:#2a7d52;}
.gl-success h1{font-size:20px; font-weight:800; color:#141A22; margin:0 0 10px;}
.gl-success p{font-size:13.5px; color:#6B7686; line-height:1.9; margin:0 0 22px;}

/* ===========================================================
   🌙 حالت شب برند برای لاگین/ثبت‌نام — کلاس html.gta-dark را
   اسکریپت اول index.html (از localStorage) ست می‌کند؛ هم‌راستا با
   لایه‌ی تیره‌ی gta-theme.css و splash تا پرش نور بین صفحات نباشد.
   =========================================================== */
html.gta-dark .gta-login{
  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 img{opacity:.35; filter:brightness(1.7);}
html.gta-dark .gl-head h1, html.gta-dark .gl-su-head h1, html.gta-dark .gl-success h1{color:#E4EDE7;}
html.gta-dark .gl-sub, html.gta-dark .gl-otp-hint, html.gta-dark .gl-otp-timer,
html.gta-dark .gl-remember, html.gta-dark .gl-field label, html.gta-dark .gl-terms,
html.gta-dark .gl-signup, html.gta-dark .gl-success p{color:#93A79B;}
html.gta-dark .gl-otp-hint b{color:#E4EDE7;}
html.gta-dark .gl-tabs{background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.08);}
html.gta-dark .gl-tabs button{color:#93A79B;}
html.gta-dark .gl-tabs button.active{color:#fff;}
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:#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-signup{border-top-color:rgba(255,255,255,.08);}
html.gta-dark .gl-signup-hint{color:#77857c;}
html.gta-dark .gl-err{color:#E08A93;}
html.gta-dark .gl-terms input, html.gta-dark .gl-remember input{accent-color:#3FA671;}
