/* ===================================================
 * ACESSO (login)
 * Página sem a estrutura da aplicação; usa os tokens --app-* de layout.css
 * (tema claro/escuro e cor de destaque escolhidos em Aparência).
 * =================================================== */

/* layout.css fixa a altura da janela para a aplicação; aqui a página rola normalmente */
html.auth-page,
html.auth-page body {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem 1rem;
  background:
    radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--app-primary) 14%, transparent), transparent 70%),
    radial-gradient(40rem 24rem at -10% 110%, color-mix(in srgb, var(--app-primary) 9%, transparent), transparent 70%),
    var(--app-bg);
}

.auth-card {
  width: min(420px, 100%);
  padding: 2rem 2rem 1.5rem;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background-color: var(--app-surface);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.auth-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.auth-logo img {
  max-width: 100%;
  max-height: 100%;
}

.auth-brand-title {
  margin: 0;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.2;
}

.auth-brand-sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--app-muted);
}

.auth-title {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--app-text);
}

.auth-lead {
  margin: 0 0 1.5rem;
  color: var(--app-muted);
  font-size: 0.9rem;
}

.auth-card .field {
  margin-bottom: 1rem;
}

.auth-password {
  position: relative;
}

.auth-password .form-control {
  padding-right: 2.75rem;
}

.auth-password-toggle {
  position: absolute;
  inset: 0 0.35rem 0 auto;
  display: grid;
  place-items: center;
  width: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--app-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--app-text);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--app-primary);
  outline-offset: -2px;
  border-radius: 8px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 1.25rem;
  font-size: 0.85rem;
  color: var(--app-text-2);
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  padding-block: 0.65rem;
  font-weight: 600;
}

.auth-footer {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--app-subtle);
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}
