/* Account routes inherit the tenant's existing palette and font system. */
.auth-surface {
  --auth-paper: var(--fundo, var(--color-paper, #fff));
  --auth-ink: var(--tinta, var(--color-ink, #151211));
  --auth-muted: var(--tinta-3, var(--color-muted, #6e6862));
  --auth-line: var(--linha, var(--color-line, rgba(21, 18, 17, .12)));
  --auth-action: var(--acao, var(--color-primary, #a75531));
  --auth-raised: var(--fundo-elevado, var(--color-surface, #fafafa));
  min-height: 100svh; color: var(--auth-ink); background: var(--auth-paper);
  font-family: var(--fonte-sans, var(--font-body, system-ui, sans-serif));
  padding: clamp(20px, 4vw, 56px); box-sizing: border-box;
}
.auth-surface *, .auth-surface *::before, .auth-surface *::after { box-sizing: border-box; }
.auth-surface a { color: var(--auth-action); text-underline-offset: .22em; }
.auth-surface :focus-visible { outline: 3px solid var(--auth-action); outline-offset: 4px; }
.auth-surface__masthead, .auth-surface__layout, .auth-surface__footer { max-width: 1120px; margin-inline: auto; }
.auth-surface__masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--auth-line); }
.auth-surface__brand { max-width: 360px; font-family: var(--fonte-serifa, var(--font-heading, Georgia, serif)); font-size: clamp(21px, 2.4vw, 29px); line-height: 1.15; text-decoration: none; }
.auth-surface__back { font-size: 13px; white-space: nowrap; }
.auth-surface__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 7vw, 112px); padding-block: clamp(44px, 8vw, 104px); align-items: start; }
.auth-surface__intro { padding-top: 14px; }
.auth-surface__eyebrow { margin: 0 0 22px; font-size: 11px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--auth-action); }
.auth-surface h1 { font-family: var(--fonte-serifa, var(--font-heading, Georgia, serif)); font-size: clamp(38px, 5vw, 66px); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 26px; }
.auth-surface__description { max-width: 38ch; color: var(--auth-muted); font-size: 17px; line-height: 1.7; }
.auth-surface__panel { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--auth-line); border-radius: var(--raio-cartao, 18px); background: var(--auth-raised); min-width: 0; }
.auth-surface form, .auth-surface .auth-form { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.auth-surface form { display: grid; gap: 20px; }
.auth-surface .auth-form__head:empty { display: none; }
.auth-surface label:not(.subscription-form__check) { display: grid; gap: 8px; font-size: 14px; font-weight: 550; }
.auth-surface input:not([type=hidden]):not([type=checkbox]), .auth-surface select {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  color: var(--auth-ink); background: var(--auth-paper); border: 1px solid var(--auth-line);
  border-radius: var(--raio-campo, 12px); font: inherit; font-size: 16px;
}
.auth-surface button[type=submit] { width: 100%; min-height: 48px; padding: 13px 22px; border: 1px solid var(--auth-action); border-radius: var(--raio-botao, 999px); background: var(--auth-action); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.auth-surface button[type=submit]:hover { background: var(--acao-forte, var(--auth-action)); }
.auth-surface__note, .auth-surface .auth-form__foot { margin: 22px 0 0; font-size: 13px; line-height: 1.65; color: var(--auth-muted); }
.auth-surface__note a { display: inline-block; padding-block: 4px; }
.auth-surface__message, .auth-surface .subscription-form__message { border-left: 3px solid var(--auth-action); padding: 12px 16px; margin: 0 0 24px; color: var(--auth-ink); font-size: 14px; line-height: 1.6; background: var(--auth-paper); }
.auth-surface__message ul, .auth-surface .subscription-form__message ul { margin: 0; padding-left: 18px; }
.auth-surface .subscription-form__message { margin: 0; }
.auth-surface .subscription-form__check { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.65; cursor: pointer; }
.auth-surface input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--auth-action); }
.auth-surface__invitation { overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; margin: 0 0 24px; }
.auth-surface__footer { padding-top: 24px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 12px; line-height: 1.7; }
.auth-surface__footer p { margin: 0 0 8px; }
@media (max-width: 700px) {
  .auth-surface__masthead { align-items: flex-start; gap: 16px; }
  .auth-surface__brand { max-width: 220px; }
  .auth-surface__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 34px; }
  .auth-surface__intro { padding-top: 0; }
  .auth-surface__eyebrow { margin-bottom: 16px; }
  .auth-surface h1 { margin-bottom: 16px; }
  .auth-surface__description { font-size: 16px; margin-bottom: 0; }
}
@media (max-width: 360px) { .auth-surface__masthead { flex-direction: column; gap: 12px; } }

/* The Rainha custom theme reuses its selected home photograph and canonical tokens. */
.auth-surface--editorial { padding: 0 clamp(20px, 4.5vw, 72px); }
.auth-surface--editorial .auth-surface__masthead,
.auth-surface--editorial .auth-surface__layout,
.auth-surface--editorial .auth-surface__footer { max-width: 1200px; }
.auth-surface--editorial .auth-surface__masthead { min-height: 100px; padding-block: 24px; border-bottom: 0; }
.auth-surface--editorial .auth-surface__brand { display: flex; align-items: center; gap: 13px; max-width: 340px; color: var(--auth-ink); font-family: var(--fonte-sans, var(--font-body, system-ui, sans-serif)); font-size: 17px; font-weight: 550; line-height: 1.35; letter-spacing: -.02em; }
.auth-surface__logo { flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; }
.auth-surface--editorial .auth-surface__back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--auth-muted); text-decoration: none; }
.auth-surface--editorial .auth-surface__back:hover { color: var(--auth-action); }
.auth-surface--editorial .auth-surface__layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 92px); align-items: start; padding-block: 28px 64px; }
.auth-surface__content { grid-column: 2; grid-row: 1; width: 100%; max-width: 410px; justify-self: end; padding-top: 20px; }
.auth-surface--editorial .auth-surface__intro { padding-top: 0; margin-bottom: 28px; }
.auth-surface--editorial .auth-surface__eyebrow { margin: 0 0 15px; font-size: 11px; line-height: 1.5; letter-spacing: .13em; }
.auth-surface--editorial h1 { font-size: clamp(36px, 3.7vw, 48px); line-height: 1.08; margin-bottom: 16px; text-wrap: balance; }
.auth-surface--editorial .auth-surface__description { margin: 0; max-width: 42ch; font-size: 15px; line-height: 1.75; }
.auth-surface--editorial .auth-surface__panel { padding: 0; border: 0; border-radius: 0; background: transparent; }
.auth-surface--editorial form { gap: 20px; }
.auth-surface--editorial input:not([type=hidden]):not([type=checkbox]) { min-height: 50px; border-radius: var(--raio-campo, 12px); background: var(--auth-raised); }
.auth-surface--editorial label:not(.subscription-form__check) { font-size: 13px; gap: 9px; }
.auth-surface--editorial .auth-form__foot { margin-top: 14px; }
.auth-surface--editorial .auth-form__foot a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-surface--editorial .auth-surface__note { margin-top: 20px; }
.auth-surface__welcome { grid-column: 1; grid-row: 1; min-width: 0; }
.auth-surface__photograph { margin: 0 0 28px; overflow: hidden; background: var(--auth-raised); }
.auth-surface__photograph img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.auth-surface__welcome-copy h2 { font-family: var(--fonte-serifa, var(--font-heading, Georgia, serif)); font-size: clamp(28px, 2.8vw, 36px); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.auth-surface__welcome-copy > p:last-child { margin: 0; max-width: 45ch; font-size: 14px; line-height: 1.75; color: var(--auth-muted); }
.auth-surface__explore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 22px; }
.auth-surface__explore a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding-block: 12px; border-top: 1px solid var(--auth-line); font-size: 13px; line-height: 1.5; text-decoration: none; color: var(--auth-ink); }
.auth-surface__explore a span:last-child { color: var(--auth-action); font-size: 17px; }
.auth-surface__explore a:hover { color: var(--auth-action); }
.auth-surface--editorial .auth-surface__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; }
.auth-surface--editorial .auth-surface__footer p { margin: 0; }
.auth-surface--editorial .auth-surface__footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 850px) {
  .auth-surface--editorial .auth-surface__layout { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 44px; padding-block: 24px 40px; }
  .auth-surface__content { grid-column: 1; grid-row: 1; max-width: 480px; justify-self: center; padding-top: 0; }
  .auth-surface__welcome { grid-column: 1; grid-row: 2; }
  .auth-surface__photograph img { aspect-ratio: 3 / 2; }
  .auth-surface--editorial h1 { font-size: clamp(34px, 6vw, 44px); }
}
@media (max-width: 540px) {
  .auth-surface--editorial .auth-surface__masthead { align-items: center; gap: 16px; min-height: 88px; padding-block: 18px; }
  .auth-surface--editorial .auth-surface__brand { font-size: 14px; max-width: 205px; gap: 10px; }
  .auth-surface__logo { flex-basis: 32px; width: 32px; height: 32px; }
  .auth-surface--editorial .auth-surface__back { font-size: 12px; }
  .auth-surface--editorial .auth-surface__description { font-size: 14px; line-height: 1.7; }
  .auth-surface--editorial .auth-surface__footer { flex-direction: column; align-items: flex-start; gap: 0; }
}
@media (max-width: 360px) {
  .auth-surface--editorial .auth-surface__masthead { flex-direction: row; gap: 12px; }
  .auth-surface--editorial .auth-surface__brand { max-width: 168px; font-size: 13px; }
  .auth-surface--editorial .auth-surface__back { white-space: normal; line-height: 1.4; max-width: 64px; }
  .auth-surface__explore { grid-template-columns: minmax(0, 1fr); }
}
