/* ===========================================================================
   Telas de porta: entrar no painel e recuperar a senha. Vivem fora do CSS do
   painel porque quem está aqui ainda não tem sessão — a primeira coisa que
   precisa reconhecer é a marca que viu no site. Por isso os tokens são os
   mesmos de site.css/offer-scope--pdvopen (Manrope, azul #1d6cff, tinta
   #0f172a), e não os do topbar escuro do painel.
   =========================================================================== */

.au {
  --au-ink: #0f172a;
  --au-muted: #475569;
  --au-faint: #94a3b8;
  --au-line: #e2e8f0;
  --au-accent: #1d6cff;
  --au-accent-dark: #0a43cf;
  --au-accent-soft: rgba(29, 108, 255, 0.12);

  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--au-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.au *,
.au *::before,
.au *::after {
  box-sizing: border-box;
}

.au h1,
.au h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* --- Lado da marca -------------------------------------------------------- */

.au-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 56px;
  color: #f8fafc;
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(29, 108, 255, 0.38), transparent 62%),
    radial-gradient(700px 420px at 90% 100%, rgba(29, 108, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #101b34 100%);
}

.au-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.au-brand__logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.au-brand__name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.au-brand__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
}

.au-brand__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  color: #fff;
  max-width: 18ch;
}

.au-brand__copy {
  margin: 20px 0 0;
  max-width: 36ch;
  font-size: 1.02rem;
  color: rgba(226, 232, 240, 0.78);
}

.au-brand__foot {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.9);
}

.au-brand__foot a {
  color: #bfdbfe;
  font-weight: 600;
  text-decoration: none;
}

.au-brand__foot a:hover {
  text-decoration: underline;
}

/* --- Lado do formulário --------------------------------------------------- */

.au-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #fff;
}

.au-panel__inner {
  width: 100%;
  max-width: 380px;
}

.au-panel__title {
  font-size: 1.95rem;
}

.au-panel__lead {
  margin: 10px 0 0;
  color: var(--au-muted);
  font-size: 0.98rem;
}

.au-flash {
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.au-flash--notice {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.au-flash--alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.au-form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.au-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.au-input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--au-line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--au-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.au-input::placeholder {
  color: var(--au-faint);
}

.au-input:focus {
  outline: none;
  border-color: var(--au-accent);
  box-shadow: 0 0 0 4px var(--au-accent-soft);
}

/* O olho fica dentro do campo, por isso a senha ganha um respiro à direita:
   sem ele a senha digitada passa por baixo do botão. */
.au-password {
  position: relative;
}

.au-password .au-input {
  padding-right: 48px;
}

.au-password__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--au-faint);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.au-password__toggle:hover {
  color: var(--au-muted);
  background: #f1f5f9;
}

.au-password__toggle svg {
  width: 20px;
  height: 20px;
}

.au-password__toggle .au-password__off {
  display: none;
}

.au-password__toggle[aria-pressed="true"] .au-password__on {
  display: none;
}

.au-password__toggle[aria-pressed="true"] .au-password__off {
  display: block;
}

.au-submit {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 1px solid var(--au-accent-dark);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--au-accent), var(--au-accent-dark));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(29, 108, 255, 0.75);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.au-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -12px rgba(29, 108, 255, 0.85);
}

.au-link {
  color: var(--au-accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.au-link:hover {
  text-decoration: underline;
}

.au-aside {
  margin: 26px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--au-muted);
}

.au-divider {
  margin: 28px 0 18px;
  border-top: 1px solid var(--au-line);
}

.au-panel__foot {
  margin: 0;
  font-size: 0.92rem;
  color: var(--au-muted);
  text-align: center;
}

.au-panel__foot + .au-panel__foot {
  margin-top: 8px;
}

/* --- Celular -------------------------------------------------------------- */

/* Numa tela estreita a coluna da marca vira só a faixa do logo: o texto de
   apresentação empurraria o formulário para baixo da dobra, e quem abre esta
   página já sabe o que veio fazer. */
@media (max-width: 900px) {
  .au {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100dvh;
  }

  .au-brand {
    padding: 18px 24px;
    gap: 0;
  }

  .au-brand__pitch,
  .au-brand__foot {
    display: none;
  }

  .au-brand__logo img {
    width: 40px;
    height: 40px;
  }

  .au-panel {
    padding: 40px 24px 56px;
    align-items: flex-start;
  }
}
