@import url("variables.css");

/* =========================
   TOKENS (match estilo B)
========================= */
:root {
  --bg: #070a12;
  --panel: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);

  --text: #e8ecff;
  --muted: rgba(232, 236, 255, 0.7);

  --accent: #22d3ee;
  --accent2: #a78bfa;
  --danger: #ff4d6d;
  --success: #34d399;

  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

/* =========================
   BODY
========================= */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(
      circle at 70% 20%,
      rgba(167, 139, 250, 0.12),
      transparent 55%
    ),
    var(--bg);

  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* =========================
   CARD
========================= */
.auth-contenedor {
  width: 100%;
  max-width: 380px;
  padding: 2rem;

  border-radius: 1.6rem;
  border: 1px solid var(--border);

  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* =========================
   MOBILE FIX (manteniendo el tuyo)
========================= */
@media (max-width: 768px) {
  body {
    align-items: flex-start;
    padding-top: 7rem;
    min-height: auto;
  }

  .auth-contenedor {
    margin: 0 auto;
  }
}

.auth-contenedor h1 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  text-align: center;
  letter-spacing: 0.2px;
}

/* =========================
   FORM
========================= */
.auth-contenedor form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.auth-contenedor label {
  font-size: 0.85rem;
  color: rgba(232, 236, 255, 0.85);
}

.auth-contenedor input {
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;

  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);

  color: var(--text);
  outline: none;

  transition:
    outline 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.auth-contenedor input::placeholder {
  color: rgba(232, 236, 255, 0.55);
}

.auth-contenedor input:focus {
  outline: 3px solid rgba(34, 211, 238, 0.28);
  outline-offset: 2px;
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(0, 0, 0, 0.28);
}

/* =========================
   BUTTON
========================= */
.auth-contenedor button {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);

  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.95),
    rgba(167, 139, 250, 0.9)
  );
  color: #071018;

  font-weight: 900;
  cursor: pointer;

  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.14);
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
}

.auth-contenedor button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* =========================
   ALERTAS
========================= */
.auth-error,
.auth-exito {
  padding: 0.55rem 0.85rem;
  border-radius: 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-error {
  background: rgba(255, 77, 109, 0.16);
  color: rgba(255, 77, 109, 0.95);
  border-color: rgba(255, 77, 109, 0.25);
}

.auth-exito {
  background: rgba(52, 211, 153, 0.14);
  color: rgba(52, 211, 153, 0.95);
  border-color: rgba(52, 211, 153, 0.24);
}

/* =========================
   LINK
========================= */
.auth-link {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--muted);
}

.auth-link a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.auth-link a:hover {
  border-bottom-color: rgba(34, 211, 238, 0.65);
}
