/* ===== Auth pages ===== */
body.auth {
  background: radial-gradient(900px 400px at 20% 10%, rgba(59,130,246,0.35), transparent 60%),
              radial-gradient(900px 400px at 90% 80%, rgba(16,185,129,0.22), transparent 55%),
              var(--bg);
  color: var(--text);
}

.auth-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}

.auth-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.auth-header h1 { font-size: 20px; margin: 0; }
.auth-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }

.brand-dot {
  width: 14px; height: 14px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,0.2)),
              linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 30px rgba(59,130,246,0.35);
  margin-top: 6px;
}

.auth-form { display: grid; gap: 12px; margin-top: 12px; }

.field { display: grid; gap: 6px; }
.field span { font-size: 12px; color: var(--muted); }
.field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.12);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
}
html[data-bs-theme="light"] .field input { background: rgba(255,255,255,0.75); }


/* Alerts (login/registre) */
.alert {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.alert--danger {
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.08);
}

/* Links sota el formulari */
.auth-links {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.auth-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}

.auth-links a:hover {
  color: var(--text);
  border-bottom-color: rgba(255,255,255,0.42);
}
