@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --light-gray: #f3f3f3;
  --text-dark: #333;
}

/* ---------- 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: 550px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: #fff;
}

/* ---------- PANEL IZQUIERDO ---------- */
.right-panel {
  background: #22407d;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  text-align: center;
}

.right-panel .logo {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.right-panel h1 {
  font-size: 23px;
  margin-bottom: 15px;
}

.right-panel p {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 25px;
  line-height: 1.5;
  width: 80%;
}


/* ---------- PANEL DERECHO ---------- */
.left-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75rem;
}

/* ---------- FORMULARIO ---------- */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 75%;
}

form h1 {
  color: var(--grad1);
  font-size: 26px;
  margin-bottom: 20px;
}

input, select, button {
  font-family: 'Poppins' !important;
}

/* ---------- CAMPOS EN DOS COLUMNAS ---------- */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

/* ---------- CAMPOS INDIVIDUALES ---------- */
.input-field {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.input-field i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  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: 14px;
  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;
}


/* ---------- ENLACES ---------- */

/* Enlace "¿Olvidaste tu contraseña?" */
.forgot-password {
  margin-top: 18px;
  font-size: 13px;
  color: #6b6b6b; /* Color gris suave */
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: #22407d; /* Tu color personalizado al pasar el cursor */
  text-decoration: underline;
}

/* Enlace "¿Aún no tienes cuenta? Regístrate" */
.mensaje_cuenta {
  font-size: 14px;
  margin-top: 12px;
  color: #444;
  text-align: center;
}

.mensaje_cuenta a {
  color: #65A5DC; /* Cambia este color al que prefieras */
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  margin-left: 4px;
  transition: all 0.3s ease;
}

.mensaje_cuenta a:hover {
  color: #22407d; /* Color al pasar el cursor */
  text-decoration: underline;
}


/* ================= RESPONSIVE ================= */

/* Tablets */
@media screen and (max-width: 900px) {
  .signup-container {
    flex-direction: column;
    width: 80%;
    height: auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .left-panel,
  .right-panel {
    width: 100%;
    padding: 40px 20px;
  }

  .right-panel p {
    width: 90%;
  }
}

/* Móviles */
@media screen and (max-width: 600px) {
  .right-panel h1 {
    font-size: 20px;
  }

  form h1 {
    font-size: 22px;
  }

  .input-field input,
  .input-field select {
    padding: 10px 12px 10px 38px;
    font-size: 13px;
  }

  .btn-solid {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .forgot-password {
    font-size: 12px;
  }

  .mensaje_cuenta {
    font-size: 13px;
  }

  .mensaje_cuenta a {
    font-size: 14px;
  }
}

/* ---------- BOTONES CON ÍCONOS ---------- */  
.icon-buttons {  
  display: flex;  
  gap: 1rem;   
}  
  
.icon-button {  
  display: flex;  
  flex-direction: column;  
  align-items: center;  
  justify-content: center;  
  padding: 1rem;    
  text-decoration: none;  
  color: white;  
  transition: all 0.3s ease;  
  font-size: 10px;
}  
  
.icon-button:hover {    
  transform: translateY(-5px);  
}  
  
.icon-button i {  
  margin-bottom: 0.5rem;  
}  
  
.icon-button span {  
  font-size: 9px;  
  text-align: center;  
  font-weight: 500;

}

button:disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.9 !important;
  background-color: #65A5DC !important;
  color: #ffffff !important;
  filter: none !important;
  -webkit-text-fill-color: #ffffff;
}

button:disabled:hover {
  background-color: #65A5DC !important;
  box-shadow: none !important;
  transform: none !important;
}

.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); }
}
