@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --light-gray: #f3f3f3;
  
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- BASE ---------- */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  background: #f6f5f7;
}

/* ---------- CONTENEDOR PRINCIPAL ---------- */
.signup-container {
  display: flex;
  width: 900px;
  height: auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: #fff;
  margin: 20px 0;
}

/* ---------- PANEL IZQUIERDO ---------- */
.left-panel {
  background: #22407d;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  text-align: center;
}

.left-panel .logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.left-panel h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.left-panel p {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 25px;
  line-height: 1.5;
  width: 80%;
}


/* ---------- PANEL DERECHO ---------- */
.right-panel {
  flex: 1.6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

/* ---------- FORMULARIO ---------- */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 75%;
}

form h1 {
  font-size: 26px;
  margin-bottom: 20px;
}

/* ---------- CAMPOS EN DOS COLUMNAS ---------- */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

/* ---------- CAMPOS INDIVIDUALES ---------- */

/* Para los select */
select {
  color: #666; /* mismo gris que los input */
} 

/* Para placeholder del input tipo date */
input[type="date"] {
  color: #666;
}

/* Cambiar el color del placeholder de cualquier input */
input::placeholder {
  color: #666;
  opacity: 1;
}

input, select, button {
  font-family: 'Poppins' !important;
}

.input-field {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.input-field i {
  position: absolute;
  top: 16px;
  left: 15px;
  transform: none;
  color: #888;
  font-size: 14px;
}

.input-field input,
.input-field select {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: none;
  outline: none;
  background: var(--light-gray);
  border-radius: 6px;
  font-size: 13px;
  transition: 0.3s;
}

.input-field input:focus,
.input-field select:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(36, 59, 85, 0.3);
}

/* ---------- BOTÓN PRINCIPAL ---------- */
.btn-solid {
  border: none;
  outline: none;
  white-space: nowrap;
  background-color: #65A5DC;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  gap: 10px;
  width: 100%;
  max-width: 200px;
  min-height: 48px;
  box-sizing: border-box;
}

.btn-solid:hover {
  background-color: #5291c8;
}
.icon-buttons {
  display: flex;
  justify-content: center;
  gap: 40px; /* separación entre iconos */
  margin-top: 20px;
}

.icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff; /* blanco sobre azul */
  text-decoration: none;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-5px);
}

.icon-button span {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 500;
  text-align: center;
  width: 50px;
}

button:disabled {
  pointer-events: none;   
  cursor: not-allowed;   
  opacity: 0.6;           
  filter: none !important; 
}

button:disabled:hover {
  background-color: inherit !important;
  box-shadow: none !important;
  transform: none !important;
}



/* ============================= */
/* MENSAJES DE VALIDACIÓN INPUT */
/* ============================= */

.message-container {
  margin-top: 6px;
}

.message-container small {
  display: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease-in-out;
}

/* ERROR */
.message-container small.text-danger {
  background: #fdeaea;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}

.message-container small.text-success {
  background: #e9f9f0;
  color: #1e8449;
  border: 1px solid #a9dfbf;
}

.message-container small.text-danger::before {
  font-family: "Font Awesome 6 Free";
  content: "\f057"; 
  font-weight: 900;
  margin-right: 6px;
}

.message-container small.text-success::before {
  font-family: "Font Awesome 6 Free";
  content: "\f058"; 
  font-weight: 900;
  margin-right: 6px;
}

/* ANIMACIÓN */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ---------- RESPONSIVE MEJORADO ---------- */
/* ---------- RESPONSIVE MEJORADO ---------- */
@media (max-width: 1024px) {
  .signup-container {
    width: 90%;
    height: auto;
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    padding: 40px 20px;
  }

  .left-panel .logo {
    width: 120px;
  }

  .icon-buttons {
    gap: 25px;
    flex-wrap: wrap;
  }

  .icon-button span {
    font-size: 10px;
    width: auto;
  }

  .right-panel {
    width: 100%;
    padding: 30px 20px;
  }

  form {
    width: 95%;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }
}

/* ---------- TABLET ---------- */
@media (max-width: 768px) {
  .signup-container {
    width: 95%;
  }

  .left-panel {
    padding: 30px 15px;
  }

  .left-panel .logo {
    width: 100px;
  }

  form {
    width: 100%;
  }

  .icon-buttons {
    gap: 15px;
  }
}

/* ---------- MÓVIL PEQUEÑO ---------- */
@media (max-width: 480px) {
  .left-panel {
    padding: 20px 10px;
  }

  .left-panel .logo {
    width: 80px;
  }

  form h1 {
    font-size: 22px;
  }

  form p {
    font-size: 12px;
  }

  .input-field input,
  .input-field select {
    padding: 10px 12px 10px 35px;
    font-size: 13px;
  }

  .btn-solid {
    padding: 10px;
    font-size: 14px;
  }

  .icon-button i {
    font-size: 18px;
  }

  .icon-button span {
    font-size: 9px;
  }
}

/* ---------- ESPACIO ADICIONAL PARA VISIBILIDAD ---------- */
@media (max-width: 1024px) {
  body {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 40px; /* deja aire debajo */
  }

  .signup-container {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 20px;
    padding-bottom: 40px; /* más espacio en pantallas pequeñas */
  }

  .signup-container {
    margin-bottom: 0;
  }
}

.btn-loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin-loader 0.8s linear infinite;
  margin: 0 !important;
  flex-shrink: 0;
  display: none;
}

@keyframes spin-loader {
  to { transform: rotate(360deg); }
}
