* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ff9fd8 0%, #c39bff 45%, #9bc7ff 100%);
  position: relative;
  overflow-x: hidden;
  padding: 30px 15px;
}

.fondo-decorativo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.burbuja {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  filter: blur(2px);
}

.b1 { width: 120px; height: 120px; top: 8%; left: 10%; }
.b2 { width: 80px; height: 80px; top: 70%; left: 80%; }
.b3 { width: 160px; height: 160px; bottom: 5%; left: 5%; }
.b4 { width: 60px; height: 60px; top: 20%; right: 12%; }

.tarjeta {
  position: relative;
  z-index: 1;
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(180, 90, 200, 0.35);
}

h1 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #7a3d9e;
  text-align: center;
}

.emoji { font-size: 24px; }

.subtitulo {
  text-align: center;
  color: #a389b8;
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 24px;
}

.campo {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #7a3d9e;
  margin-bottom: 6px;
}

input {
  padding: 13px 16px;
  border: 2px solid #f1def0;
  border-radius: 14px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fdf7fd;
}

input:focus {
  border-color: #d68fe0;
  box-shadow: 0 0 0 4px rgba(214, 143, 224, 0.15);
}

input.invalido {
  border-color: #ff6b8b;
}

.error {
  color: #ff5577;
  font-size: 12px;
  margin-top: 4px;
  min-height: 14px;
}

.btn-registrar {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8fd0, #c589ff);
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 10px 25px rgba(197, 100, 220, 0.4);
}

.btn-registrar:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(197, 100, 220, 0.5);
}

.btn-registrar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pie {
  text-align: center;
  font-size: 13px;
  color: #a389b8;
  margin-top: 20px;
}

.pie a {
  color: #d068c9;
  font-weight: 600;
  text-decoration: none;
}

.mensaje {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 18px;
  text-align: center;
}

.mensaje.exito {
  background: #e3fbe9;
  color: #2ba24c;
}

.mensaje.fallo {
  background: #ffe6ec;
  color: #e6446a;
}

.oculto {
  display: none;
}

@media (max-width: 480px) {
  .tarjeta { padding: 32px 22px; }
}