* { box-sizing: border-box; }                 /* padding/borde no agrandan el ancho */
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif; /* tipografía base */
  color: #e7e7e7;                                          /* color de texto */
  background: url("../images/background.png") no-repeat center center fixed; /* fondo fijo */
  background-size: cover;                                   /* que cubra toda la pantalla */
}

/* ===== Sección principal (centra todo vertical y horizontal) ===== */
.hero {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;                              /* espacio entre bloques */
}

/* ===== Logo dentro de un círculo con sombra ===== */
.logo-ring {
  width: 300px; height: 300px; border-radius: 50%;
  background: #2D2D2D;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 12px 32px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transform: translateY(-60px);           /* lo sube un poco */
}
.logo-ring img {
  width: 120%; height: 120%; object-fit: cover;            /* rellena el círculo */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));           /* sombrita al logo */
}

/* ===== Inputs/botones tipo “pastilla” ===== */
.pill {
  min-width: 220px;
  padding: 12px 22px;
  border-radius: 999px;                                    /* súper redondo */
  border: 1px solid rgba(255,255,255,.25);
  background: #e9e9ee;
  color: #333;
  font-size: 16px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 6px 16px rgba(0,0,0,.25);
  text-align: center;
  transition: .2s;                                         /* hover/focus suave */
}
input.pill::placeholder { color: #8a8a8a; font-weight: 500; }
input.pill:focus { box-shadow: 0 0 0 3px rgba(117, 30, 168, .25); } /* foco visible */

/* ===== Mensajes de error/éxito ===== */
.error-message, .success-message {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
}

/* ===== Grid del formulario de login/registro ===== */
.register-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.register-grid .left { justify-self: start; }              /* alinea columna izq. */
.register-grid .right { justify-self: end; }               /* alinea columna der. */
.register-grid button { 
  grid-column: span 2;
  justify-self: center; min-width: 240px;
}

/* ===== Botón principal ===== */
.btn-register {
  padding: 14px 22px; border-radius: 10px; border: none;
  font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, #751EA8, #2D2D2D);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  cursor: pointer; transition: background .2s, transform .2s; margin-top: 25px;
}
.btn-register:hover {
  background: linear-gradient(135deg, #8a2be2, #3a3a3a);
  transform: translateY(-2px);                              /* levantadita */
}

/* separador para meter aire en el grid */
.grid-spacer { grid-column: span 2; height: 60px; }

/* texto para cambiar de formulario (login/registro) */
.switch-form { text-align: center; }

/* ===== Responsive: en móviles se apila todo a 1 columna ===== */
@media (max-width: 520px) {
  .register-grid {
    grid-template-columns: 1fr;
    row-gap: 14px; column-gap: 0;
  }
  .btn-register {
    grid-column: span 1; min-width: 200px;
  }
}
