.auth-login-page {
  --auth-action: #0e3aa9;
  --auth-action-hover: #082b84;
  --auth-bg: #071a36;
  --auth-bg-glow: rgba(37, 99, 235, 0.3);
  --auth-grid: rgba(255, 255, 255, 0.055);
  --auth-panel: #ffffff;
  --auth-input: #f1f3f6;
  --auth-border: #dce1e8;
  --auth-text: #111827;
  --auth-muted: #647084;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  width: 100%;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 14% 18%, var(--auth-bg-glow), transparent 31%),
    radial-gradient(circle at 86% 82%, rgba(14, 165, 233, 0.13), transparent 28%),
    linear-gradient(var(--auth-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--auth-grid) 1px, transparent 1px),
    var(--auth-bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  color: var(--auth-text);
  color-scheme: light;
  font-family: Arial, sans-serif;
}

html:has(.auth-login-page),
body:has(.auth-login-page) {
  min-height: 100%;
  margin: 0;
  background: #071a36;
  color-scheme: light;
}

.auth-login-page *,
.auth-login-page *::before,
.auth-login-page *::after {
  box-sizing: border-box;
}

body:has(.auth-login-page) #main,
body:has(.auth-login-page) #wrapper,
body:has(.auth-login-page) .section-conteudo,
body:has(.auth-login-page) #conteudo-dinamico {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.auth-login-page) .rodape_1,
body:has(.auth-login-page) .header,
body:has(.auth-login-page) #header {
  display: none;
}

.auth-login-page__card {
  width: min(100%, 466px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: var(--auth-panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.auth-login-page__form-side {
  width: 100%;
  padding: 26px 32px 28px;
}

.auth-login-page__top {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.auth-login-page__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: -16px;
  color: var(--auth-muted);
  text-decoration: none;
}

.auth-login-page__back i {
  font-size: 1.9rem;
  line-height: 1;
}

.auth-login-page__back-form {
  width: 42px;
  height: 42px;
  margin: 0 0 0 -16px;
}

.auth-login-page__back-form .auth-login-page__back {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.auth-login-page__back:hover,
.auth-login-page__back:focus-visible {
  background: transparent;
  color: var(--auth-action);
  text-decoration: none;
  box-shadow: none;
}

.auth-login-page__brand {
  width: auto;
  max-width: 132px;
  height: 29px;
  object-fit: contain;
  filter: none;
}

.auth-login-page__heading {
  margin-bottom: 20px;
}

.auth-login-page__eyebrow {
  margin: 0 0 8px;
  color: var(--auth-action);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.auth-login-page__heading h1 {
  margin: 0;
  color: var(--auth-text);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.auth-login-page__heading > p:last-child {
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.auth-login-page__form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.auth-login-page__field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.auth-login-page__field label {
  color: var(--auth-text);
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-login-page__field small {
  color: var(--auth-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.auth-login-page__field input,
.auth-login-page__field select {
  width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  outline: 0;
  background: var(--auth-input);
  color: var(--auth-text);
  font: inherit;
  font-size: 0.93rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-login-page__field input:hover,
.auth-login-page__field select:hover {
  border-color: var(--auth-border);
}

.auth-login-page__field input:focus,
.auth-login-page__field select:focus {
  border-color: var(--auth-action);
  background: var(--auth-panel);
  box-shadow: 0 0 0 3px rgba(14, 58, 169, 0.14);
}

.auth-login-page__password {
  position: relative;
}

.auth-login-page__password input {
  padding-right: 48px;
}

.auth-login-page__password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  line-height: 1;
  transform: translateY(-50%);
}

.auth-login-page__password-toggle i {
  display: block;
  line-height: 1;
}

.auth-login-page__password-toggle:hover,
.auth-login-page__password-toggle:focus-visible {
  background: rgba(14, 58, 169, 0.1);
  color: var(--auth-action);
}

.auth-login-page__code {
  text-align: center;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5em;
}

.auth-login-page__two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.auth-login-page__primary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 20px;
  border: 0;
  border-radius: 11px;
  background: var(--auth-action);
  color: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.auth-login-page[data-auth-screen="login"] .auth-login-page__primary {
  min-height: 40px;
  padding-block: 8px;
}

.auth-login-page__primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--auth-action-hover);
  box-shadow: 0 10px 24px rgba(14, 58, 169, 0.25);
}

.auth-login-page__primary:disabled,
.auth-login-page__primary.is-loading {
  cursor: wait;
  opacity: 0.86;
  transform: none;
  box-shadow: none;
}

.auth-login-page__secondary {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 11px;
  background: #707070;
  color: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.auth-login-page__secondary:hover,
.auth-login-page__secondary:focus-visible {
  transform: translateY(-1px);
  background: #595959;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.auth-login-page__spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: auth-login-page-spin 700ms linear infinite;
}

@keyframes auth-login-page-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-login-page__primary:focus-visible,
.auth-login-page__secondary:focus-visible,
.auth-login-page__link-form button:focus-visible,
.auth-login-page__back:focus-visible,
.auth-login-page__password-toggle:focus-visible {
  outline: 3px solid rgba(14, 58, 169, 0.28);
  outline-offset: 3px;
}

.auth-login-page__link-form {
  margin: 14px 0 0;
  color: var(--auth-muted);
  text-align: center;
}

.auth-login-page__cancel-form {
  margin-top: 10px;
}

.auth-login-page__link-form p {
  margin: 0;
}

.auth-login-page__link-form button:not(.auth-login-page__secondary) {
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--auth-action);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-login-page__link-form button:not(.auth-login-page__secondary):hover,
.auth-login-page__link-form button:not(.auth-login-page__secondary):focus-visible {
  text-decoration: underline;
}

.auth-login-page__divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 18px 0 14px;
  color: var(--auth-muted);
  font-size: 0.78rem;
}

.auth-login-page__divider::before,
.auth-login-page__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-login-page__google {
  width: 100%;
  max-width: 400px;
  min-height: 40px;
  margin-inline: auto;
}

.auth-login-page__google > div,
.auth-login-page__google iframe {
  width: 100% !important;
}

.auth-login-page__captcha {
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.auth-login-page__strength {
  min-height: 5px;
  color: var(--auth-muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.auth-login-page__strength::before {
  content: "";
  display: block;
  width: 0;
  height: 5px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: #dc2626;
  transition: width 160ms ease, background 160ms ease;
}

.auth-login-page__strength[data-level="1"]::before {
  width: 25%;
}

.auth-login-page__strength[data-level="2"]::before {
  width: 50%;
  background: #ea580c;
}

.auth-login-page__strength[data-level="3"]::before {
  width: 75%;
  background: #ca8a04;
}

.auth-login-page__strength[data-level="4"]::before {
  width: 100%;
  background: #16803c;
}

body.tema-escuro .auth-login-page {
  --auth-bg: #071a36;
  --auth-bg-glow: rgba(37, 99, 235, 0.3);
  --auth-grid: rgba(255, 255, 255, 0.055);
  --auth-panel: #ffffff;
  --auth-input: #f1f3f6;
  --auth-border: #dce1e8;
  --auth-text: #111827;
  --auth-muted: #647084;
  background:
    radial-gradient(circle at 14% 18%, var(--auth-bg-glow), transparent 31%),
    radial-gradient(circle at 86% 82%, rgba(14, 165, 233, 0.13), transparent 28%),
    linear-gradient(var(--auth-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--auth-grid) 1px, transparent 1px),
    var(--auth-bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

html:has(body.tema-escuro .auth-login-page),
body.tema-escuro:has(.auth-login-page) {
  background: #071a36;
}

body.tema-escuro .auth-login-page__brand {
  filter: none;
}

body.tema-escuro .auth-login-page .auth-login-page__field input,
body.tema-escuro .auth-login-page .auth-login-page__field select {
  border-color: transparent;
  background: var(--auth-input);
  color: var(--auth-text);
  caret-color: var(--auth-text);
  color-scheme: light;
  -webkit-text-fill-color: var(--auth-text);
}

body.tema-escuro .auth-login-page .auth-login-page__field input::placeholder {
  color: #9ba5b5;
  opacity: 1;
  -webkit-text-fill-color: #9ba5b5;
}

body.tema-escuro .auth-login-page .auth-login-page__field input:hover,
body.tema-escuro .auth-login-page .auth-login-page__field select:hover {
  border-color: var(--auth-border);
}

body.tema-escuro .auth-login-page .auth-login-page__field input:focus,
body.tema-escuro .auth-login-page .auth-login-page__field select:focus {
  border-color: var(--auth-action);
  background: #ffffff;
  color: var(--auth-text);
  box-shadow: 0 0 0 3px rgba(14, 58, 169, 0.14);
}

body.tema-escuro .auth-login-page .auth-login-page__field input:-webkit-autofill,
body.tema-escuro .auth-login-page .auth-login-page__field input:-webkit-autofill:hover,
body.tema-escuro .auth-login-page .auth-login-page__field input:-webkit-autofill:focus {
  border-color: transparent;
  -webkit-text-fill-color: var(--auth-text);
  box-shadow: 0 0 0 1000px var(--auth-input) inset;
}

@media (max-width: 760px) {
  .auth-login-page {
    padding: 16px;
  }

  .auth-login-page__card {
    border-radius: 20px;
  }

  .auth-login-page__form-side {
    padding: 22px 22px 24px;
  }

  .auth-login-page__back {
    margin-left: -8px;
  }

  .auth-login-page__back-form {
    margin-left: -8px;
  }
}

@media (max-width: 440px) {
  .auth-login-page__two-columns {
    grid-template-columns: 1fr;
  }

  .auth-login-page__top {
    margin-bottom: 22px;
  }

  .auth-login-page__brand {
    max-width: 112px;
  }

  .auth-login-page__captcha .g-recaptcha {
    transform: scale(0.86);
    transform-origin: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login-page *,
  .auth-login-page *::before,
  .auth-login-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .auth-login-page__spinner {
    animation-duration: 1400ms;
  }
}
