/* assets/css/login.css - versión corregida para evitar overflow y logos cortados
   Control estricto de anchos para que el logo no se haga gigante en monitores grandes.
*/

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

/* Evitar scroll horizontal inesperado */
html, body { overflow-x: hidden; }

.login-page {
  background: #ffffff;
  min-height: 100vh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
}

/* Contenedor principal: fila flexible con control de anchos */
.login-wrapper {
  display: flex;
  flex-wrap: nowrap;
  min-height: 100vh;
  align-items: stretch;
  justify-content: center;
}

/* LEFT: formulario — ancho máximo fijo y centrado */
.login-left {
  flex: 0 0 46%;           /* ocupa ~46% del viewport */
  max-width: 820px;        /* evita que el form se haga enorme */
  min-width: 360px;
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

/* Contenedor interno centrado y con ancho limitado */
.login-container {
  width: 100%;
  max-width: 520px;
}

/* Logo: fuerza tamaño máximo y centrado dentro del contenedor */
.login-logo { margin-bottom: 10px; text-align: center; }
.logo-img {
  display: inline-block;
  width: auto;
  max-width: 220px;  /* control estricto del tamaño del logo */
  height: auto;
  margin: 0 auto 10px;
}

/* Título centrado */
.page-title { text-align: center; margin: 6px 0 10px 0; }
.page-title h3 { margin: 0; font-size: 26px; font-weight: 600; color: #222; }

/* Descripción centrada */
.login-desc { color: #6b6f75; margin-bottom: 18px; font-size: 15px; text-align: center; }

/* Inputs y botón */
.input-group-addon { background: #fff; border-right: none; }
.form-control { border-radius: 6px; box-shadow: none; height: 44px; }
.btn-login {
  margin-top: 12px; margin-bottom: 16px;
  background: linear-gradient(180deg, #9fa8ff 0%, #8a76f8 100%);
  border-color: transparent; color: #fff; font-weight: 600;
  padding: 12px 18px; border-radius: 8px; font-size: 18px;
  box-shadow: 0 6px 18px rgba(138,118,248,0.16);
}

/* Info card */
.info-card { margin-top: 22px; padding: 18px; border: 1px solid #e6e9ef; border-radius: 8px; background: #fff; }

/* Footer */
.login-footer { margin-top: 18px; color: #8a8f99; text-align: center; }

/* RIGHT: hero como background para un control perfecto del recorte */
.login-right {
  flex: 0 0 54%;
  max-width: 1200px;     /* limita cuánto puede crecer en pantallas enormes */
  min-width: 420px;
  position: relative;
  overflow: hidden;
  background-color: #021626; /* fallback color */
  background-image: url('/assets/images/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center; /* centrar por defecto */
}

/* Si prefieres la columna derecha con scroll vertical independiente (opcional) */
.login-right.hero-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Ajustes para pantallas ultraanchas: evita que la hero se vuelva excesiva */
@media (min-width: 1600px) {
  .login-left { max-width: 900px; }
  .login-right { max-width: 1400px; background-position: center center; }
}

/* Responsive: en tablets/móviles ocultar hero y usar full width para form */
@media (max-width: 991px) {
  .login-wrapper { flex-wrap: wrap; }
  .login-right { display: none; }
  .login-left {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    padding: 30px 20px;
  }
  .logo-img { max-width: 180px; }
  .page-title h3 { font-size: 22px; }
  .btn-login { font-size: 16px; padding: 10px 14px; }
}

/* Seguridad: evitar que imágenes dentro desborden el contenedor */
img { max-width: 100%; height: auto; display: block; }