/* ==========================================================================
   WiseTech Corporate Login Screen Styles
   Paleta Oficial:
   - Azul WiseTech:  #060BF4
   - Azul Profundo:  #021349 / #03144C
   - Blanco Puro:    #FFFFFF
   - Texto / Muted:  #0F172A / #64748B
   ========================================================================== */

:root {
  --wi-blue: #060BF4;
  --wi-blue-hover: #0408C2;
  --wi-navy: #021349;
  --wi-navy-deep: #010E36;
  --wi-text-dark: #0F172A;
  --wi-text-muted: #64748B;
  --wi-border: #E2E8F0;
  --wi-border-focus: #060BF4;
  --wi-card-bg: #FFFFFF;
  --wi-card-shadow: 0 24px 70px -8px rgba(0, 0, 0, 0.45), 0 10px 30px -4px rgba(2, 19, 73, 0.35);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body.login-body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--wi-navy);
  color: var(--wi-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--wi-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader__label {
  color: #FFFFFF !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Layout General */
.login-wrapper {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100vw;
  position: relative;
  background-color: var(--wi-navy);
  background-image: url('../../../img/login-hero-wisetech.png?v=5');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  overflow-x: hidden;
}

/* ==========================================================================
   Lado Izquierdo: Spacer transparente para que el hero de fondo respire
   ========================================================================== */
.login-hero {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background-color: transparent;
  pointer-events: none;
}

.login-hero-bg {
  display: none;
}

/* ==========================================================================
   Lado Derecho: Fondo con Tarjeta Flotante sobre la transición
   ========================================================================== */
.login-panel {
  flex: 0 0 auto;
  width: 460px;
  max-width: 44vw;
  min-width: 380px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  margin-right: clamp(15px, 4vw, 60px);
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  z-index: 10;
}

/* Elementos Geométricos Decorativos (Isométricos) */
.login-decor-hex-top {
  position: absolute;
  top: 18px;
  right: 68px;
  width: 90px;
  height: 105px;
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
}

.login-decor-cube-bottom {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 155px;
  height: 175px;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 10px 24px rgba(6, 11, 244, 0.4));
}

/* ==========================================================================
   Tarjeta Blanca Flotante
   ========================================================================== */
.login-card-box {
  width: 100%;
  max-width: 410px;
  background: var(--wi-card-bg);
  border-radius: 24px;
  padding: 42px 38px 42px;
  box-shadow: var(--wi-card-shadow);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Logo de WiseTech */
.login-brand-header {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
}

.login-logo-img {
  width: 195px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Título y Subtítulo */
.login-card-text {
  margin-bottom: 26px;
}

.login-card-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--wi-navy);
  letter-spacing: -0.5px;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.login-card-desc {
  font-size: 13.5px;
  color: var(--wi-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   Formulario de Acceso
   ========================================================================== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wi-text-dark);
  margin: 0;
  line-height: 1.2;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--wi-border);
  border-radius: 10px;
  background-color: #FFFFFF;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
}

.login-input-wrap:focus-within {
  border-color: var(--wi-blue);
  box-shadow: 0 0 0 3px rgba(6, 11, 244, 0.14);
}

.login-input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  margin-right: 10px;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.login-input-wrap:focus-within .login-input-icon {
  color: var(--wi-blue);
}

.login-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 14px;
  color: var(--wi-text-dark);
  font-family: inherit;
  outline: none !important;
  box-shadow: none !important;
}

.login-input::placeholder {
  color: #94A3B8;
  font-size: 13.5px;
}

/* Botón Revelar Contraseña */
.login-password-toggle {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.18s ease, transform 0.15s ease;
  outline: none;
}

.login-password-toggle:hover {
  color: var(--wi-text-dark);
}

.login-password-toggle:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Botón de Ingreso
   ========================================================================== */
.login-submit-btn {
  height: 48px;
  width: 100%;
  border-radius: 10px;
  background-color: var(--wi-blue) !important;
  border: 1px solid var(--wi-blue) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(6, 11, 244, 0.3);
  text-decoration: none !important;
}

.login-submit-btn:hover {
  background-color: var(--wi-blue-hover) !important;
  border-color: var(--wi-blue-hover) !important;
  box-shadow: 0 6px 20px rgba(6, 11, 244, 0.42);
  transform: translateY(-1.5px);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-btn-arrow {
  transition: transform 0.18s ease;
}

.login-submit-btn:hover .login-btn-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Footer Corporativo
   ========================================================================== */
.login-footer {
  width: 100%;
  max-width: 410px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  margin-top: 20px;
  position: relative;
  z-index: 10;
  font-family: inherit;
  user-select: none;
}

/* ==========================================================================
   Adaptabilidad Responsive (Móviles, Tablets y Escritorio)
   ========================================================================== */
/* Tablets Landscape y Laptops medianas (921px a 1120px) */
@media (max-width: 1120px) {
  .login-panel {
    width: 420px;
    margin-right: 20px;
    padding: 24px 10px;
  }
  .login-card-box {
    max-width: 390px;
    padding: 36px 30px;
  }
}

/* Tablets Portrait y Móviles Grandes (hasta 920px) */
@media (max-width: 920px) {
  .login-wrapper {
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-image: none !important;
    background-color: var(--wi-navy) !important;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
  }
  .login-hero {
    display: none;
  }
  .login-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 460px;
    min-width: 0;
    margin-right: 0;
    padding: 24px 20px;
  }
  .login-card-box {
    width: 100%;
    max-width: 420px;
    padding: 36px 30px 30px;
    border-radius: 22px;
  }
  .login-decor-hex-top {
    top: 10px;
    right: 20px;
    width: 70px;
    height: 80px;
  }
  .login-decor-cube-bottom {
    bottom: -15px;
    right: -15px;
    width: 120px;
    height: 135px;
  }
}

/* Móviles Pequeños (hasta 480px) */
@media (max-width: 480px) {
  .login-panel {
    padding: 16px 14px;
    max-width: 100%;
  }
  .login-card-box {
    padding: 28px 20px 22px;
    border-radius: 18px;
  }
  .login-logo-img {
    width: 165px;
  }
  .login-card-title {
    font-size: 22px;
  }
  .login-card-desc {
    font-size: 13px;
  }
  .login-input-wrap {
    height: 44px;
  }
  .login-submit-btn {
    height: 44px;
    font-size: 14.5px;
  }
  .login-footer {
    font-size: 12px;
    margin-top: 16px;
  }
}