/* -----------------------------
   1. RESET BÁSICO
----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -----------------------------
 2. FUENTE Y FONDO DE LA PÁGINA
----------------------------- */
body {
  font-family: 'Montserrat', sans-serif;
  /* Fondo dividido horizontalmente:
     mitad superior turquesa (#00a7b5) y mitad inferior blanca */
  background: linear-gradient(to bottom, #00a7b5 50%, #ffffff 50%);
  margin: 0;
}

/* -----------------------------
 3. CONTENEDOR PRINCIPAL (TARJETA BLANCA)
----------------------------- */
.main-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 80px auto; /* Separa la tarjeta para que se note el fondo */
  background-color: #fff;
}

/* -----------------------------
 4. SECCIÓN IZQUIERDA: FORMULARIO DE REGISTRO
----------------------------- */
.form-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Logo */
.logo-container {
  margin-bottom: 20px;
}
.logo {
  width: 150px;
  height: auto;
}

/* Títulos */
.welcome {
  font-size: 28px;
  color: #00a7b5;
  margin-bottom: 2px;
}
.subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #333;
  margin-bottom: 30px;
}

/* Formulario de registro */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Separación entre filas */
}
.register-form .form-row {
  width: 100%;
}
/* Filas con dos columnas */
.register-form .form-row.two-cols {
  display: flex;
  gap: 20px;
}
.register-form .form-row.two-cols input,
.register-form .form-row.two-cols select {
  flex: 1;
}

/* Inputs y selects */
.register-form input,
.register-form select {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  width: 100%;
  outline: none;
}
.register-form input:focus,
.register-form select:focus {
  border-color: #00a7b5;
}

/* Botón principal para registrar */
.btn-register {
  padding: 12px;
  background-color: #00a7b5;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: lighter;
  cursor: pointer;
  max-width: 220px;
  transition: background-color 0.3s ease;
}
.btn-register:hover {
  background-color: #00a7b5;
}

/* -----------------------------
 5. SECCIÓN DERECHA: IMAGEN
----------------------------- */
.image-section {
  flex: 1;
  /* padding: 40px; */
  display: flex;
  align-items: flex-end;  /* Alinea la imagen hacia el fondo */
  justify-content: center;
  background-color: #fff;
  min-width: 300px; /* Asegura un mínimo de ancho */
}
.person-image {
  width: 100%;          /* Ocupa el 100% del contenedor */
  max-width: 400px;     /* Limita la imagen a 400px */
  height: auto;
  object-fit: contain;  /* Mantiene la proporción de la imagen */
}

/* -----------------------------
 6. FOOTER
----------------------------- */
footer {
  background-color: #4a2370;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #fff;
  margin-top: -4.7%;
}

/* -----------------------------
 7. RESPONSIVIDAD
----------------------------- */
@media (max-width: 768px) {
  .main-wrapper {
      flex-direction: column;
      margin: 20px;
  }
  .form-section,
  .image-section {
      padding: 20px;
  }
  .register-form .form-row.two-cols {
      flex-direction: column;
      gap: 0;
  }
}

#link_footer{
  color:#fff;
  text-decoration: none;
}


#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}