/* Pulse Auth — modern clean */
input, select, textarea {
  font-size: 16px !important;
}
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: #f4f6fb;
  position: relative;
}
[data-theme="dark"] .auth-page,
body.dark .auth-page { background: #0c0c0e; }

.auth-lang {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 4px;
  background: #e8ecf4;
  border-radius: 999px;
  padding: 3px;
}
.auth-lang .lang-btn {
  min-width: 42px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
}
.auth-lang .lang-btn.active {
  background: #2563eb;
  color: #fff;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 48px 0 18px;
  letter-spacing: -0.03em;
}
.auth-wave { display: inline-flex; color: #3b82f6; }
[data-theme="dark"] .auth-brand { color: #f8fafc; }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 22px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15,23,42,0.04);
}
[data-theme="dark"] .auth-card {
  background: #14141a;
  border-color: rgba(255,255,255,0.06);
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
}
[data-theme="dark"] .auth-card h1 { color: #f8fafc; }
.auth-sub {
  text-align: center;
  color: #64748b;
  margin: 0 0 22px;
  font-size: 14px;
}

.auth-alert {
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.form-group { margin-bottom: 12px; }
.input-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  transition: border-color .15s;
}
.input-icon:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.input-icon i { color: #94a3b8; font-size: 15px; }
.input-icon input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: #0f172a;
}
.pass-toggle {
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
}
[data-theme="dark"] .input-icon { background: #1a1a22; border-color: #2a2a35; }
[data-theme="dark"] .input-icon input { color: #f8fafc; }

.auth-row { display: flex; justify-content: flex-end; margin: 4px 0 14px; }
.auth-link { color: #2563eb; font-size: 13px; font-weight: 600; text-decoration: none; }

.auth-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37,99,235,.28);
}
.auth-btn:active { transform: scale(0.99); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after { background: #2a2a35; }

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.auth-social-btn.muted {
  opacity: 0.55;
  cursor: not-allowed;
}
[data-theme="dark"] .auth-social-btn {
  background: #1a1a22;
  border-color: #2a2a35;
  color: #f8fafc;
}

.auth-footer {
  text-align: center;
  margin: 18px 0 0;
  font-size: 14px;
  color: #64748b;
}
.auth-footer a { color: #2563eb; font-weight: 700; text-decoration: none; }

.auth-card-wide { max-width: 460px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.gender-row {
  display: flex;
  gap: 10px;
}
.gender-opt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.gender-opt:has(input:checked) {
  border-color: #2563eb;
  background: rgba(37,99,235,.06);
  color: #2563eb;
}
.gender-opt input { accent-color: #2563eb; }
.gender-opt .fa-mars { color: #3b82f6; }
.gender-opt .fa-venus { color: #ec4899; }
[data-theme="dark"] .gender-opt {
  border-color: #2a2a35;
  color: #e2e8f0;
}
