/* ==========================================================================
   Clique Vendas — área de autenticação
   Folha autocontida: repete os tokens de marca de marketing.css para que a
   página de acesso não carregue o CSS inteiro da landing. Ao migrar para
   Blade, tokens e componentes devem virar uma camada compartilhada.
   ========================================================================== */

:root {
  --brand: #635bff;
  --brand-dark: #4b43e8;
  --brand-soft: #efeeff;
  --ink: #11172b;
  --lime: #bdfd3e;
  --white: #ffffff;
  --surface: #f7f8fc;
  --line: #e5e7ef;
  --muted: #687086;
  --danger: #d13a3a;
  --font-display: "Sora", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --shadow-brand: 0 16px 35px rgba(99, 91, 255, 0.28);
}

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

html {
  scrollbar-gutter: stable;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(145deg, #f9f9ff 0%, #eeedff 34%, #f4f9ed 68%, #f7f6ff 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* O fundo usa apenas camadas decorativas. Elas nunca recebem foco ou cliques e
   se movem lentamente por transform, sem depender de JavaScript. */
body::before,
body::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
}

body::before {
  inset: -24vmax;
  background:
    radial-gradient(circle at 20% 26%, rgba(99, 91, 255, 0.34), transparent 25%),
    radial-gradient(circle at 78% 22%, rgba(189, 253, 62, 0.25), transparent 20%),
    radial-gradient(circle at 72% 78%, rgba(75, 67, 232, 0.24), transparent 27%),
    radial-gradient(circle at 25% 84%, rgba(189, 253, 62, 0.16), transparent 22%);
  transform-origin: center;
  animation: auth-background-drift 18s ease-in-out infinite alternate;
}

body::after {
  inset: 0;
  background:
    linear-gradient(rgba(99, 91, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 91, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 38%, rgba(255, 255, 255, 0.45) 100%);
  background-size: 52px 52px, 52px 52px, 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
}

@keyframes auth-background-drift {
  0% {
    translate: -2.5% -1.5%;
    scale: 1;
    rotate: -1deg;
  }

  50% {
    translate: 2% 1%;
    scale: 1.035;
    rotate: 1deg;
  }

  100% {
    translate: -1% 2.5%;
    scale: 1.07;
    rotate: 0deg;
  }
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Estrutura ----------------------------------------------------------------
   A logo e o card são os únicos elementos de conteúdo da tela. O uso de
   margens automáticas centraliza verticalmente quando há espaço; formulários
   altos continuam no fluxo normal e usam a rolagem da própria página. */

/*
 * O conjunto é ancorado pelo topo, e não centralizado.
 *
 * Antes, `margin-top: auto` na marca e `margin-bottom: auto` no card
 * centralizavam os dois verticalmente. Parece inofensivo até uma mensagem
 * aparecer: o card fica mais alto, o centro é recalculado, e METADE do
 * crescimento vai para cima. Quem errava a senha via os campos subirem
 * debaixo do cursor — e o clique seguinte caía em outro lugar.
 *
 * O recuo do topo faz o papel que o centro fazia, sem depender da altura do
 * conteúdo: cresceu, cresce para baixo. `12vh` acompanha telas altas e o
 * `clamp` impede que suma no celular deitado.
 */
.auth-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 12vh, 132px) 20px clamp(24px, 4vw, 52px);
  align-items: center;
  flex-direction: column;
  gap: 22px;
}

.auth-brand {
  display: inline-flex;
  border-radius: 14px;
  transition: translate 180ms ease;
}

.auth-brand:hover {
  translate: 0 -2px;
}

.auth-brand img {
  width: 172px;
  height: auto;
}

/* Card único de autenticação ---------------------------------------------- */

.auth-panel {
  position: relative;
  display: flex;
  width: min(100%, 520px);
  margin-bottom: auto;
  overflow: hidden;
  padding: clamp(30px, 4vw, 42px);
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(35, 28, 110, 0.18),
    0 8px 24px rgba(17, 23, 43, 0.08),
    inset 0 1px 0 #fff,
    0 0 0 1px rgba(99, 91, 255, 0.1);
  isolation: isolate;
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  animation: auth-card-in 680ms cubic-bezier(0.2, 0.85, 0.3, 1.12) both;
}

.auth-panel::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), #8b84ff 54%, var(--lime));
  content: "";
}

.auth-panel::after {
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.12), transparent 68%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

@keyframes auth-card-in {
  from {
    opacity: 0;
    translate: 0 20px;
    scale: 0.97;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

.auth-panel:focus {
  outline: none;
}

.auth-panel-inner {
  width: 100%;
  max-width: 430px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.auth-back svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.auth-back:hover {
  color: var(--brand);
}

.auth-back:hover svg {
  transform: translateX(-3px);
}

.auth-view[hidden] {
  display: none;
}

/*
 * Selo da porta da equipe.
 *
 * As duas telas de acesso são iguais de propósito: mesma marcação, mesmo
 * card, mesma regra de autenticação. O selo é o que diz, antes de se ler
 * qualquer texto, que esta é a porta do Master.
 *
 * O seletor precisa do pai: `.auth-head > p` define margem e cor para todo
 * parágrafo do cabeçalho e venceria `.auth-selo` sozinho.
 */
.auth-head > .auth-selo {
  display: inline-flex;
  align-items: center;
  margin: 0 0 13px;
  padding: 6px 13px 6px 10px;
  gap: 7px;
  color: var(--brand);
  background: rgba(99, 91, 255, 0.1);
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.auth-head > .auth-selo svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.auth-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.auth-head > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
  text-wrap: pretty;
}

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

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label,
.auth-label-row label {
  color: #333c54;
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-input {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-input:focus-within {
  background: #fff;
  border-color: rgba(99, 91, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.12);
}

.auth-input > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #858da1;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.auth-input:focus-within > svg {
  color: var(--brand);
}

.auth-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  font-size: 0.93rem;
}

.auth-input input:focus-visible {
  outline: none;
}

.auth-input input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.auth-input input[readonly] {
  color: #4a5266;
  cursor: not-allowed;
  font-weight: 600;
}

.auth-field[data-auth-invalid="true"] .auth-input {
  border-color: rgba(209, 58, 58, 0.6);
  box-shadow: 0 0 0 4px rgba(209, 58, 58, 0.09);
}

.auth-field[data-auth-invalid="true"] .auth-check-box {
  border-color: rgba(209, 58, 58, 0.72);
  box-shadow: 0 0 0 4px rgba(209, 58, 58, 0.09);
}

.auth-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.76rem;
  line-height: 1.45;
}

.auth-error[hidden] {
  display: none;
}

.auth-alert {
  margin-top: 18px;
  padding: 11px 13px;
  color: #a82430;
  background: #fff7f7;
  border: 1px solid #efc8cd;
  border-radius: 11px;
  font-size: 0.82rem;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #4a5266;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 500;
}

.auth-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.auth-check-box {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: var(--white);
  border: 1px solid #cfd4e1;
  border-radius: 6px;
  place-items: center;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.auth-check-box svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  opacity: 0;
  transition: opacity 140ms ease;
}

.auth-check input:checked + .auth-check-box {
  background: var(--brand);
  border-color: var(--brand);
}

.auth-check input:checked + .auth-check-box svg {
  opacity: 1;
}

.auth-check input:focus-visible + .auth-check-box {
  outline: 3px solid var(--brand-dark);
  outline-offset: 2px;
}

.auth-link-button {
  padding: 0;
  color: var(--brand);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.auth-link-button:not(:disabled):hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.auth-link-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.78;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 24px;
  gap: 10px;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(189, 253, 62, 0.24);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.auth-submit svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.auth-submit:hover {
  color: var(--ink);
  background: #c8ff59;
  border-color: #c8ff59;
  box-shadow: 0 18px 38px rgba(189, 253, 62, 0.3);
  transform: translateY(-2px);
}

.auth-submit:hover svg {
  transform: translateX(3px);
}

.auth-status {
  margin: 0;
  padding: 12px 14px;
  color: #3c4166;
  background: var(--brand-soft);
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: 11px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-status[hidden] {
  display: none;
}

.auth-break {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-body-first-access .auth-head h1,
.auth-body-first-access .auth-head > .auth-selo {
  letter-spacing: 0;
}

.auth-body-first-access .auth-secondary {
  order: -1;
}

/* Cadastro em etapas ------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-panel-wide .auth-panel-inner {
  max-width: 680px;
}

.auth-panel-wide {
  width: min(100%, 760px);
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.auth-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  padding-top: 12px;
  gap: 10px;
  border-top: 2px solid var(--line);
  transition: border-color 200ms ease;
}

.auth-steps li.is-current,
.auth-steps li.is-done {
  border-top-color: var(--brand);
}

.auth-step-badge {
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  place-items: center;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.auth-steps li.is-current .auth-step-badge,
.auth-steps li.is-done .auth-step-badge {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.auth-step-copy {
  display: grid;
  min-width: 0;
}

.auth-step-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.25;
}

.auth-step-copy small {
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.35;
}

.auth-form-wide {
  gap: 16px;
}

.auth-step {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 16px;
  border: 0;
}

.auth-step[hidden] {
  display: none;
}

.auth-field-label {
  display: block;
  color: #333c54;
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-optional {
  color: var(--muted);
  font-weight: 500;
}

.auth-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

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

.auth-grid-cep {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: 16px;
}

.auth-grid-cidade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px;
  gap: 16px;
}

.auth-input select {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.93rem;
}

.auth-input select:focus-visible {
  outline: none;
}

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

.auth-choice-option {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 15px;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-choice-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--brand);
}

.auth-choice-option span {
  display: grid;
  min-width: 0;
}

.auth-choice-option strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
}

.auth-choice-option small {
  color: var(--muted);
  font-size: 0.72rem;
}

.auth-choice-option.is-selected {
  background: #fff;
  border-color: rgba(99, 91, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.auth-choice-option input:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 2px;
}

.auth-check-block {
  align-items: flex-start;
  line-height: 1.5;
}

.auth-check-block .auth-check-box {
  margin-top: 1px;
}

.auth-divider {
  height: 1px;
  margin: 2px 0;
  background: var(--line);
  border: 0;
}

.auth-actions {
  display: flex;
  align-items: center;
  margin-top: 6px;
  gap: 12px;
}

.auth-actions .auth-submit {
  margin-top: 0;
  flex: 1 1 auto;
}

.auth-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 20px;
  gap: 9px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d8dbe6;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.auth-secondary[hidden] {
  display: none;
}

.auth-secondary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-secondary:hover {
  color: var(--brand);
  border-color: rgba(99, 91, 255, 0.45);
  box-shadow: 0 10px 26px rgba(17, 23, 43, 0.07);
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.auth-switch a,
.auth-switch .auth-link-button {
  color: var(--brand);
  font-size: inherit;
  font-weight: 700;
}

.auth-switch a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.auth-disclaimer {
  margin: 28px 0 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

/* O cadastro é mais alto que a tela: permanece no fluxo da página para que
   nenhum campo seja recortado em notebooks ou celulares. */
.auth-panel-wide {
  align-items: flex-start;
}

/* Responsivo --------------------------------------------------------------- */

@media (max-width: 620px) {
  .auth-grid-2,
  .auth-grid-cep,
  .auth-choice {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .auth-grid-cidade {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 14px;
  }

  .auth-grid-cidade > .auth-field:first-child {
    grid-column: 1 / -1;
  }

  .auth-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .auth-secondary {
    justify-content: center;
  }

  .auth-body-first-access .auth-actions {
    flex-direction: column;
  }

  .auth-body-first-access .auth-secondary {
    order: 0;
  }

  .auth-steps {
    gap: 8px;
  }

  .auth-step-copy small {
    display: none;
  }
}

/* Notebook baixo: compacta somente a tela curta de login. O cadastro mantém
   a rolagem natural por conter mais campos na segunda etapa. */
@media (min-width: 981px) and (max-height: 820px) {
  .auth-body:not(.auth-body-signup) .auth-shell {
    padding-block: 18px;
    gap: 12px;
  }

  .auth-body:not(.auth-body-signup) .auth-brand img {
    width: 142px;
  }

  .auth-body:not(.auth-body-signup) .auth-panel {
    padding: 24px 38px;
  }

  .auth-body:not(.auth-body-signup) .auth-back {
    margin-bottom: 14px;
  }

  .auth-body:not(.auth-body-signup) .auth-form {
    margin-top: 18px;
    gap: 13px;
  }

  .auth-body:not(.auth-body-signup) .auth-input {
    min-height: 48px;
  }

  .auth-body:not(.auth-body-signup) .auth-head > p {
    margin-top: 7px;
  }

  .auth-body:not(.auth-body-signup) .auth-switch {
    margin-top: 18px;
  }

  .auth-body:not(.auth-body-signup) .auth-disclaimer {
    margin-top: 18px;
    padding-top: 14px;
  }
}

@media (max-width: 430px) {
  .auth-shell {
    padding: 20px 14px 28px;
    gap: 16px;
  }

  .auth-panel {
    padding: 28px 20px 30px;
    border-radius: 22px;
  }

  .auth-brand img {
    width: 144px;
  }

  .auth-input {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  body::before,
  .auth-panel {
    animation: none !important;
  }

  .auth-back:hover svg,
  .auth-submit:hover,
  .auth-submit:hover svg {
    transform: none !important;
  }
}

@media (prefers-contrast: more) {
  .auth-panel {
    background: #fff;
    border-color: var(--ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  body,
  .auth-panel,
  .auth-input,
  .auth-choice-option,
  .auth-secondary {
    color: CanvasText;
    background: Canvas;
  }

  .auth-panel,
  .auth-input,
  .auth-choice-option,
  .auth-secondary {
    border: 1px solid CanvasText;
  }

  .auth-input:focus-within {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }
}

/*
 * Segunda linha do rodapé do acesso.
 *
 * O caminho para criar conta é o principal; o acesso do Master é o de
 * exceção, e fica menor para não competir com ele.
 */
.auth-switch-quiet {
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Rodapé do acesso

   As duas saídas da tela — criar conta e entrar pelo Master — estavam
   coladas no botão, como se fossem parte do formulário. Separadas por um
   filete e com ar em volta, viram o que são: caminhos para quem não veio
   entrar aqui.
   -------------------------------------------------------------------------- */

.auth-rodape {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.auth-rodape .auth-switch {
  margin-top: 0;
}

.auth-rodape .auth-switch-quiet {
  margin-top: 8px;
}

/* O link de volta divide a linha do topo com nada mais: é o único elemento
   antes do título, e ganhar peso aqui atrapalharia a leitura do que importa. */
.auth-panel-inner > .auth-back {
  margin-bottom: 20px;
}

@media (max-height: 720px) {
  .auth-rodape {
    margin-top: 20px;
    padding-top: 16px;
  }

  .auth-panel-inner > .auth-back {
    margin-bottom: 14px;
  }
}

/* --------------------------------------------------------------------------
   Recuperação de senha
   -------------------------------------------------------------------------- */

/* O número parcialmente escondido: é o que a pessoa olha para reconhecer a
   própria conta, então tem corpo de título e não de texto de apoio. */
.auth-numero {
  margin: 0 0 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--surface-sunken, #f4f2fd);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.auth-reenviar {
  margin-top: 14px;
  text-align: center;
}

.auth-reenviar button {
  background: none;
  border: 0;
  cursor: pointer;
}

.auth-reenviar button[disabled],
.auth-reenviar button[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
}
