
/* ============================================================
   ESTILOS BASE DESKTOP
   ============================================================ */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  flex: 1;
  height: 100vh;
}

/* Imagen 3/4 */
.image-side {
  flex: 3;
  background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c') 
              no-repeat center center;
  background-size: cover;
}

/* Formulario 1/4 */
.form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f7f7;
  padding: 40px;
}

.form-box {
  width: 100%;
  max-width: 400px;
  min-width: 300px;      /* 🔥 evita que se haga demasiado chico */
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-box h2 {
  margin-bottom: 20px;
  text-align: center;
}

.input-group {
  position: relative;
  margin: 10px 0;
}

.input-group input {
  width: 100%;
  padding: 12px;
  padding-right: 35px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.form-box button {
  width: 100%;
  padding: 12px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.form-box button:hover {
  background: #0056b3;
}

.welcome-img {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.welcome-img img {
  max-width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* ============================================================
   MODO MÓVIL — 100% RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {

  /* Fondo general tipo login */
  body {
    display: block;
    width: 100% !important;          /* 🔥 evita deformación */
    overflow-x: hidden !important;   /* 🔥 evita scroll lateral */
    background: linear-gradient(180deg, #0d3a8c, #1456c0);
    height: auto;
    min-height: 100vh;
  }

  .container {
    display: block !important; /* 🔥 evita comportamiento flex raro */
    width: 100%;
    height: auto;
    padding-bottom: 30px;
  }

  .image-side {
    display: none; /* 🔥 Se oculta la imagen */
  }

  .form-side {
    width: 100%;
    padding: 0;
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }

  .form-box {
    width: 90% !important;     /* 🔥 se adapta al móvil sin hacerse pequeño */
    max-width: 360px !important;
    min-width: 300px !important; /* 🔥 tamaño mínimo seguro */
    padding: 25px;
    border-radius: 14px;
    background: rgba(255,255,255,0.90);
  }

  .welcome-img img {
    width: 110px !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  .input-group input {
    height: 48px !important;
    font-size: 16px !important;
  }

  .toggle-password {
    font-size: 20px !important;
    right: 14px !important;
  }

  button {
    height: 48px !important;
    font-size: 16px !important;
  }
}