:root {
  color-scheme: light;
  --ink: #17233b;
  --muted: #71809a;
  --line: #e5eaf2;
  --accent: #315be8;
  --accent-dark: #2446bf;
  --surface: #fff;
}
* { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f2f5fa;
  color: var(--ink);
  font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
  line-height: 1.7;
}
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #8ba7ff; outline-offset: 3px; }
.login-shell {
  width: min(1080px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--surface);
  border: 1px solid rgba(219, 226, 238, .9);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(24, 42, 80, .13), 0 4px 18px rgba(24, 42, 80, .04);
}
.brand-panel {
  padding: 42px 44px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #f5f7ff;
  background: linear-gradient(150deg, #101c3e 0%, #192d60 54%, #2549a1 100%);
  isolation: isolate;
}
.brand-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 490px;
  height: 490px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  left: -260px;
  bottom: -180px;
  box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.02);
}
.brand-top { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.brand-symbol {
  width: 54px; height: 54px; display: grid; place-items: center;
  color: #dce6ff; border: 1px solid rgba(215,226,255,.3); border-radius: 17px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
}
.brand-symbol svg { width: 31px; height: 31px; }
.brand-kicker { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #c6d5ff; direction: ltr; }
.brand-copy { position: relative; z-index: 1; margin: 56px 0 65px; }
.eyebrow { margin: 0 0 17px; color: #a9c0ff; font-size: 13px; font-weight: 700; }
.brand-copy h1 { font-size: clamp(30px, 4vw, 43px); line-height: 1.65; letter-spacing: -.8px; margin: 0 0 20px; font-weight: 800; }
.brand-copy h1 span { color: #9bb5ff; }
.brand-description { max-width: 390px; margin: 0; color: #c0cce5; font-size: 14px; line-height: 2.2; }
.brand-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c1cce3; font-size: 11px; }
.secure-indicator { display: inline-flex; align-items: center; gap: 8px; }
.secure-indicator i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #67e1b0; box-shadow: 0 0 0 4px rgba(103,225,176,.12); }
.brand-version { opacity: .65; }
.decor { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.decor-one { width: 260px; height: 260px; top: 20%; left: -150px; background: radial-gradient(circle, rgba(101,139,255,.24), transparent 70%); }
.decor-two { width: 310px; height: 310px; right: -205px; top: -135px; border: 1px solid rgba(255,255,255,.13); box-shadow: 0 0 0 24px rgba(255,255,255,.025), 0 0 0 55px rgba(255,255,255,.018); }
.form-panel { padding: 64px clamp(34px, 5vw, 65px) 27px; display: flex; flex-direction: column; justify-content: center; }
.mobile-brand { display: none; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 13px; margin-bottom: 30px; }
.mobile-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e9efff; color: var(--accent); font-size: 12px; direction: ltr; }
.form-heading { margin-bottom: 32px; }
.section-label { display: inline-block; margin-bottom: 8px; color: var(--accent); background: #eef2ff; padding: 5px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.form-heading h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.4px; }
.form-heading p { margin: 0; font-size: 13px; color: var(--muted); }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; margin-bottom: 9px; color: #273550; font-size: 12px; font-weight: 800; }
.input-wrap { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid #dfe5ef; border-radius: 13px; background: #fbfcfe; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.input-wrap:focus-within { background: #fff; border-color: #7391ff; box-shadow: 0 0 0 4px rgba(49,91,232,.09); }
.input-wrap > svg { flex: 0 0 20px; width: 20px; height: 20px; stroke: #8a97ad; stroke-width: 1.65; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #1c2943; font-size: 13px; padding: 15px 0; }
.input-wrap input::placeholder { color: #a1aabd; }
.password-toggle { border: 0; padding: 5px; display: grid; place-items: center; border-radius: 8px; color: #75829b; background: transparent; cursor: pointer; }
.password-toggle:hover { background: #edf1fa; color: var(--accent); }
.password-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.submit-button { width: 100%; min-height: 54px; margin-top: 7px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 13px; border: 0; border-radius: 13px; background: linear-gradient(100deg, var(--accent), #4c78fa); color: white; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 9px 20px rgba(49,91,232,.2); transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(49,91,232,.26); }
.submit-button:disabled { opacity: .68; cursor: wait; transform: none; }
.submit-button svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transform: rotate(180deg); }
.form-error { margin: -4px 0 15px; padding: 10px 12px; border: 1px solid #ffd2d2; border-radius: 10px; background: #fff4f4; color: #b42332; font-size: 12px; line-height: 1.8; }
.login-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 15px; border: 1px solid #e6ebf4; border-radius: 12px; background: #f8faff; color: #7a879d; font-size: 11px; line-height: 1.9; }
.login-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; stroke: #7386b3; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form-footer { margin-top: 30px; color: #a0a9ba; font-size: 10px; text-align: center; }
@media (max-width: 820px) {
  body { padding: 18px; }
  .login-shell { width: min(520px, 100%); min-height: 0; grid-template-columns: 1fr; border-radius: 22px; }
  .brand-panel { display: none; }
  .form-panel { padding: 35px clamp(22px, 7vw, 42px) 22px; }
  .mobile-brand { display: flex; }
  .form-heading { margin-bottom: 25px; }
  .form-footer { margin-top: 24px; }
}
@media (max-width: 420px) {
  body { padding: 0; background: #fff; }
  .login-shell { border: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }
  .form-panel { padding-top: 26px; padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }
