:root {
  --bg: #0f1216;
  --bg2: #1b1f24;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8edf3;
  --muted: #a9b2bd;
  --accent: #f4771e;
  --accent-2: #2f67c6;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Reset básico */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 900px at 10% 10%, #12151a 0%, var(--bg) 55%, #0c0f13 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* orbes como en status/tracking */
.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  animation: floaty 18s ease-in-out infinite;
}
.bg-orbs::before {
  background: linear-gradient(135deg, var(--accent), #ffb671);
  top: -120px;
  right: -120px;
}
.bg-orbs::after {
  background: linear-gradient(135deg, var(--accent-2), #3e76c4);
  bottom: -140px;
  left: -140px;
  animation-delay: -7s;
}
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -10px, 0) scale(1.02); }
}

/* Layout centrado */
.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.auth-card {
  width: min(460px, 94vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 26px 26px 22px;
}

/* Títulos */
.auth-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.auth-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 119, 30, 0.18);
}

/* Errores de Django */
.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #ffcfcf;
}
.errorlist li {
  margin: 2px 0 0;
}

.nonfield-errors {
  margin-bottom: 6px;
}

/* Botón principal */
.btn-primary {
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #141517;
  background: linear-gradient(135deg, var(--accent), #ff983f);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Link de regreso */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.auth-back:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Responsive peque */
@media (max-width: 480px) {
  .auth-card {
    padding: 22px 18px 18px;
  }
}
