/* Login visual inspirado en la referencia. La estructura y el formulario existentes se conservan. */
.login-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #031735;
}

.login-page .auth-shell {
  display: block;
  width: 100%;
  min-height: 100svh;
  margin: 0 !important;
  padding: 0;
  background: transparent;
}

.login-layout {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: 100svh;
  grid-template-columns: minmax(600px, 58fr) minmax(510px, 42fr);
  grid-template-rows: minmax(690px, 1fr) 76px;
  overflow: hidden;
  background: #062957;
}

.login-layout::before {
  content: none;
  display: none;
}

.login-layout::after {
  content: none;
  display: none;
}

.login-showcase {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  padding: 52px clamp(54px, 4.7vw, 92px) 34px;
}

.login-showcase::before,
.login-showcase::after,
.login-circuit-lines {
  content: none;
  display: none;
}

.login-brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: #fff;
  transform: translateX(-10px);
}

.login-academia-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.login-mindjobs-logo {
  display: block;
  width: auto;
  height: 59px;
  object-fit: contain;
}

.login-brand-mark {
  width: 70px;
  height: 59px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-brand-mark .brand-dot {
  fill: #ffc126;
  stroke: none;
}

.login-brand-copy {
  display: grid;
  color: #fff;
  font-size: 33px;
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.045em;
}

.login-brand-copy strong {
  font: inherit;
}

.login-brand-copy span {
  color: #ffc021;
}

.login-promo-copy {
  position: absolute;
  z-index: 3;
  top: 25.6%;
  left: clamp(54px, 4.7vw, 92px);
  width: min(530px, 53%);
  max-width: 530px;
}

.login-promo-copy h1 {
  position: relative;
  margin: 0 0 49px;
  color: #fff;
  font-size: clamp(48px, 3.25vw, 64px);
  font-weight: 790;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-shadow: 0 3px 16px rgba(0, 10, 31, .2);
}

.login-promo-copy h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -25px;
  width: 59px;
  height: 5px;
  border-radius: 99px;
  background: #ffc021;
}

.login-promo-copy h1 span {
  color: #ffc021;
}

.login-promo-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 17px;
  font-weight: 420;
  line-height: 1.72;
}

.login-promo-copy p strong {
  color: #ffc021;
  font-weight: 800;
}

.login-visual {
  position: absolute;
  z-index: 2;
  top: 42%;
  right: auto;
  left: 34%;
  width: min(600px, 56%);
  transform: none;
  pointer-events: none;
}

.login-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 28px rgba(0, 8, 28, .34));
}

.login-benefits {
  position: absolute;
  z-index: 3;
  right: auto;
  bottom: 38px;
  left: clamp(54px, 4.7vw, 92px);
  width: 700px;
  max-width: calc(100% - 108px);
  grid-template-columns: 190px 236px minmax(0, 1fr);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.login-benefits article {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: none;
  width: auto;
  padding: 0 26px;
  margin-right: 0;
  border-right: 0;
}

.login-benefits article:first-child {
  padding-left: 0;
}

.login-benefits article:not(:first-child) {
  padding-left: 40px;
  padding-right: 12px;
}

.login-benefits article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 62px;
  background: rgba(255, 255, 255, .28);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.benefit-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-benefits strong,
.login-benefits small {
  display: block;
}

.login-benefits strong {
  color: #fff;
  font-size: 14px;
  font-weight: 760;
}

.login-benefits small {
  margin-top: 6px;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  line-height: 1.45;
}

.login-panel {
  position: relative;
  z-index: 3;
  isolation: isolate;
  align-self: center;
  width: min(548px, calc(100% - 72px));
  min-height: 0;
  margin: 28px auto;
  padding: 64px 43px 54px;
  transform: translate(clamp(-101px, -5.1vw, -70px), 17px);
  overflow: visible;
  border: 1px solid rgba(228, 234, 244, .92);
  border-radius: 18px;
  background: #fff;
  color: #0a275d;
  box-shadow: 0 26px 62px rgba(0, 9, 35, .28);
}

.login-panel::before,
.login-panel::after {
  content: none;
  display: none;
}

.login-panel-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}

.login-user-icon {
  display: grid;
  flex: 0 0 72px;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid #dce8fb;
  border-radius: 50%;
  background: #eef4fd;
  color: #1265d9;
  box-shadow: none;
}

.login-user-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-panel-heading h2 {
  margin: 0;
  color: #0a275d;
  font-size: 29px;
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.login-panel-heading p {
  margin: 9px 0 0;
  color: #526a94;
  font-size: 14px;
  line-height: 1.45;
}

.login-panel-content {
  display: block;
  margin-top: 47px;
}

.login-form {
  display: grid;
  gap: 11px;
}

.login-form > label {
  color: #0a275d;
  font-size: 14px;
  font-weight: 750;
}

.login-input-wrap {
  position: relative;
  margin-bottom: 20px;
}

.login-input-wrap > svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 18px;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  fill: none;
  stroke: #235da8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page .login-input-wrap input {
  width: 100%;
  height: 62px;
  padding: 0 54px;
  border: 1px solid #c9d4e5;
  border-radius: 9px;
  background: #fff;
  color: #122d59;
  font-size: 14px;
  box-shadow: none;
}

.login-page .login-input-wrap input::placeholder {
  color: #8290aa;
}

.login-page .login-input-wrap input:focus {
  border-color: #1f69d2;
  outline: 3px solid rgba(31, 105, 210, .13);
}

.password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 9px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #1474ea;
  cursor: pointer;
}

.password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle:hover {
  color: #084fae;
}

.login-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -1px 0 31px;
}

.login-form-meta a {
  color: #0874ef;
  font-size: 14px;
  text-decoration: none;
}

.login-form-meta a:hover {
  text-decoration: underline;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #445a7d;
  font-size: 14px;
  font-weight: 500;
}

.login-page .login-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1767d7;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font: 780 16px/1 inherit;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(0, 0, 0, .2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .28);
}

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

.login-register {
  margin: 26px 0 0;
  color: #5f7090;
  font-size: 14px;
  text-align: center;
}

.login-register span {
  color: #0874ef;
  font-weight: 760;
}

.login-footer {
  position: relative;
  z-index: 4;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 0 clamp(54px, 4.7vw, 92px);
  border-top: 1px solid rgba(132, 168, 210, .16);
  background: #031d42;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.login-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.login-footer svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mantiene la lectura compacta de los tres beneficios en pantallas de escritorio amplias. */
@media (min-width: 1381px) {
  .login-benefits {
    display: block;
    width: 830px;
    height: 68px;
  }

  .login-benefits article {
    position: absolute;
    top: 0;
    padding: 0;
  }

  .login-benefits article:first-child {
    left: 0;
    width: 240px;
  }

  .login-benefits article:nth-child(2),
  .login-benefits article:nth-child(3) {
    padding: 0;
  }

  .login-benefits article:nth-child(2) {
    left: 280px;
    width: 240px;
  }

  .login-benefits article:nth-child(3) {
    left: 560px;
    width: 270px;
  }
}

@media (max-width: 1380px) {
  .login-layout {
    grid-template-columns: minmax(530px, 55fr) minmax(500px, 45fr);
  }

  .login-showcase {
    padding-right: 42px;
    padding-left: 52px;
  }

  .login-promo-copy,
  .login-benefits {
    left: 52px;
  }

  .login-promo-copy {
    width: min(475px, 58%);
  }

  .login-promo-copy h1 {
    font-size: clamp(45px, 4vw, 57px);
  }

  .login-visual {
    right: auto;
    left: 30%;
    width: 56%;
  }

  .login-benefits article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 0 16px;
  }

  .benefit-icon {
    width: 36px;
  }

  .benefit-icon svg {
    width: 27px;
    height: 27px;
  }

  .login-panel {
    width: min(540px, calc(100% - 48px));
    padding-right: 40px;
    padding-left: 40px;
  }
}

@media (min-width: 861px) and (max-height: 860px) {
  .login-layout {
    grid-template-rows: minmax(640px, 1fr) 68px;
  }

  .login-showcase {
    padding-top: 35px;
  }

  .login-brand-mark {
    width: 54px;
    height: 46px;
  }

  .login-brand-copy {
    font-size: 25px;
  }

  .login-mindjobs-logo {
    height: 46px;
  }

  .login-promo-copy {
    top: 20%;
  }

  .login-promo-copy h1 {
    margin-bottom: 40px;
    font-size: clamp(42px, 3.5vw, 53px);
  }

  .login-promo-copy h1::after {
    bottom: -20px;
  }

  .login-promo-copy p {
    font-size: 15px;
  }

  .login-visual {
    top: 40%;
    left: 30%;
    width: 56%;
  }

  .login-benefits {
    bottom: 15px;
  }

  .login-panel {
    width: min(525px, calc(100% - 48px));
    margin: 18px auto;
    padding: 39px 38px 39px;
  }

  .login-user-icon {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .login-user-icon svg {
    width: 32px;
    height: 32px;
  }

  .login-panel-heading h2 {
    font-size: 27px;
  }

  .login-panel-content {
    margin-top: 30px;
  }

  .login-page .login-input-wrap input {
    height: 54px;
  }

  .login-input-wrap {
    margin-bottom: 12px;
  }

  .login-form-meta {
    margin-bottom: 22px;
  }

  .login-register {
    margin-top: 20px;
  }

  .login-footer {
    min-height: 68px;
  }
}

@media (max-width: 1080px) {
  .login-layout {
    grid-template-columns: minmax(430px, 49fr) minmax(470px, 51fr);
  }

  .login-promo-copy {
    width: calc(100% - 104px);
  }

  .login-promo-copy h1 {
    font-size: 44px;
  }

  .login-promo-copy p {
    font-size: 15px;
  }

  .login-visual {
    top: 45%;
    right: auto;
    left: 24%;
    width: 65%;
  }

  .login-benefits {
    right: 28px;
    width: auto;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-benefits article {
    display: flex;
    justify-content: center;
    padding: 0 10px;
  }

  .login-benefits small {
    display: none;
  }
}

@media (max-width: 860px) {
  .login-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: start;
    min-height: 100svh;
    overflow: visible;
  }

  .login-layout::before {
    top: -210px;
    left: 48%;
    width: 390px;
    height: 390px;
  }

  .login-layout::after {
    display: none;
  }

  .login-showcase {
    display: block;
    min-height: 190px;
    padding: 26px 28px 18px;
  }

  .login-brand-mark {
    width: 48px;
    height: 41px;
  }

  .login-brand-copy {
    font-size: 23px;
  }

  .login-brand {
    gap: 16px;
  }

  .login-academia-brand {
    gap: 10px;
  }

  .login-mindjobs-logo {
    height: 41px;
  }

  .login-promo-copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: none;
    margin-top: 22px;
  }

  .login-promo-copy h1 {
    margin-bottom: 0;
    font-size: clamp(31px, 7vw, 42px);
  }

  .login-promo-copy h1::after,
  .login-promo-copy p,
  .login-visual,
  .login-benefits {
    display: none;
  }

  .login-panel {
    width: min(600px, calc(100% - 32px));
    margin: 8px auto 26px;
    padding: 38px 38px 32px;
    transform: none;
  }

  .login-footer {
    grid-column: 1;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    min-height: 104px;
    padding: 19px 24px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .login-brand {
    gap: 11px;
    transform: none;
  }

  .login-mindjobs-logo {
    height: 33px;
  }

  .login-showcase {
    min-height: 160px;
    padding: 22px 20px 14px;
  }

  .login-promo-copy {
    margin-top: 17px;
  }

  .login-promo-copy h1 {
    font-size: 30px;
  }

  .login-panel {
    width: calc(100% - 24px);
    margin-top: 5px;
    padding: 29px 22px 27px;
    border-radius: 15px;
  }

  .login-panel-heading {
    align-items: flex-start;
    gap: 15px;
  }

  .login-user-icon {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .login-user-icon svg {
    width: 27px;
    height: 27px;
  }

  .login-panel-heading h2 {
    font-size: 25px;
  }

  .login-panel-heading p {
    margin-top: 6px;
    font-size: 13px;
  }

  .login-panel-content {
    margin-top: 29px;
  }

  .login-page .login-input-wrap input {
    height: 54px;
  }

  .login-input-wrap {
    margin-bottom: 13px;
  }

  .login-form-meta {
    align-items: flex-start;
    margin-bottom: 23px;
  }

  .login-form-meta a {
    max-width: 150px;
    text-align: right;
  }

  .login-register {
    margin-top: 22px;
  }

  .login-footer {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-submit {
    transition: none;
  }
}

/* Ajuste exclusivamente visual del acceso en teléfonos y tablets. */
@media (max-width:860px) {
  .login-page,
  .login-page .auth-shell,
  .login-layout {
    width:100%;
    max-width:100%;
    margin:0;
    overflow-x:hidden;
  }

  .login-page,
  .login-layout {
    background:#031d42;
  }

  .login-layout {
    grid-template-rows:auto auto minmax(104px,1fr);
  }

  .login-showcase {
    width:100%;
    background:#062957;
    text-align:center;
  }

  .login-brand {
    display:flex;
    width:100%;
    align-items:center;
    justify-content:center;
    transform:none;
  }

  .login-promo-copy {
    margin:23px auto 0;
    text-align:center;
  }

  .login-promo-copy h1 {
    text-align:center;
    line-height:1.04;
  }

  .login-panel {
    justify-self:center;
    transform:none;
  }

  .login-footer {
    box-sizing:border-box;
    width:100%;
    max-width:none;
    min-height:104px;
    margin:0;
    align-self:stretch;
    justify-self:stretch;
    background:#031d42;
  }

  .login-footer>span {
    justify-content:center;
    text-align:center;
  }
}

@media (max-width:560px) {
  .login-showcase {
    min-height:168px;
    padding:34px 14px 18px;
  }

  .login-brand {
    gap:10px;
  }

  .login-academia-brand {
    gap:8px;
  }

  .login-brand-mark {
    width:43px;
    height:37px;
  }

  .login-brand-copy {
    font-size:20px;
  }

  .login-mindjobs-logo {
    max-width:42%;
    height:34px;
  }

  .login-promo-copy {
    margin-top:20px;
  }

  .login-promo-copy h1 {
    margin-inline:auto;
    font-size:29px;
  }

  .login-panel {
    width:min(440px,calc(100% - 32px));
    margin:0 auto 22px;
    padding:28px 20px 26px;
    border-radius:16px;
  }

  .login-form-meta {
    gap:12px;
  }

  .login-form-meta a {
    max-width:none;
    flex:0 0 auto;
    font-size:12.5px;
    line-height:1.3;
    text-align:right;
    white-space:nowrap;
  }

  .login-remember {
    flex:0 0 auto;
    font-size:12.5px;
    white-space:nowrap;
  }

  .login-page .login-input-wrap input {
    font-size:16px;
  }

  .login-footer {
    gap:10px;
    min-height:116px;
    padding:20px 18px calc(20px + env(safe-area-inset-bottom));
    line-height:1.45;
  }

  .login-footer>span {
    width:100%;
  }
}

@media (max-width:370px) {
  .login-form-meta {
    align-items:flex-start;
    flex-direction:column;
  }

  .login-form-meta a {
    text-align:left;
  }
}
