* { box-sizing: border-box; }                 /* que el padding no rompa anchos */
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif; /* tipografía base */
  color: #e7e7e7;                                          /* texto claro */
  background: url("../images/background.png") no-repeat center center fixed; /* fondo fijo */
  background-size: cover;                                   /* que cubra toda la pantalla */
}

/* Portada centrada */
.hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center; /* centro vertical/horizontal */
  gap: 32px;                                    /* espacio entre bloques */
}

/* Círculo del logo 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 toque */
}
.logo-ring img {
  width: 120%; height: 120%; object-fit: cover; /* llena el círculo sin deformar */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

/* Botones / inputs estilo “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;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  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 accesible */

/* Avisos de error/ok */
.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 form (2 columnas) */
.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 a la izq. */
.register-grid .right { justify-self: end; }    /* alinea a la der. */
.register-grid button {
  grid-column: span 2;                          /* botón ocupa las 2 cols */
  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);                  /* leve “flotadita” */
}

/* separador para aire en el grid */
.grid-spacer { grid-column: span 2; height: 60px; }

/* texto de cambio de formulario */
.switch-form { text-align: center; }

/* Responsive: en celus va 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; }
}
