.auth-page {
  align-items: center;
  background: radial-gradient(circle at top, var(--color-primary-soft), var(--color-bg-soft));
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.auth-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  max-width: 460px;
  padding: 2rem;
  width: 100%;
}

.auth-card.wide {
  max-width: 720px;
}

.auth-card h1 {
  margin: 0 0 1.5rem;
}

.auth-link {
  color: var(--color-primary);
  display: block;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.auth-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

/* ════════════════════════════════════════════════════════════
   AUTH LOGIN 2.0  —  al-* namespace
   Sora (Google) + Vazirmatn fallback. Dark split layout.
   ════════════════════════════════════════════════════════════ */

@keyframes al-spin       { to { transform: rotate(360deg); } }
@keyframes al-glow-pulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* Root */
.al {
  background: #060F1E;
  display: flex;
  font-family: 'Sora', 'Vazirmatn', system-ui, sans-serif;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Ambient orbs */
.al-orb { border-radius: 50%; filter: blur(130px); pointer-events: none; position: absolute; }
.al-orb--1 { background: rgba(14,166,120,0.38);  height: 560px; right: -130px; top: -190px;  width: 560px; animation: al-glow-pulse 9s  ease-in-out infinite; }
.al-orb--2 { background: rgba(56,189,248,0.14);  height: 420px; bottom: -90px; left: 8%;    width: 420px; animation: al-glow-pulse 14s ease-in-out infinite 3s; }
.al-orb--3 { background: rgba(139,92,246,0.11);  height: 320px; left: 45%;    top: 40%;    width: 320px; animation: al-glow-pulse 18s ease-in-out infinite 7s; }

/* ─── Right panel (visual) — first in RTL flex = rightmost ─── */
.al-right {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 3rem 2rem;
  position: relative;
  width: 50%;
}

.al-grid-bg {
  background-image:
    linear-gradient(rgba(14,166,120,0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,166,120,0.042) 1px, transparent 1px);
  background-size: 44px 44px;
  inset: 0;
  position: absolute;
}

/* Orbital */
.al-solar {
  align-items: center;
  display: flex;
  height: 340px;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
  width: 340px;
}

.al-ring {
  border-radius: 50%;
  border-style: solid;
  border-width: 1.5px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
.al-ring-dot {
  border-radius: 50%;
  display: block;
  height: 10px;
  left: 50%;
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
  width: 10px;
}

.al-core {
  align-items: center;
  display: flex;
  height: 100px;
  justify-content: center;
  position: absolute;
  width: 100px;
  z-index: 2;
}
.al-core-inner {
  align-items: center;
  background: linear-gradient(135deg, #0EA678, #0A7A5A);
  border-radius: 50%;
  display: flex;
  height: 100px;
  justify-content: center;
  width: 100px;
}
.al-core-inner span {
  color: white;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.al-right-brand { margin-bottom: 2rem; text-align: center; }
.al-right-brand h2 { color: white; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.4px; margin: 0 0 0.4rem; }
.al-right-brand p  { color: rgba(255,255,255,0.35); font-size: 0.88rem; margin: 0; }

.al-feats { display: flex; flex-direction: column; gap: 0.6rem; width: 280px; }
.al-feat {
  align-items: center;
  background: rgba(255,255,255,0.046);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  color: rgba(255,255,255,0.62);
  display: flex;
  font-size: 0.87rem;
  font-weight: 600;
  gap: 0.8rem;
  padding: 0.72rem 1rem;
}
.al-feat-icon {
  align-items: center;
  background: rgba(14,166,120,0.14);
  border-radius: 10px;
  color: #0EA678;
  display: inline-flex;
  font-size: 1rem;
  height: 34px;
  justify-content: center;
  width: 34px;
  flex-shrink: 0;
}

/* ─── Left panel (form) — second in RTL flex = leftmost ─── */
.al-left {
  align-items: flex-start;
  background: rgba(255,255,255,0.018);
  border-right: 1px solid rgba(255,255,255,0.055);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 8vw, 6rem);
  position: relative;
  width: 50%;
  z-index: 1;
}

.al-brand {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
  text-decoration: none;
}
.al-brand-icon {
  align-items: center;
  background: linear-gradient(135deg, #0EA678, #0A7A5A);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(14,166,120,0.38);
  color: white;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 900;
  height: 50px;
  justify-content: center;
  width: 50px;
}
.al-brand-name strong { color: white; display: block; font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.al-brand-name small  { color: rgba(255,255,255,0.35); font-size: 0.73rem; }

.al-form-wrap { max-width: 420px; width: 100%; }

.al-eyebrow {
  background: rgba(14,166,120,0.14);
  border: 1px solid rgba(14,166,120,0.25);
  border-radius: 999px;
  color: #4ade80;
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding: 0.3rem 1rem;
}
.al-title {
  color: white;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin: 0 0 0.45rem;
}
.al-sub {
  color: rgba(255,255,255,0.36);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

/* Fields */
.al-form  { display: flex; flex-direction: column; }
.al-field { margin-bottom: 1.1rem; }
.al-field-inner { position: relative; }

.al-input {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: white;
  direction: rtl;
  font-family: inherit;
  font-size: 1rem;
  height: 60px;
  outline: none;
  padding: 22px 1.1rem 8px;
  transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
  width: 100%;
}
.al-input:focus {
  background: rgba(14,166,120,0.07);
  border-color: #0EA678;
  box-shadow: 0 0 0 3px rgba(14,166,120,0.16);
}
.al-input::placeholder { color: transparent; }

.al-label {
  color: rgba(255,255,255,0.35);
  font-size: 0.95rem;
  pointer-events: none;
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: top 0.22s, font-size 0.22s, color 0.22s, transform 0.22s;
}
.al-input:focus ~ .al-label,
.al-input:not(:placeholder-shown) ~ .al-label {
  color: #0EA678;
  font-size: 0.7rem;
  font-weight: 700;
  top: 10px;
  transform: none;
}

.al-eye {
  align-items: center;
  background: none;
  border: none;
  bottom: 0;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  justify-content: center;
  left: 0.85rem;
  padding: 0;
  position: absolute;
  top: 0;
  transition: color 0.15s;
  width: 36px;
}
.al-eye:hover { color: rgba(255,255,255,0.72); }
.al-eye span  { align-items: center; display: flex; }

.al-error { color: #f87171; font-size: 0.77rem; margin: 0.35rem 0.2rem 0; }

/* Remember + forgot row */
.al-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0 1.5rem;
}
.al-check { align-items: center; cursor: pointer; display: flex; gap: 0.55rem; user-select: none; }
.al-check input[type="checkbox"] { display: none; }
.al-check-box {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  flex-shrink: 0;
  height: 18px;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  width: 18px;
}
.al-check input:checked ~ .al-check-box {
  background: #0EA678;
  border-color: #0EA678;
}
.al-check input:checked ~ .al-check-box::after {
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  content: '';
  height: 5px;
  left: 3px;
  position: absolute;
  top: 4px;
  transform: rotate(-45deg);
  width: 9px;
}
.al-check-label { color: rgba(255,255,255,0.48); font-size: 0.85rem; }
.al-forgot { color: rgba(14,166,120,0.85); font-size: 0.85rem; text-decoration: none; transition: color 0.15s; }
.al-forgot:hover { color: #0EA678; text-decoration: underline; }

/* Submit */
.al-submit {
  align-items: center;
  background: linear-gradient(135deg, #0EA678 0%, #0B8C66 100%);
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 38px rgba(14,166,120,0.44);
  color: white;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  transition: box-shadow 0.15s;
  width: 100%;
}
.al-submit:disabled { cursor: not-allowed; opacity: 0.65; }

.al-spin {
  animation: al-spin 0.7s linear infinite;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  display: block;
  height: 22px;
  width: 22px;
}

.al-foot { margin-top: 1.75rem; text-align: center; }
.al-back {
  align-items: center;
  color: rgba(255,255,255,0.27);
  display: inline-flex;
  font-size: 0.85rem;
  gap: 0.45rem;
  text-decoration: none;
  transition: color 0.15s;
}
.al-back:hover { color: rgba(255,255,255,0.62); }
.al-back i { font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .al { flex-direction: column-reverse; }
  .al-left {
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.055);
    min-height: 100vh;
    padding: 2.5rem 1.75rem;
    width: 100%;
  }
  .al-right { display: none; }
  .al-brand { margin-bottom: 2rem; }
  .al-form-wrap { max-width: 100%; }
}
