#login-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 99999;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(390px, .78fr);
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #0c0d0f;
  font-family: 'Poppins', sans-serif;
}

html:has(#login-overlay:not([style*="display: none"])),
body:has(#login-overlay:not([style*="display: none"])) {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

.mla-login-hero {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #101114 url('login-autopecas-hero-v2.png') center center / cover no-repeat;
}

.mla-login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, .16) 0%, rgba(7, 8, 10, .04) 52%, rgba(7, 8, 10, .8) 100%),
    linear-gradient(0deg, rgba(7, 8, 10, .9) 0%, transparent 52%);
}

.mla-login-hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(34px, 5vw, 82px);
  right: clamp(34px, 5vw, 82px);
  bottom: clamp(38px, 6vh, 74px);
  max-width: 720px;
  color: #fff;
}

.mla-login-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #ff6a21;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mla-login-hero-kicker::before {
  content: '';
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #ff5a1f;
  box-shadow: 0 0 18px rgba(255, 90, 31, .72);
}

.mla-login-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 4.25vw, 68px);
  line-height: .98;
  letter-spacing: -2px;
  text-wrap: balance;
}

.mla-login-hero h1 strong { color: #ff5a1f; }

.mla-login-hero p {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .74);
  font: 500 15px/1.65 'Roboto', sans-serif;
}

.mla-login-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 48px clamp(28px, 4vw, 64px);
  box-sizing: border-box;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 31, .11), transparent 32%),
    linear-gradient(145deg, #17191d 0%, #0e0f11 68%);
  border-left: 1px solid rgba(255, 255, 255, .07);
}

.mla-login-panel::before,
.mla-login-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 106, 33, .16);
  pointer-events: none;
}

.mla-login-panel::before { width: 210px; height: 210px; top: -105px; right: -70px; }
.mla-login-panel::after { width: 120px; height: 120px; top: -60px; right: -26px; }

.mla-login-content { width: min(100%, 430px); }

.mla-login-brand {
  display: block;
  width: min(290px, 82%);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, .48));
}

.mla-login-welcome { margin-bottom: 30px; text-align: center; }
.mla-login-welcome h2 { margin: 0; color: #fff; font-size: 30px; font-weight: 800; }
.mla-login-welcome p { margin: 9px 0 0; color: #8c9098; font: 500 13px/1.5 'Roboto', sans-serif; }

.mla-login-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(22, 24, 28, .86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
  backdrop-filter: blur(14px);
}

.mla-login-error {
  display: none;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(248, 113, 113, .55);
  border-radius: 9px;
  background: rgba(127, 29, 29, .28);
  color: #fca5a5;
  font-size: 12px;
  text-align: center;
}

.mla-login-field { margin-bottom: 18px; }
.mla-login-field:last-of-type { margin-bottom: 24px; }
.mla-login-field label {
  display: block;
  margin-bottom: 7px;
  color: #a9acb3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.mla-login-input-wrap { position: relative; }
.mla-login-input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #34373d;
  border-radius: 9px;
  outline: 0;
  background: #101114;
  color: #fff;
  font: 500 13px 'Roboto', sans-serif;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.mla-login-input.has-action { padding-right: 48px; }
.mla-login-input:focus {
  border-color: #ff5a1f;
  background: #131519;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .13);
}
.mla-login-input::placeholder { color: #60646d; }

.mla-login-eye {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  padding: 4px;
  border: 0;
  background: transparent;
  color: #8c9098;
  cursor: pointer;
  font-size: 16px;
}

#btn-login {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff6a21, #ee431c);
  color: #fff;
  font: 800 13px 'Poppins', sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(238, 67, 28, .25);
  transition: transform .18s, filter .18s, box-shadow .18s;
}
#btn-login:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 15px 34px rgba(238, 67, 28, .34); }
#btn-login:disabled { cursor: wait; filter: grayscale(.25); transform: none; }

.mla-login-card #btn-login + .btn {
  display: block;
  width: 100%;
  margin: 13px 0 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #a9acb3;
  box-shadow: none;
  font: 700 10px 'Poppins', sans-serif;
  letter-spacing: .35px;
  text-align: center;
  text-transform: uppercase;
}
.mla-login-card #btn-login + .btn:hover { color: #ff6a21; background: transparent; transform: none; }

.mla-login-restricted { margin-top: 18px; color: #666a72; font-size: 10px; letter-spacing: .5px; text-align: center; }
.mla-login-footer { margin-top: 24px; color: #555962; font-size: 9px; line-height: 1.6; text-align: center; }

@media (max-height: 740px) and (min-width: 901px) {
  .mla-login-hero-copy { bottom: clamp(24px, 4vh, 38px); }
  .mla-login-hero-kicker { margin-bottom: 12px; font-size: 10px; }
  .mla-login-hero h1 { max-width: 620px; font-size: clamp(34px, 4vw, 54px); line-height: .96; }
  .mla-login-hero p { margin-top: 14px; font-size: 12px; line-height: 1.5; }
  .mla-login-panel { padding: 18px clamp(24px, 3vw, 44px); }
  .mla-login-content { width: min(100%, 400px); }
  .mla-login-brand { width: min(235px, 72%); margin-bottom: 10px; }
  .mla-login-welcome { margin-bottom: 13px; }
  .mla-login-welcome h2 { font-size: 25px; }
  .mla-login-welcome p { margin-top: 4px; font-size: 11px; }
  .mla-login-card { padding: 20px 24px; border-radius: 15px; }
  .mla-login-error { margin-bottom: 11px; padding: 8px 11px; font-size: 10px; }
  .mla-login-field { margin-bottom: 11px; }
  .mla-login-field:last-of-type { margin-bottom: 15px; }
  .mla-login-field label { margin-bottom: 5px; font-size: 9px; }
  .mla-login-input { height: 41px; }
  #btn-login { min-height: 43px; font-size: 11px; }
  .mla-login-card #btn-login + .btn { margin-top: 8px; }
  .mla-login-restricted { margin-top: 10px; font-size: 9px; }
  .mla-login-footer { margin-top: 9px; font-size: 8px; }
}

@media (max-width: 900px) {
  #login-overlay { grid-template-columns: 1fr; }
  .mla-login-hero { display: none; }
  .mla-login-panel { height: 100%; min-height: 0; border-left: 0; }
}

@media (max-width: 480px) {
  .mla-login-panel { padding: 26px 18px; align-items: flex-start; }
  .mla-login-content { margin-top: max(18px, 6vh); }
  .mla-login-brand { width: min(250px, 76%); margin-bottom: 22px; }
  .mla-login-welcome { margin-bottom: 22px; }
  .mla-login-welcome h2 { font-size: 25px; }
  .mla-login-card { padding: 23px 20px; border-radius: 15px; }
}
