:root {
  --fondo: #0b0e14;
  --superficie: rgba(19, 23, 34, 0.55);
  --borde: rgba(255, 255, 255, 0.09);
  --texto: #e6e8ee;
  --texto-tenue: #9aa2b1;
  --acento: #6c8cff;
  --acento-2: #9b6cff;
  --rojo: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(108, 140, 255, 0.25), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(155, 108, 255, 0.2), transparent 45%),
    var(--fondo);
  color: var(--texto);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-marca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  text-decoration: none;
}

.auth-marca__insignia {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--acento), var(--acento-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0b0e14;
}

.auth-marca__nombre {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: var(--texto);
}

.auth-marca__icono {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-card {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 20px;
  padding: 2.25rem;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 25px 70px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-card h1 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.auth-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.auth-card > p {
  color: var(--texto-tenue);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.auth-card a {
  color: var(--acento);
  text-decoration: none;
}

.auth-card a:hover {
  text-decoration: underline;
}

.auth-card form p {
  margin: 0 0 1.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-card form p:has(input[type="checkbox"]),
.auth-card form p:has(input[type="radio"]) {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.auth-card label {
  font-size: 0.78rem;
  color: var(--texto-tenue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-card form p:has(input[type="checkbox"]) label,
.auth-card form p:has(input[type="radio"]) label {
  text-transform: none;
  font-size: 0.85rem;
  letter-spacing: normal;
  color: var(--texto);
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="number"],
.auth-card textarea {
  background: rgba(11, 14, 20, 0.6);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: var(--texto);
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.auth-card input:focus,
.auth-card textarea:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.2);
}

.auth-card input[type="checkbox"],
.auth-card input[type="radio"] {
  width: auto;
}

.auth-card button,
.auth-card a.auth-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  margin-top: 0.25rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--acento), var(--acento-2));
  color: #0b0e14;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.auth-card button:hover,
.auth-card a.auth-boton:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(108, 140, 255, 0.6);
  text-decoration: none;
}

.auth-card ul.errorlist {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 10px;
  color: var(--rojo);
  font-size: 0.82rem;
}

.auth-card hr {
  border: none;
  border-top: 1px solid var(--borde);
  margin: 1.5rem 0;
}

.auth-mensajes {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.auth-mensajes li {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: rgba(108, 140, 255, 0.12);
  border: 1px solid rgba(108, 140, 255, 0.3);
  font-size: 0.85rem;
}

.auth-shell-nav {
  text-align: center;
  margin-top: 1.25rem;
}

.auth-shell-nav a {
  color: var(--texto-tenue);
  font-size: 0.82rem;
  text-decoration: none;
  margin: 0 0.5rem;
}

.auth-shell-nav a:hover {
  color: var(--texto);
}
