/* ==========================================================================
   Tela de login — card branco sobre a imagem background-login.webp (modelo).
   Sempre em tema claro (independe do data-theme).
   ========================================================================== */
.auth-screen {
  position: relative;
  min-height: 100dvh;
  background: #eef1f3 url('/img/background-login.webp') center right / cover no-repeat;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 40px clamp(24px, 7vw, 130px);
}
.login-version {
  position: absolute; right: 18px; bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: rgba(60, 60, 60, .6);
}
.auth-screen[hidden] { display: none; }

.login-card {
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(40, 50, 60, .18);
  padding: 44px 46px 34px;
  display: flex; flex-direction: column; align-items: center;
}

.login-logo { width: 210px; max-width: 64%; height: auto; margin-bottom: 26px; }

.login-welcome { font-size: 20px; font-weight: 800; color: #3d3d3d; margin-bottom: 24px; }

.login-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.login-form .field { display: flex; flex-direction: column; gap: 7px; }
.login-form label { font-size: 14px; color: #6b6b6b; font-weight: 600; }

.login-input {
  width: 100%; font-family: inherit; font-size: 16px; color: #333;
  background: #ededed; border: 1px solid transparent; border-radius: 8px; padding: 13px 14px;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.login-input:focus {
  outline: none; background: #fff; border-color: var(--brand-l);
  box-shadow: 0 0 0 3px rgba(245, 107, 27, .15);
}

/* Campo de senha com botão de mostrar/ocultar */
.login-pass { position: relative; display: flex; }
.login-pass .login-input { padding-right: 46px; }
.login-eye {
  position: absolute; top: 0; right: 0; height: 100%; width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: #9a9a9a; padding: 0;
  border-radius: 0 8px 8px 0; transition: color .15s;
}
.login-eye:hover { color: var(--brand); }
.login-eye:focus-visible { outline: 2px solid var(--brand-l); outline-offset: -2px; }

.login-btn {
  margin-top: 10px; width: 100%; font-family: inherit; font-size: 15px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; color: #fff; background: var(--brand);
  border: none; border-radius: 8px; padding: 15px; cursor: pointer; transition: background .15s;
}
.login-btn:hover { background: var(--brand-d); }
.login-btn:disabled { opacity: .6; cursor: default; }

.login-error {
  display: none; background: #fff0f0; border: 1px solid #f3c9c9; color: #c0392b;
  font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 8px;
}
.login-error.show { display: block; }

.login-by { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.login-by .by-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: #9a9a9a; }
.login-by .by-logo { width: 96px; height: auto; opacity: .95; }

/* Tablet e telas médias: centraliza o card (o layout "herói" à esquerda fica só
   no desktop largo). */
@media (max-width: 1024px) {
  .auth-screen { justify-content: center; padding: 40px; }
}
@media (max-width: 620px) {
  .auth-screen { padding: 20px; }
  .login-card { padding: 34px 26px 28px; }
}
