:root { --navy:#062d5e; --deep:#031b3a; --gold:#d3a33d; --muted:#748194; }
* { box-sizing:border-box; }
body { margin:0; min-height:100dvh; color:#10243d; background:#f6f8fb; font-family:"Vazirmatn","Segoe UI",Tahoma,sans-serif; }
button,input { font:inherit; }
.splash-screen { position:fixed; z-index:9999; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; color:var(--navy); background:#fbfcfe; transition:opacity .4s,visibility .4s; }
.splash-screen.is-hidden { opacity:0; visibility:hidden; }
.splash-screen strong { margin-top:14px; font-size:18px; }
.splash-screen > span { margin-top:3px; color:#8b98a7; font-size:10px; }
.splash-orbit { position:relative; width:88px; height:88px; display:grid; place-items:center; border:1px solid rgba(10,67,132,.18); border-radius:50%; }
.splash-orbit::after { content:""; position:absolute; inset:-9px; border:2px solid transparent; border-top-color:var(--gold); border-right-color:var(--gold); border-radius:50%; animation:spin .8s linear infinite; }
.splash-orbit img { width:66px; height:66px; object-fit:cover; border-radius:18px; }
.login-page { min-height:100dvh; display:grid; grid-template-columns:1.08fr .92fr; }
.login-visual { position:relative; display:grid; place-items:center; padding:50px; overflow:hidden; color:white; background:radial-gradient(circle at 20% 10%,#15599a,transparent 34%),linear-gradient(145deg,#07376f,#031a38); }
.login-visual::before,.login-visual::after { content:""; position:absolute; width:520px; height:270px; border:1px dashed rgba(255,255,255,.14); border-radius:50%; transform:rotate(-25deg); }
.login-visual::after { width:410px; height:410px; transform:rotate(15deg); }
.back-home { position:absolute; top:28px; right:35px; z-index:3; color:#d3dfE8; text-decoration:none; font-size:12px; }
.visual-content { position:relative; z-index:2; text-align:center; }
.brand-orbit { position:relative; width:180px; height:180px; display:grid; place-items:center; margin:auto; background:white; border-radius:50%; box-shadow:0 25px 60px rgba(0,0,0,.25); }
.brand-orbit::before { content:""; position:absolute; inset:-24px; border:1px dashed rgba(229,187,96,.55); border-radius:50%; animation:spin 18s linear infinite; }
.brand-orbit span { position:absolute; top:-29px; width:11px; height:11px; background:#e0b65c; border:4px solid #0a3e77; border-radius:50%; box-sizing:content-box; }
.brand-orbit img { width:135px; height:145px; object-fit:cover; border-radius:22px; }
.visual-content h1 { margin:35px 0 10px; font-size:38px; line-height:1.5; }
.visual-content > p { margin:0; color:#aac0d3; font-size:12px; }
.login-features { display:flex; justify-content:center; gap:8px; margin-top:25px; }
.login-features span { padding:7px 10px; color:#d4e0e9; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); border-radius:8px; font-size:11px; }
.login-panel { display:grid; place-items:center; padding:45px; background:white; }
.login-panel form { width:min(380px,100%); }
.eyebrow { color:#956919; font-size:12px; font-weight:700; }
.login-panel h2 { margin:8px 0 6px; color:var(--deep); font-size:31px; }
.login-panel form > p { margin:0 0 30px; color:var(--muted); font-size:13px; line-height:1.9; }
.login-panel label { display:block; margin:15px 2px 7px; color:#46576a; font-size:12px; font-weight:600; }
.field { height:52px; display:flex; align-items:center; gap:9px; padding:0 14px; background:#f6f8fa; border:1px solid #dfe6ed; border-radius:12px; }
.field:focus-within { background:white; border-color:#85a9c6; box-shadow:0 0 0 3px rgba(10,67,132,.07); }
.field > span { font-size:13px; filter:grayscale(1); opacity:.55; }
.field input { min-width:0; flex:1; background:transparent; border:0; outline:0; font-size:14px; }
.field button { min-width:44px; min-height:44px; padding:0; color:#647789; background:none; border:0; font-size:11px; }
.login-error { min-height:24px; padding-top:9px; color:#a63838; font-size:12px; }
.login-button { width:100%; height:52px; display:flex; align-items:center; justify-content:center; gap:14px; margin-top:8px; color:white; background:linear-gradient(135deg,var(--navy),#0a4b8f); border:0; border-radius:12px; font-size:14px; font-weight:700; box-shadow:0 12px 28px rgba(6,45,94,.2); }
.login-button:disabled { opacity:.65; }
.login-button b { color:#f0cf86; font-size:17px; }
.security-note { display:block; margin-top:15px; color:#778594; text-align:center; font-size:11px; line-height:1.8; }
@keyframes spin { to { transform:rotate(360deg); } }
@media(max-width:800px){ .login-page{grid-template-columns:1fr}.login-visual{display:none}.login-panel{min-height:100dvh;padding:30px} }
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important}}

/* Modern spatial login — 2.7.0 */
:root {
  --login-glass: rgba(255,255,255,.84);
  --login-line: rgba(255,255,255,.76);
}

body {
  background:
    radial-gradient(circle at 84% 14%, rgba(40,121,190,.14), transparent 26rem),
    radial-gradient(circle at 18% 84%, rgba(211,163,61,.13), transparent 22rem),
    #f4f8fb;
}

.login-page { position: relative; isolation: isolate; }

.login-visual {
  background:
    radial-gradient(circle at 24% 14%, rgba(34,118,191,.62), transparent 28%),
    radial-gradient(circle at 78% 75%, rgba(211,163,61,.14), transparent 28%),
    linear-gradient(145deg,#083c77 0%,#062d5e 48%,#02172f 100%);
  box-shadow: inset -1px 0 rgba(255,255,255,.08);
}

.login-visual::before {
  width: 590px;
  height: 330px;
  border-color: rgba(126,189,236,.18);
  box-shadow: 0 0 85px rgba(19,90,157,.22);
  animation: orbit-login-one 26s linear infinite;
}

.login-visual::after {
  width: 430px;
  height: 430px;
  border-style: solid;
  border-color: rgba(230,191,104,.15);
  box-shadow: inset 0 0 70px rgba(4,29,61,.18);
  animation: orbit-login-two 34s linear infinite reverse;
}

.back-home {
  top: 24px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #e3edf5;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.brand-orbit {
  width: 192px;
  height: 192px;
  background: linear-gradient(145deg,#fff,#edf3f8);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow:
    0 35px 75px rgba(0,0,0,.28),
    inset 12px 12px 24px rgba(255,255,255,.9),
    inset -14px -16px 28px rgba(9,64,119,.1);
  transform-style: preserve-3d;
}

.brand-orbit::after {
  content: "";
  position: absolute;
  inset: -43px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(49,135,204,.22);
}

.brand-orbit img {
  filter: drop-shadow(0 12px 12px rgba(4,33,66,.14));
  transform: translateZ(34px);
}

.visual-content h1 {
  margin-top: 42px;
  font-size: clamp(34px,3.2vw,48px);
  letter-spacing: -.9px;
  text-shadow: 0 8px 28px rgba(0,0,0,.2);
}

.login-features span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding-inline: 13px;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.login-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 8%, rgba(45,126,191,.11), transparent 19rem),
    radial-gradient(circle at 8% 92%, rgba(211,163,61,.1), transparent 18rem),
    #f5f8fb;
}

.login-panel::before,
.login-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-panel::before {
  top: -100px;
  left: -100px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(22,86,151,.08);
}

.login-panel::after {
  right: -70px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(211,163,61,.08), transparent 68%);
}

.login-panel form {
  position: relative;
  z-index: 2;
  width: min(430px,100%);
  padding: 29px 32px;
  background: var(--login-glass);
  border: 1px solid var(--login-line);
  border-radius: 26px;
  box-shadow: 0 32px 80px rgba(4,36,72,.15), 0 8px 22px rgba(4,36,72,.06), inset 0 1px 0 #fff;
  backdrop-filter: blur(26px) saturate(130%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  color: var(--deep);
  text-decoration: none;
}

.login-brand-logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 3px;
  background: linear-gradient(145deg,#fff,#eaf1f7);
  border: 1px solid #fff;
  border-radius: 14px;
  box-shadow: 0 10px 23px rgba(4,36,72,.13), inset 0 1px 0 #fff;
}

.login-brand-logo img { width:100%; height:100%; object-fit:cover; border-radius:10px; }
.login-brand > span:last-child { display:flex; flex-direction:column; line-height:1.45; }
.login-brand strong { font-size:14px; }
.login-brand small { color:#8c6b26; font-size:9px; }

.secure-pill {
  position: absolute;
  top: 30px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #2c7256;
  background: rgba(233,248,241,.88);
  border: 1px solid rgba(70,154,114,.14);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.secure-pill i {
  width: 7px;
  height: 7px;
  background: #36a675;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(54,166,117,.11);
}

.login-panel h2 { margin-top:10px; font-size:34px; letter-spacing:-.7px; }

.field {
  height: 56px;
  background: rgba(245,248,251,.9);
  border-color: rgba(204,217,228,.88);
  border-radius: 15px;
  box-shadow: inset 0 2px 4px rgba(7,44,82,.025);
  transition: background .2s,border-color .2s,box-shadow .2s,transform .2s;
}

.field:focus-within {
  border-color:#6f9fc5;
  box-shadow:0 0 0 4px rgba(10,75,143,.08),0 10px 24px rgba(4,36,72,.06);
  transform:translateY(-1px);
}

.field > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #0b4a87;
  background: #eaf2f8;
  border-radius: 8px;
  filter: none;
  opacity: 1;
  font-size: 10px;
  font-weight: 800;
}

.login-button {
  height: 56px;
  overflow: hidden;
  position: relative;
  background:linear-gradient(135deg,#062d5e 0%,#0a4f93 70%,#1668aa 100%);
  border:1px solid rgba(255,255,255,.15);
  border-radius:15px;
  box-shadow:0 17px 34px rgba(6,45,94,.25),inset 0 1px 0 rgba(255,255,255,.18),inset 0 -7px 15px rgba(1,23,50,.16);
  transition:transform .2s,box-shadow .2s;
}

.login-button:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 21px 42px rgba(6,45,94,.3),inset 0 1px 0 rgba(255,255,255,.18); }
.security-note { padding:11px 13px; background:rgba(237,244,249,.75); border-radius:11px; }

@keyframes orbit-login-one { to { transform:rotate(335deg); } }
@keyframes orbit-login-two { to { transform:rotate(375deg); } }

@media(max-width:800px) {
  .login-panel { padding:24px; }
  .login-panel form { padding:30px; }
}

@media(max-width:520px) {
  .login-panel { padding:14px; }
  .login-panel form { padding:24px 18px; border-radius:22px; }
  .secure-pill { position:static; width:max-content; margin:0 0 16px; }
  .login-brand { margin-bottom:18px; }
  .login-panel h2 { font-size:29px; }
  .login-panel form > p { margin-bottom:22px; font-size:12px; }
  .field input { font-size:16px; }
}
:root #login-mode{width:100%;box-sizing:border-box;font:inherit;padding:12px;border:1px solid #b9cbdc;border-radius:12px;background:#fff;color:#172b40;margin-bottom:12px}
