/* V2.6.10 — corrige a linha Senha/Mostrar para não quebrar ou comprimir o rótulo. */
body.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f9fe;
}

/* Mantém o cartão e o rodapé como um único conjunto centralizado, como no modelo. */
.login-app-shell {
  justify-content: center;
  padding-block: 24px;
}

.login-app-shell .legal-banner { display: none; }

.login-app-shell > .flash-stack {
  width: min(430px, 100%);
  margin: 0 auto 12px;
}

.login-app-shell .login-shell {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 0;
}

.login-app-shell .login-card {
  box-sizing: border-box;
  width: min(430px, 100%);
  max-width: 430px;
  padding: 24px 26px 22px;
  border: 1px solid #d4e0f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 57, 91, .08);
}

.login-app-shell .login-logo {
  min-height: 112px;
  margin: 0 0 8px;
}

.login-app-shell .login-logo img {
  max-width: min(100%, 230px);
  max-height: 104px;
}

.login-app-shell .login-logo-fallback {
  width: 84px;
  height: 84px;
  font-size: 28px;
}

.login-app-shell .login-heading { margin: 4px 0 0; }
.login-app-shell .login-heading h1 {
  margin: 0 0 5px;
  color: #173451;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.login-app-shell .login-heading p {
  margin: 0;
  color: #758398;
  font-size: 13px;
  line-height: 1.5;
}

.login-app-shell .login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-app-shell .login-form label {
  display: block;
  margin: 0;
  color: #24476c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.login-app-shell .login-field,
.login-app-shell .login-password-group {
  display: grid;
  gap: 6px;
}

.login-app-shell .login-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #cfd9e7;
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
}

.login-app-shell .password-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 16px;
}

.login-app-shell .password-label-row .password-toggle {
  min-width: 44px;
  min-height: 24px;
  margin: -4px -6px -4px 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #65788f;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.login-app-shell .password-label-row .password-toggle:hover {
  background: #f1f6fd;
  color: #24476c;
}

.login-app-shell .login-form > button.primary {
  width: 100%;
  min-height: 40px;
  height: 40px;
  margin-top: 2px;
  border: 1px solid #2864e8;
  border-radius: 7px;
  background: #2864e8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.login-app-shell .login-form > button.primary:hover {
  border-color: #1d55ca;
  background: #1d55ca;
}

.login-app-shell .login-form input:focus-visible,
.login-app-shell .login-form button:focus-visible {
  outline: 3px solid #9bbbf4;
  outline-offset: 2px;
}

.login-app-shell .login-note { margin-top: 14px; }

.login-app-shell .app-footer {
  width: 100%;
  margin: 12px 0 0;
  padding: 14px 0 6px;
  border-top: 1px solid #d9e3ef;
  color: #8492a6;
  font-size: 10px;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 700px) {
  .login-app-shell {
    justify-content: center;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  }

  .login-app-shell .login-shell { padding: 0; }

  .login-app-shell .login-card {
    width: min(430px, 100%);
    padding: 21px 19px 20px;
  }

  .login-app-shell .login-logo { min-height: 96px; margin-bottom: 6px; }
  .login-app-shell .login-logo img { max-height: 90px; }
  .login-app-shell .login-heading h1 { font-size: 22px; }
  .login-app-shell .password-label-row .password-toggle { min-height: 32px; }
  .login-app-shell .app-footer { text-align: center; }
}

@media (max-width: 360px) {
  .login-app-shell { padding-inline: 10px; }
  .login-app-shell .login-card { padding: 18px 15px; }
}

@media (max-width: 1024px) and (orientation: landscape) and (max-height: 520px) {
  .login-app-shell { justify-content: flex-start; }
  .login-app-shell .login-shell { padding-block: 10px; }
  .login-app-shell .app-footer { margin-top: 6px; }
}

/* Evita que regras globais de formulários comprimam o rótulo dentro do flex. */
.login-app-shell .login-password-group > .password-label-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-app-shell .login-password-group > .password-label-row > label {
  display: block;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
}

.login-app-shell .login-password-group > .password-label-row > .password-toggle {
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
  white-space: nowrap;
}
