.auth-login {
  --navy: #10283d;
  --line: #1f6f8d;
  --paper: #f3f5f7;
  --ink: #1a2430;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.auth-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 36px;
  background: var(--navy);
  color: #eef4f8;
}

.auth-bar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.auth-mark {
  width: 42px;
  height: 42px;
  color: #c5deea;
  flex-shrink: 0;
}

.auth-bar-brand strong,
.auth-bar-brand span { display: block; line-height: 1.35; }
.auth-bar-brand strong { font-size: 14px; font-weight: 700; }
.auth-bar-brand span { font-size: 12px; color: #9eb4c2; }

.auth-login .auth-theme {
  position: static;
  background: transparent;
  color: #eef4f8;
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-login .auth-wrap {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.auth-login .auth-brand {
  position: relative;
  overflow: hidden;
  padding: 72px 64px 88px;
  background: var(--navy);
  color: #eef4f8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-sheet {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  color: #8eb8c9;
  opacity: 0.55;
  pointer-events: none;
}

.auth-plan {
  position: absolute;
  left: -4%;
  bottom: -6%;
  width: min(92%, 720px);
  height: auto;
  color: #8eb8c9;
  opacity: 0.5;
  pointer-events: none;
}

.auth-login .auth-kicker,
.auth-login .auth-brand h1,
.auth-login .auth-lead,
.auth-login .auth-points {
  position: relative;
  z-index: 1;
}

.auth-plan .a1,
.auth-plan .ring {
  transform-box: view-box;
  transform-origin: 318px 214px;
}

.auth-plan .a1 {
  animation: spin-arm 16s linear infinite;
}

.auth-plan .ring {
  stroke-dasharray: 754;
  stroke-dashoffset: 620;
  animation: ring-draw 16s linear infinite;
}

@keyframes spin-arm {
  to { transform: rotate(-360deg); }
}

@keyframes ring-draw {
  0% { stroke-dashoffset: 680; transform: rotate(0deg); }
  72% { stroke-dashoffset: 0; transform: rotate(-260deg); }
  86% { stroke-dashoffset: 0; transform: rotate(-310deg); }
  100% { stroke-dashoffset: 680; transform: rotate(-360deg); }
}

.auth-login .auth-kicker {
  margin: 0 0 12px;
  color: #8eb8c9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auth-login .auth-brand h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
}

.auth-login .auth-lead {
  max-width: 32rem;
  margin: 0 0 32px;
  color: #c5d5df;
  font-size: 15px;
  line-height: 2;
}

.auth-points {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 26rem;
}

.auth-points li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #e6eef3;
}

.auth-points em {
  flex: 0 0 28px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #8eb8c9;
}

.auth-login .auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 80px;
  background: var(--paper);
}

.auth-login .auth-card {
  width: min(420px, 100%);
  padding: 0 28px 24px;
  background: #fff;
  border: 1px solid #d4dce3;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(16, 40, 61, 0.08);
}

.auth-card-rule {
  height: 3px;
  margin: 0 -28px 22px;
  background: var(--line);
}

.auth-card-id {
  margin: 0 0 8px;
  color: #1f6f8d;
  font-size: 11px;
  font-weight: 700;
}

.auth-login .auth-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--navy);
}

.auth-login .auth-card .lede {
  margin: 0;
  color: #5c6974;
  font-size: 13px;
}

.auth-card-head { margin-bottom: 22px; }
.auth-form { display: grid; gap: 14px; }

.auth-field {
  display: grid;
  gap: 6px;
  position: relative;
}

.auth-field > span {
  font-size: 12px;
  font-weight: 700;
  color: #2a3642;
}

.auth-login .auth-card input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #c5ced6;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.auth-field:has(#password) input { padding-left: 58px; }

.auth-login .auth-card input:focus {
  outline: 2px solid #1f6f8d;
  border-color: #1f6f8d;
}

.auth-eye {
  position: absolute;
  left: 8px;
  bottom: 6px;
  height: 32px;
  border: 0;
  background: none;
  color: #5c6974;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.auth-refresh { color: #1f6f8d; font-size: 13px; font-weight: 600; }

.auth-submit {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
}

.auth-submit:hover { filter: brightness(1.08); }

.auth-login .auth-footer {
  margin: 18px 0 0;
  text-align: center;
  color: #5c6974;
  font-size: 13px;
}

.auth-login .auth-footer a {
  color: #1f6f8d;
  font-weight: 700;
}

.auth-login .site-footer { color: #6a7580; }

[data-theme="dark"] .auth-login { background: #0c1218; --paper: #0c1218; }
[data-theme="dark"] .auth-bar,
[data-theme="dark"] .auth-login .auth-brand { background: #0b1a28; }
[data-theme="dark"] .auth-login .auth-card {
  background: #131b23;
  border-color: #2a3640;
  box-shadow: none;
}
[data-theme="dark"] .auth-login .auth-card h2,
[data-theme="dark"] .auth-login .auth-field > span { color: #e8eef3; }
[data-theme="dark"] .auth-login .auth-card .lede,
[data-theme="dark"] .auth-login .auth-footer,
[data-theme="dark"] .auth-eye { color: #8e9ba6; }
[data-theme="dark"] .auth-login .auth-card input {
  background: #0e151c;
  border-color: #33424d;
  color: #e8eef3;
}
[data-theme="dark"] .auth-submit { background: #1f6f8d; }
[data-theme="dark"] .auth-login .auth-footer a,
[data-theme="dark"] .auth-refresh { color: #7eb8cc; }
[data-theme="dark"] .auth-login .site-footer { color: #8a96a1; }

@media (max-width: 980px) {
  .auth-login .auth-wrap { grid-template-columns: 1fr; }
  .auth-login .auth-brand { padding: 28px 18px 20px; min-height: 0; }
  .auth-login .auth-brand h1 { font-size: 28px; }
  .auth-plan { width: 56%; max-width: 240px; opacity: 0.22; left: auto; right: -8%; bottom: auto; top: 12%; }
  .auth-login .auth-panel { padding: 12px 14px 64px; }
  .auth-login .auth-card { width: 100%; }
  .auth-bar { padding: 10px 14px; }
  .auth-metrics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-plan .a1,
  .auth-plan .ring { animation: none; }
  .auth-plan .ring { stroke-dashoffset: 0; }
}
