/* ريكويستو — شاشة الدخول */

.auth{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(16px,4vw,48px);
  overflow-y:auto;
  background:
    radial-gradient(900px 620px at 12% 8%,rgba(124,92,255,.24),transparent 62%),
    radial-gradient(720px 520px at 92% 94%,rgba(53,225,208,.13),transparent 60%),
    radial-gradient(600px 420px at 80% 10%,rgba(255,92,138,.08),transparent 60%),
    linear-gradient(160deg,#07080f,#0a0c17 58%,#07080f);
}
.auth__glow{
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:radial-gradient(circle at 50% 40%,#000 10%,transparent 72%);
  -webkit-mask-image:radial-gradient(circle at 50% 40%,#000 10%,transparent 72%);
  opacity:.5;
}
.auth__card{
  position:relative;
  width:min(486px,100%);
  margin:auto;
  padding:clamp(22px,4vw,34px);
  border-radius:28px;
  background:linear-gradient(168deg,rgba(24,28,48,.94),rgba(11,13,24,.97));
  border:1px solid var(--line-strong);
  box-shadow:0 44px 110px -34px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.auth__tools{
  display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:12px;
}
.auth__brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:22px;
}
.auth__brand .brand__mark{width:38px;height:38px;border-radius:12px}
.auth__brand strong{display:block;font-size:16px;font-weight:900;letter-spacing:-.2px}
.auth__brand small{display:block;font-size:8.5px;letter-spacing:2.4px;color:var(--muted-2);font-weight:800}
.auth__card h1{
  font-size:clamp(22px,4.2vw,29px);
  line-height:1.35;
  font-weight:900;
  letter-spacing:-.7px;
}
.auth__card h1 .grad{
  background:linear-gradient(100deg,#a08cff,#35e1d0 62%,#ff8ab0);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.auth__lead{
  font-size:12.5px;
  color:var(--muted);
  line-height:1.85;
  margin-top:10px;
}
.auth__tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  padding:5px;
  margin:20px 0 18px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
}
.auth__tabs button{
  padding:10px 8px;
  border-radius:10px;
  font-size:12.5px;
  font-weight:800;
  color:var(--muted);
  transition:background .2s,color .2s,box-shadow .2s;
}
.auth__tabs button:hover{color:#e6e8f5}
.auth__tabs button.is-active{
  background:linear-gradient(135deg,rgba(124,92,255,.95),rgba(124,92,255,.6));
  color:#fff;
  box-shadow:0 10px 24px -12px rgba(124,92,255,.9);
}
.auth__form .field{margin-bottom:12px}
.auth__form .pass-wrap{position:relative}
.auth__form .pass-input{position:relative}
.auth__form .pass-wrap input{padding-inline-end:44px}
.pwd-eye{
  position:absolute;inset-block-end:5px;inset-inline-end:6px;width:34px;height:34px;
  display:grid;place-items:center;border-radius:9px;color:var(--muted);transition:.2s;
}
.pwd-eye:hover{color:var(--text);background:rgba(127,127,127,.14)}
.pwd-eye .ic{width:17px;height:17px}
.pwd-eye .ic-eye-off{display:none}
.pwd-eye[aria-pressed="true"] .ic-eye{display:none}
.pwd-eye[aria-pressed="true"] .ic-eye-off{display:block}
.auth__form .btn--block{margin-top:4px}
.auth__form .btn--ghost{margin-top:8px}
.auth__form .micro{margin-top:9px}
.auth__form .switches{margin:2px 0 12px}
.terms-consent{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;font-size:12px;line-height:1.8;color:var(--muted);cursor:pointer}
.terms-consent input{margin-top:3px;width:16px;height:16px;flex:none;accent-color:var(--brand)}
.terms-consent__text{min-width:0}
.terms-consent__link{display:inline;padding:0;border:0;background:none;color:var(--brand-2);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.terms-consent__link:hover{color:var(--text)}
.auth__form .form-error{
  margin-bottom:10px;
  padding:9px 11px;
  border-radius:10px;
  background:rgba(255,95,112,.1);
  border:1px solid rgba(255,95,112,.28);
}
.auth__form .btn:disabled{opacity:.6;cursor:wait}
.auth__form .btn--lg:disabled{opacity:.45;cursor:not-allowed}
.auth__foot{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid var(--line);
  font-size:10.5px;
  line-height:1.8;
  color:var(--muted-2);
}
.auth__foot .ic{width:15px;height:15px;color:var(--brand-2);margin-top:2px}
.auth__form code{font-size:.9em;color:#d5caff;direction:ltr;display:inline-block}

@media (max-width:520px){
  .auth{align-items:flex-start;padding:14px}
  .auth__card{padding:22px 18px;border-radius:22px}
  .auth__brand{margin-bottom:16px}
  .auth__lead{font-size:12px}
  .auth__tabs{margin:16px 0 15px}
  .auth__foot{font-size:10px}
}
