:root {
  --iehes-login-logo: none;
  --iehes-login-bg: #070812;
  --iehes-login-surface: #ffffff;
  --iehes-login-text: #141625;
  --iehes-login-muted: #687083;
  --iehes-login-line: #e7e9f0;
  --iehes-login-primary: #6c63ff;
  --iehes-login-primary-strong: #5148e5;
  --iehes-login-violet: #7c3aed;
  --iehes-login-cyan: #22d3ee;
  --iehes-login-success: #1d9b69;
  --iehes-login-danger: #c23b4a;
  --iehes-login-radius: 26px;
  --iehes-login-ease: cubic-bezier(.2, .8, .2, 1);
}

body.login.iehes-login-gerencial {
  min-height: 100vh;
  margin: 0;
  color: var(--iehes-login-text);
  background:
    radial-gradient(900px 620px at 8% 0%, rgba(124, 58, 237, .18), transparent 64%),
    radial-gradient(720px 540px at 94% 95%, rgba(34, 211, 238, .10), transparent 62%),
    var(--iehes-login-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.login.iehes-login-gerencial * {
  box-sizing: border-box;
}

body.login.iehes-login-gerencial::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) .75px, transparent .75px);
  background-size: 22px 22px;
  content: "";
  opacity: .16;
  pointer-events: none;
}

body.login.iehes-login-gerencial #login {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 48px));
  min-height: 680px;
  margin: clamp(24px, 5vh, 64px) auto;
  padding: 54px 58px 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--iehes-login-radius);
  background: var(--iehes-login-surface);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .46);
}

body.login.iehes-login-gerencial #login > h1 {
  width: 100%;
  margin: 0 0 26px;
  text-align: left;
}

body.login.iehes-login-gerencial #login > h1 a {
  display: block;
  width: min(100%, 216px);
  height: 72px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-image: var(--iehes-login-logo);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  white-space: nowrap;
}

.iehes-login-hero {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  min-height: 100%;
  padding: 66px 64px 48px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(108, 99, 255, .20), transparent 42%),
    linear-gradient(165deg, #0c1020 0%, #111329 56%, #171230 100%);
}

.iehes-login-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(145deg, #000 10%, transparent 78%);
  pointer-events: none;
}

.iehes-login-hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  pointer-events: none;
}

.iehes-login-hero__glow--one {
  top: -170px;
  right: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(108, 99, 255, .38), transparent 68%);
}

.iehes-login-hero__glow--two {
  bottom: -150px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(34, 211, 238, .17), transparent 70%);
}

.iehes-login-hero__content,
.iehes-login-hero__footer {
  position: relative;
  z-index: 2;
}

.iehes-login-hero__content {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  justify-content: center;
}

.iehes-login-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.iehes-login-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--iehes-login-cyan);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, .10), 0 0 22px rgba(34, 211, 238, .8);
}

.iehes-login-hero h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 4.2vw, 61px);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.iehes-login-hero h2 strong {
  display: block;
  color: #b9b5ff;
  font-weight: inherit;
}

.iehes-login-hero__description {
  max-width: 510px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
  font-weight: 510;
  line-height: 1.7;
}

.iehes-login-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.iehes-login-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 700;
}

.iehes-login-benefits__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(185, 181, 255, .21);
  border-radius: 9px;
  background: rgba(108, 99, 255, .12);
  color: #b9b5ff;
}

.iehes-login-benefits__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.iehes-login-hero__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.iehes-login-hero__footer-separator {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
}

.iehes-login-card-heading {
  margin-bottom: 22px;
}

.iehes-login-card-heading__kicker {
  margin: 0 0 8px;
  color: var(--iehes-login-primary-strong);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.iehes-login-card-heading h2 {
  margin: 0;
  color: var(--iehes-login-text);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 790;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.iehes-login-card-heading > p:not(.iehes-login-card-heading__kicker) {
  margin: 12px 0 0;
  color: var(--iehes-login-muted);
  font-size: 14px;
  line-height: 1.55;
}

.iehes-login-security-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #687083;
  font-size: 11px;
  font-weight: 750;
}

.iehes-login-security-status__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: #f0f1f6;
  color: #687083;
}

.iehes-login-security-status.is-connected {
  color: var(--iehes-login-success);
}

.iehes-login-security-status.is-connected .iehes-login-security-status__icon {
  background: #eaf8f2;
  color: var(--iehes-login-success);
}

.iehes-login-security-status svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

body.login.iehes-login-gerencial #login form {
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.login.iehes-login-gerencial #login form .input,
body.login.iehes-login-gerencial #login input[type="text"],
body.login.iehes-login-gerencial #login input[type="email"],
body.login.iehes-login-gerencial #login input[type="password"] {
  width: 100%;
  min-height: 52px;
  margin: 8px 0 18px;
  padding: 0 15px;
  border: 1px solid var(--iehes-login-line);
  border-radius: 13px;
  outline: none;
  background: #f8f9fc;
  color: var(--iehes-login-text);
  font: inherit;
  font-size: 15px;
  box-shadow: none;
  transition: border-color .18s var(--iehes-login-ease), box-shadow .18s var(--iehes-login-ease), background-color .18s var(--iehes-login-ease);
}

body.login.iehes-login-gerencial #login form .input:hover,
body.login.iehes-login-gerencial #login input[type="text"]:hover,
body.login.iehes-login-gerencial #login input[type="email"]:hover,
body.login.iehes-login-gerencial #login input[type="password"]:hover {
  border-color: #cfd3df;
  background: #ffffff;
}

body.login.iehes-login-gerencial #login form .input:focus,
body.login.iehes-login-gerencial #login input[type="text"]:focus,
body.login.iehes-login-gerencial #login input[type="email"]:focus,
body.login.iehes-login-gerencial #login input[type="password"]:focus {
  border-color: var(--iehes-login-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, .13);
}

body.login.iehes-login-gerencial #login label {
  color: #323647;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .01em;
}

body.login.iehes-login-gerencial #login .user-pass-wrap {
  margin-bottom: 0;
}

body.login.iehes-login-gerencial #login .wp-pwd {
  position: relative;
}

body.login.iehes-login-gerencial #login .wp-pwd .input {
  padding-right: 52px;
}

body.login.iehes-login-gerencial #login .button.wp-hide-pw {
  position: absolute;
  top: 8px;
  right: 5px;
  width: 42px;
  min-width: 42px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #72798c;
  box-shadow: none;
}

body.login.iehes-login-gerencial #login .button.wp-hide-pw:focus {
  border-radius: 10px;
  outline: 2px solid var(--iehes-login-primary);
  outline-offset: -7px;
}

body.login.iehes-login-gerencial #login .forgetmenot {
  display: flex;
  align-items: center;
  min-height: 38px;
}

body.login.iehes-login-gerencial #login .forgetmenot label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--iehes-login-muted);
  font-size: 12px;
  font-weight: 650;
}

body.login.iehes-login-gerencial #login input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #cbd0dc;
  border-radius: 5px;
  box-shadow: none;
}

body.login.iehes-login-gerencial #login input[type="checkbox"]:checked {
  border-color: var(--iehes-login-primary);
  background: var(--iehes-login-primary);
}

body.login.iehes-login-gerencial #login input[type="checkbox"]:checked::before {
  width: 21px;
  height: 21px;
  margin: -2px 0 0 -3px;
  color: #ffffff;
}

body.login.iehes-login-gerencial #login .submit {
  margin: 0;
}

body.login.iehes-login-gerencial #login .button-primary,
body.login.iehes-login-gerencial #login input[type="submit"] {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--iehes-login-primary), var(--iehes-login-violet));
  color: #ffffff;
  font-size: 13px;
  font-weight: 780;
  line-height: 48px;
  text-shadow: none;
  box-shadow: 0 12px 25px rgba(108, 99, 255, .24);
  transition: transform .18s var(--iehes-login-ease), box-shadow .18s var(--iehes-login-ease), filter .18s var(--iehes-login-ease);
}

body.login.iehes-login-gerencial #login .button-primary:hover,
body.login.iehes-login-gerencial #login input[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, .31);
}

body.login.iehes-login-gerencial #login .button-primary:focus,
body.login.iehes-login-gerencial #login input[type="submit"]:focus {
  outline: 3px solid rgba(108, 99, 255, .24);
  outline-offset: 3px;
  box-shadow: 0 12px 25px rgba(108, 99, 255, .24);
}

body.login.iehes-login-gerencial #login form.is-submitting .button-primary,
body.login.iehes-login-gerencial #login form.is-submitting input[type="submit"] {
  cursor: wait;
  filter: saturate(.75);
  opacity: .8;
  transform: none;
}

.iehes-login-caps-notice {
  display: none;
  margin: -10px 0 14px;
  color: #9c6d16;
  font-size: 11px;
  font-weight: 750;
}

.iehes-login-caps-notice.is-visible {
  display: block;
}

body.login.iehes-login-gerencial #login_error,
body.login.iehes-login-gerencial #login .message,
body.login.iehes-login-gerencial #login .success {
  margin: 0 0 20px;
  padding: 13px 14px 13px 16px;
  border: 0;
  border-left: 3px solid var(--iehes-login-primary);
  border-radius: 10px;
  background: #f2f1ff;
  color: #4a4e60;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: none;
}

body.login.iehes-login-gerencial #login_error {
  border-left-color: var(--iehes-login-danger);
  background: #fff1f3;
  color: #7d2a35;
}

body.login.iehes-login-gerencial #login .success {
  border-left-color: var(--iehes-login-success);
  background: #ecf9f3;
  color: #247050;
}

body.login.iehes-login-gerencial #login #nav,
body.login.iehes-login-gerencial #login #backtoblog,
body.login.iehes-login-gerencial #login .privacy-policy-page-link {
  margin: 18px 0 0;
  padding: 0;
  color: var(--iehes-login-muted);
  text-align: center;
  font-size: 11px;
}

body.login.iehes-login-gerencial #login #backtoblog {
  margin-top: 10px;
}

body.login.iehes-login-gerencial #login a {
  color: #5750ce;
  font-weight: 650;
  text-decoration: none;
  transition: color .16s ease;
}

body.login.iehes-login-gerencial #login a:hover {
  color: #332cb8;
}

body.login.iehes-login-gerencial #login a:focus {
  border-radius: 3px;
  outline: 2px solid var(--iehes-login-primary);
  outline-offset: 3px;
  box-shadow: none;
}

body.login.iehes-login-gerencial.iehes-security-connected #login a[href*="action=lostpassword"],
body.login.iehes-login-gerencial.iehes-security-connected #login a[href*="action=rp"],
body.login.iehes-login-gerencial.iehes-security-connected #login a[href*="action=resetpass"],
body.login.iehes-login-gerencial.iehes-security-connected #login a[href*="iehes_reset_disabled"] {
  display: none !important;
}

body.login.iehes-login-gerencial .language-switcher {
  position: relative;
  z-index: 2;
  margin: -42px auto 24px;
}

body.login.iehes-login-gerencial .language-switcher select {
  min-height: 34px;
  border-color: rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: #111329;
  color: rgba(255, 255, 255, .75);
}

body.login.iehes-login-gerencial .language-switcher .button {
  min-height: 34px;
  border-color: rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

/*
 * Mantiene todo el contenido nativo de WordPress en la columna derecha sin
 * usar padding porcentual (que algunos temas calculan contra el viewport).
 */
body.login.iehes-login-gerencial #login > :not(.iehes-login-hero) {
  width: 35%;
  margin-left: auto;
  margin-right: 0;
}

body.login.iehes-login-gerencial.interim-login #login {
  width: min(430px, calc(100% - 28px));
  min-height: 0;
  margin: 16px auto;
  padding: 34px;
}

body.login.iehes-login-gerencial.interim-login .iehes-login-hero,
body.login.iehes-login-gerencial.interim-login .iehes-login-card-heading > p:not(.iehes-login-card-heading__kicker),
body.login.iehes-login-gerencial.interim-login .iehes-login-security-status {
  display: none;
}

body.login.iehes-login-gerencial.interim-login #login > :not(.iehes-login-hero) {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 900px) {
  body.login.iehes-login-gerencial #login {
    display: flex;
    width: min(620px, calc(100% - 32px));
    min-height: 0;
    flex-direction: column;
    margin: 24px auto;
    padding: 0 34px 36px;
  }

  body.login.iehes-login-gerencial #login > * {
    order: 3;
  }

  body.login.iehes-login-gerencial #login > :not(.iehes-login-hero) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.login.iehes-login-gerencial #login > .iehes-login-hero {
    position: relative;
    inset: auto;
    order: 0;
    width: auto;
    min-height: 0;
    margin: 0 -34px 30px;
    padding: 34px;
  }

  body.login.iehes-login-gerencial #login > h1 {
    order: 1;
    margin-bottom: 22px;
  }

  body.login.iehes-login-gerencial #login > .iehes-login-card-heading {
    order: 2;
  }

  .iehes-login-hero__content {
    min-height: 0;
  }

  .iehes-login-hero h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .iehes-login-hero__description {
    margin-top: 18px;
    font-size: 14px;
  }

  .iehes-login-benefits {
    margin-top: 24px;
  }

  .iehes-login-hero__footer {
    margin-top: 30px;
  }

  body.login.iehes-login-gerencial .language-switcher {
    margin: 0 auto 22px;
  }
}

@media (max-width: 520px) {
  body.login.iehes-login-gerencial #login {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 0 22px 28px;
    border-radius: 21px;
  }

  body.login.iehes-login-gerencial #login > .iehes-login-hero {
    margin: 0 -22px 26px;
    padding: 28px 22px;
  }

  body.login.iehes-login-gerencial #login > h1 a {
    height: 60px;
  }

  .iehes-login-eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .iehes-login-benefits {
    display: grid;
    gap: 10px;
  }

  .iehes-login-card-heading h2 {
    font-size: 29px;
  }

  body.login.iehes-login-gerencial #login .forgetmenot {
    float: none;
    margin-bottom: 10px;
  }

  body.login.iehes-login-gerencial #login .submit {
    float: none;
  }

  body.login.iehes-login-gerencial #login .button-primary,
  body.login.iehes-login-gerencial #login input[type="submit"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.login.iehes-login-gerencial *,
  body.login.iehes-login-gerencial *::before,
  body.login.iehes-login-gerencial *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (forced-colors: active) {
  body.login.iehes-login-gerencial #login,
  .iehes-login-hero,
  body.login.iehes-login-gerencial #login form .input {
    border: 1px solid CanvasText;
  }
}
