/* =============================================================
   IMR Tickets — Login Staff  ·  Split 52/48 (Handoff Jun 2026)
   Se carga DESPUÉS de login.css. Panel de marca + formulario limpio.
   v2: altura auto + scroll (fix botón cortado), alineación consistente.
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

/* login.css fija body{height:100%} y text-align:center → lo neutralizamos */
html, body#loginBody, #loginBody {
  height: auto !important;
  min-height: 100vh !important;
  margin: 0 !important;
  font-family: 'DM Sans','Helvetica Neue',system-ui,sans-serif !important;
  text-align: left !important;
  background: #fff !important;
  display: flex !important;
  align-items: stretch !important;
}

/* Ocultar la foto de stock y el blur */
#brickwall, #background, #background-compat, #blur { display: none !important; }

/* ---------- Panel de marca (izquierda 52%) ---------- */
#imrBrand {
  flex: 0 0 52%;
  max-width: 52%;
  background: linear-gradient(135deg, #0c2d5e 0%, #1a56a5 60%, #0d7d72 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}
#imrBrand::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
#imrBrand .imr-brand-inner { position: relative; z-index: 1; max-width: 440px; }
#imrBrand .imr-brand-logo { font-size: 42px; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 28px; }
#imrBrand .imr-brand-logo span { color: #5eead4; }
#imrBrand h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 14px; color: #fff; }
#imrBrand p { font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.6; margin: 0 0 28px; }
#imrBrand ul { list-style: none; margin: 0; padding: 0; }
#imrBrand ul li { font-size: 14px; color: rgba(255,255,255,0.92); padding: 8px 0 8px 28px; position: relative; }
#imrBrand ul li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: #5eead4; font-weight: 800; }

/* ---------- Formulario (derecha 48%) ---------- */
#loginBox {
  position: static !important;
  left: auto !important; top: auto !important; margin: 0 !important;
  width: auto !important; max-width: none !important; min-width: 0 !important;
  flex: 1 1 48%;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-align: left !important;
  /* centra verticalmente el bloque; si el contenido excede el alto, la página scrollea */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 48px max(8%, 32px) !important;
}
#loginBox:after { display: none !important; }

/* Todos los hijos directos: bloque de ancho controlado y alineado a la izquierda */
#loginBox > * { width: 100% !important; max-width: 360px !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box !important; }

#loginBox #logo, #loginBox h1#logo { margin: 0 0 14px 0 !important; }
#loginBox #logo a { height: auto !important; display: inline-block !important; text-align: left !important; }
#loginBox #logo a img { max-height: 46px !important; max-width: 200px !important; }
#loginBox .valign-helper { display: none !important; }

#loginBox #login-message, #loginBox h3#login-message { text-align: left !important; margin: 0 0 12px 0 !important; color: #dc2626 !important; }
#loginBox .banner { text-align: left !important; }
#loginBox .banner small { font-size: 13px !important; line-height: 1.6 !important; color: #475569 !important; }

#loginBox form { width: 100% !important; max-width: 360px !important; }
#loginBox form fieldset { border: none !important; padding: 0 !important; margin: 0 !important; }

#loginBox input[type="text"], #loginBox input[type="password"] {
  display: block !important;
  width: 100% !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  margin: 0 0 14px 0 !important;
  background: #fff !important;
  color: #0f172a !important;
}
#loginBox input[type="text"]:focus, #loginBox input[type="password"]:focus {
  border-color: #1a56a5 !important;
  box-shadow: 0 0 0 3px rgba(26,86,165,.08) !important;
  outline: none !important;
}
#loginBox ::placeholder { color: #94a3b8 !important; }

#loginBox #reset-link, #loginBox a#reset-link {
  display: inline-block !important;
  color: #1a56a5 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin: 0 0 16px 0 !important;
  text-align: left !important;
}
#loginBox h3 { margin: 0 0 12px 0 !important; }

#loginBox button[type=submit], #loginBox .submit.button, #loginBox button.submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  float: none !important;
  background: #1a56a5 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin: 0 !important;
}
#loginBox button[type=submit]:hover, #loginBox .submit.button:hover { background: #0c2d5e !important; }

#loginBox .or hr { border: none !important; border-top: 1px solid #e2e8f0 !important; margin: 18px 0 !important; }
#loginBox .external-auth { text-align: left !important; }

#loginBox #company { margin: 22px 0 0 0 !important; }
#loginBox #company .content { color: #94a3b8 !important; font-size: 12px !important; text-align: left !important; }

#poweredBy {
  position: fixed !important;
  bottom: 14px !important; right: 20px !important;
  margin: 0 !important; opacity: .45;
}

/* ---------- Responsivo: ocultar panel de marca ---------- */
@media (max-width: 768px) {
  #loginBody { flex-direction: column !important; align-items: stretch !important; }
  #imrBrand { display: none !important; }
  #loginBox {
    flex: 1 1 auto !important;
    align-items: center !important;
    padding: 40px 24px !important;
  }
  #loginBox > * { max-width: 380px !important; }
  #poweredBy { display: none !important; }
}

/* =============================================================================
   ███ TEMA OSCURO NAVY (login) — panel de formulario oscuro
   El panel de marca izquierdo ya es la gradiente navy de marca.
   ============================================================================= */
html, body#loginBody, #loginBody { background: #0a1729 !important; }
#loginBox { color: #e8eef7 !important; }
#loginBox #logo a img { filter: brightness(0) invert(1) !important; }
#loginBox .banner small { color: #9fb3cf !important; }
#loginBox #login-message { color: #f87171 !important; }
#loginBox input[type="text"], #loginBox input[type="password"] {
  background: #0e2438 !important; border-color: #24405f !important; color: #e8eef7 !important;
}
#loginBox input[type="text"]:focus, #loginBox input[type="password"]:focus {
  border-color: #3b82f6 !important; box-shadow: 0 0 0 3px rgba(59,130,246,.18) !important;
}
#loginBox ::placeholder { color: #6b819e !important; }
#loginBox button[type=submit], #loginBox .submit.button, #loginBox button.submit { background: #3b82f6 !important; }
#loginBox button[type=submit]:hover, #loginBox .submit.button:hover { background: #2563eb !important; }
#loginBox #reset-link, #loginBox a#reset-link { color: #6cb0ff !important; }
#loginBox #company .content { color: #6b819e !important; }
