/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fondo con degradado */
body {
  height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #3b4a6b, #95b3cc);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
}

/* Contenedor */
.register-container {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 50px 40px;
  width: 500px;
}

/* Título */
.register-container h1 {
  font-family: 'Georgia', serif;
  font-size: 28px;
  color: #1b2d4a;
  margin-bottom: 10px;
  text-align: center;
}

/* Subtítulo */
.register-container p {
  font-size: 15px;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* Etiquetas */
label {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1c;
}

/* Entradas */
input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  border: 1px solid #b0c4de;
  border-radius: 8px;
  background-color: #f6faff;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  border-color: #47678f;
  outline: none;
}

/* Botón */
button {
  margin-top: 30px;
  width: 100%;
  padding: 14px;
  background-color: #2c3e5e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #47678f;
}

/* Modal fondo */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenido modal con efecto pop */
.modal-content {
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  padding: 30px 25px;
  border-radius: 20px;
  width: 350px;
  max-width: 90%;
  box-shadow: 0 0 30px #ff5f6d, 0 0 60px #ffc371;
  color: #222;
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  animation: popBounce 0.5s ease forwards;
  position: relative;
}

/* Botón cerrar */
.closeBtn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 0 5px #fff;
  user-select: none;
  transition: color 0.3s ease;
}

.closeBtn:hover {
  color: #000;
}

/* Animación pop bounce */
@keyframes popBounce {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }

  60% {
    opacity: 1;
    transform: scale(1.1) rotate(8deg);
  }

  80% {
    transform: scale(0.95) rotate(-4deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}