:root{
  --bg:#0b1020;
  --surface:#0f162d;
  --border:#1b2440;
  --text:#e7ecf5;
  --muted:#90a0b6;
  --primary:#6ea8fe;
  --primary-2:#4f87f7;
  --accent:#36d399;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans";
  color:var(--text);
  background:linear-gradient(180deg,var(--bg),#090d1b);
  display:flex;
  flex-direction:column;
}

/* Top bar (minimal) */
.auth-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
}
.auth-brand{
  display:flex; align-items:center; gap:8px; color:inherit; text-decoration:none;
}
.auth-logo{ height:24px }
.auth-controls{ display:flex; align-items:center; gap:8px }
.auth-toggle, .auth-lang{
  border:1px solid var(--border);
  background:#0b1127;
  color:var(--text);
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
}

/* Layout */
main{ flex:1; display:flex; align-items:center; justify-content:center; padding:20px }
.auth{ width:100%; max-width:420px }
.auth-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:32px;
  box-shadow:var(--shadow);
  text-align:center;
}

.auth-card h2{ margin:0 0 10px; font-size:26px }
.auth-sub{ margin:0 0 24px; font-size:15px; color:var(--muted) }

.form-group{ text-align:left; margin-bottom:16px }
.form-group label{ display:block; margin-bottom:6px; font-size:14px; color:var(--muted) }
.form-group input{
  width:100%; padding:12px; border-radius:10px; border:1px solid var(--border);
  background:transparent; color:var(--text); font-size:15px;
}

.auth-actions{ display:flex; justify-content:flex-end; margin-bottom:16px }
.auth-actions .link{ font-size:14px; color:var(--primary); text-decoration:none }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:12px; font-weight:600; cursor:pointer;
  transition:transform .15s ease, box-shadow .25s ease;
}
.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#0b1020; padding:12px; border:1px solid #7fb5ff;
  box-shadow:0 6px 16px rgba(110,168,254,.35);
}
.btn.primary:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(110,168,254,.25) }
.btn.full{ width:100% }

.auth-alt{ margin-top:18px; font-size:14px; color:var(--muted) }
.auth-alt .link{ margin-left:6px; font-weight:600; color:var(--primary) }
.form-msg{ margin-top:12px; font-size:14px }

/* Light theme */
:root[data-theme="light"]{
  --bg:#f7f9ff;
  --surface:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --border: #072b61;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}
:root[data-theme="light"] html,
:root[data-theme="light"] body{
  background:linear-gradient(180deg,#f7f9ff,#ffffff);
}
:root[data-theme="light"] .auth-toggle,
:root[data-theme="light"] .auth-lang{
  background:#f3f4f6; color:#111827; border-color:var(--border);
}


.btn.secondary {
  background: var(--accent, #22c55e); /* سبز */
  color: #fff;
  border: none;
  margin-top: 0.75rem; /* فاصله از بالا */
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.btn.secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #9ca3af; /* خاکستری وقتی غیرفعال شد */
}
