

body.auth-mode { background: #fff; }
html.welcome-mode, body.welcome-mode { height: 100%; overflow: hidden; overscroll-behavior-y: none; background: #164b3e; }
.welcome-mode #stage { min-height: 0; height: 100%; }
.auth-mode > .local-bar, .auth-mode > .prototype-header, .auth-mode > .prototype-footer { display: none; }
.auth-mode #stage { max-width: none; padding: 0; }
.auth-experience {
  --auth-blue: #21634f;
  --auth-ink: #183a30;
  --auth-muted: #51685e;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 54% minmax(0, 1fr);
  font-family: "Work Sans", system-ui, sans-serif;
  color: var(--auth-ink);
  background: #fff;
  isolation: isolate;
}
.auth-experience ::selection { color: #fff; background: #21634f; }
.auth-experience :is(a, button, input):focus-visible { outline: 3px solid #21634f; outline-offset: 4px; }
.auth-experience :is(a, button) { -webkit-tap-highlight-color: transparent; }
.auth-experience a { text-underline-offset: 4px; }
.auth-experience h1, .auth-experience h2 { letter-spacing: -.035em; text-wrap: balance; }
.auth-visual { position: relative; min-height: 100svh; overflow: hidden; background: #164b3e; }
.auth-photo, .auth-photo-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-photo { object-fit: cover; object-position: 50% 38%; }
.auth-photo-shade { background: linear-gradient(180deg, #164b3e78 0%, #164b3e40 40%, #08271fe6 100%); }
.auth-visual-brand { position: absolute; top: max(42px, env(safe-area-inset-top)); left: 48px; color: white; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.auth-brand .brand-mark { width: 25px; height: 28px; background: currentColor; }
.auth-photo-caption { position: absolute; bottom: 104px; left: 48px; right: 48px; max-width: 490px; color: white; }
.auth-photo-caption h2 { font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; line-height: 1.22; }
.auth-photo-caption p { color: #ffffff; font-size: 15px; margin-top: 22px; max-width: 40ch; }
.auth-content { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(32px, 5.5vw, 100px); }
.auth-boas-vindas .auth-content { background: #164b3e; color: white; }
.auth-experience.auth-boas-vindas { position: fixed; inset: 0; height: 100%; height: 100dvh; min-height: 0; overflow: hidden; }
.auth-boas-vindas .auth-visual { min-height: 0; }
.auth-boas-vindas .auth-content { height: 100%; min-height: 0; }
.auth-welcome-copy { width: 100%; max-width: 460px; margin: auto; }
.auth-intro h1 { font-size: clamp(34px, 3.1vw, 49px); font-weight: 600; line-height: 1.22; max-width: 16ch; }
.auth-intro p { font-size: 16px; color: #ffffff; margin-top: 24px; max-width: 38ch; line-height: 1.75; }
.auth-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; width: 100%; padding: 13px 21px; border: 1px solid transparent; border-radius: 30px; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; transition: background .18s ease, border-color .18s ease; }
.auth-primary { color: #fff; background: var(--auth-blue); }
.auth-primary:hover { background: #164b3e; }
.auth-primary:active { background: #103c31; }
.auth-welcome-copy > .auth-button { margin-top: 40px; justify-content: space-between; }
.auth-sheet { width: 100%; max-width: 390px; margin: auto; }
.auth-sheet-handle { display: none; }
.auth-sheet h1 { font-size: 29px; line-height: 1.3; font-weight: 700; }
.auth-description { font-size: 14px; color: var(--auth-muted); margin-top: 12px; }
.auth-options { display: grid; gap: 13px; margin-top: 32px; }
.auth-options .auth-primary { justify-content: space-between; }
.auth-social { display: grid; gap: 12px; margin-top: 24px; background: #fff; }
.auth-apple { justify-content: center; gap: 10px; min-height: 44px; color: var(--muted); }
.auth-apple:disabled { opacity: 1; cursor: not-allowed; }
.auth-apple small { margin-left: auto; font-size: 12px; }
.google-access { min-width: 0; max-width: 400px; }
.google-access [data-google-button] { min-height: 44px; }
.google-access [data-google-button]:empty { display: none; }
.google-status { font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.google-status:empty { display: none; }
.google-access[aria-busy=true] { opacity: .7; }
.google-access [data-google-retry] { margin-top: 8px; width: 100%; }
.google-access [data-google-retry][hidden] { display: none; }
.auth-separator { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--muted); }
.auth-separator::before,.auth-separator::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-form-content .auth-separator + form { margin-top: 0; }
.auth-sheet .auth-separator + .auth-options { margin-top: 0; }
.auth-social:disabled { opacity: 1; cursor: not-allowed; }
.auth-soon { margin-left: auto; font-size: 12px; white-space: nowrap; color: #51685e; background: #ffffff; border-radius: 5px; padding: 4px 6px; }
.auth-outline { border-color: #82988c; background: #fff; color: #21634f; }
.auth-outline:hover { background: #ffffff; border-color: #21634f; }
.auth-footnote, .auth-choices-back { display: block; font-size: 12px; text-align: center; margin-top: 22px; color: var(--auth-muted); }
.auth-choices-back { margin: 18px auto 0; width: fit-content; color: #21634f; }
.auth-form-screen { width: 100%; max-width: 410px; margin: auto; }
.auth-form-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 65px; }
.auth-form-header .auth-brand { font-size: 22px; }
.auth-form-header .brand-mark { width: 17px; height: 20px; color: #21634f; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #21634f; justify-self: start; min-height: 44px; }
.auth-back svg { transform: rotate(180deg); }
.auth-back:hover, .auth-switch a:hover, .auth-choices-back:hover { text-decoration: underline; }
.auth-form-content h1 { font-size: 28px; line-height: 1.3; font-weight: 700; }
.auth-switch { font-size: 13px; color: var(--auth-muted); margin-top: 10px; }
.auth-switch a { color: #21634f; }
.auth-form-content form { margin-top: 36px; }
.auth-form-content fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 23px; }
.auth-form-content .field { display: grid; gap: 9px; font-size: 12px; font-weight: 600; color: #183a30; }
.auth-form-content input { width: 100%; min-width: 0; min-height: 52px; padding: 13px 14px; border: 1px solid #82988c; border-radius: 8px; background: #ffffff; font-size: 15px; font-weight: 400; color: #183a30; caret-color: #21634f; }
.auth-form-content input::placeholder { color: #51685e; opacity: 1; }
.auth-form-content input:focus { background: white; border-color: #21634f; }
.auth-password-wrap { position: relative; margin-top: 9px; }
.auth-password-wrap input { padding-right: 56px; }
.auth-password-toggle { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: #51685e; display: grid; place-items: center; border-radius: 7px; }
.auth-password-toggle:hover { background: #ffffff; color: #21634f; }
.auth-password-toggle[aria-pressed=true] .eye-slash { display: none; }
.auth-hint { font-size: 12px; line-height: 1.7; color: var(--auth-muted); }
.auth-recovery { margin-top: -9px; text-align: right; }
.auth-recovery-link { color: #21634f; display: inline-flex; align-items: center; font-size: 12px; min-height: 44px; }
.auth-recovery-link:hover { text-decoration: underline; }
.auth-recovery .auth-hint { text-align: left; margin-top: 8px; }
.auth-form-content .auth-error { font-size: 13px; }
.auth-form-content fieldset:disabled { opacity: .7; }
.auth-form-content form[aria-busy=true] button[type=submit] { cursor: wait; }
.auth-form-content form[aria-busy=true] button[type=submit]::after { content: ''; width: 16px; height: 16px; border: 2px solid #ffffff70; border-top-color: white; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.auth-form-content form[aria-busy=true] button[type=submit] > svg { display: none; }
.auth-form-note { color: var(--auth-muted); font-size: 12px; text-align: center; margin-top: 24px; line-height: 1.7; }
.auth-development { font-size: 12px; color: var(--auth-muted); text-align: center; margin-top: 58px; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes auth-sheet-enter { from { transform: translateY(24px); } to { transform: translateY(0); } }

@media (max-width: 900px) {
  .auth-experience { display: block; position: relative; min-height: 100svh; }
  .auth-visual { position: absolute; inset: 0; min-height: 100%; }
  .auth-photo { object-position: 53% 35%; }
  .auth-photo-shade { background: linear-gradient(180deg, #164b3e50 0%, #164b3e20 32%, #08271fdd 72%, #061e18fa 100%); }
  .auth-visual-brand { top: calc(36px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); }
  .auth-brand { font-size: 29px; }
  .auth-content { position: relative; min-height: 100svh; padding: 0; }
  .auth-boas-vindas { min-height: 0; }
  .auth-boas-vindas .auth-content { min-height: 0; background: transparent; justify-content: flex-end; padding: max(100px, env(safe-area-inset-top)) max(26px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(26px, env(safe-area-inset-left)); }
  .auth-welcome-copy { margin: 0 auto; max-width: 440px; min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior-y: contain; }
  .auth-intro h1 { font-size: clamp(29px, 7.5vw, 38px); line-height: 1.25; max-width: 15ch; font-weight: 600; }
  .auth-intro p { font-size: 14px; margin-top: 18px; line-height: 1.7; max-width: 36ch; }
  .auth-welcome-copy > .auth-button { margin-top: 30px; }
  .auth-acesso .auth-content { justify-content: flex-end; padding-top: 220px; }
  .auth-photo-caption { display: none; }
  .auth-sheet { max-width: none; margin: 0; background: white; padding: 12px 26px calc(24px + env(safe-area-inset-bottom)); border-radius: 23px 23px 0 0; animation: auth-sheet-enter .35s cubic-bezier(.16, 1, .3, 1); }
  .auth-sheet-handle { display: block; height: 4px; width: 34px; border-radius: 4px; margin: 0 auto 24px; background: #d4dfd8; }
  .auth-sheet h1 { font-size: 23px; }
  .auth-description { margin-top: 7px; font-size: 13px; }
  .auth-options { margin-top: 24px; gap: 12px; }
  .auth-footnote { margin-top: 18px; font-size: 12px; }
  .auth-choices-back { margin-top: 12px; min-height: 32px; display: grid; place-items: center; }
  .auth-login .auth-visual, .auth-cadastro .auth-visual { display: none; }
  .auth-form-screen { min-height: 100svh; max-width: 500px; display: flex; flex-direction: column; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); }
  .auth-form-header { margin: 0; padding: calc(10px + env(safe-area-inset-top)) 20px 10px; border-bottom: 1px solid #d4dfd8; }
  .auth-form-header .auth-brand { font-size: 22px; }
  .auth-form-content { padding: 35px 25px; }
  .auth-form-content h1 { font-size: 25px; }
  .auth-form-content form { margin-top: 35px; }
  .auth-form-content input { font-size: 16px; }
  .auth-form-content fieldset { gap: 22px; }
  .auth-development { margin: auto 24px 24px; padding-top: 30px; }
  .auth-social { font-size: 12px; gap: 10px; }
}
@media (max-height: 650px) and (max-width: 900px) {
  .auth-boas-vindas .auth-content { padding-top: max(78px, env(safe-area-inset-top)); }
  .auth-intro h1 { font-size: 28px; }
  .auth-intro p { margin-top: 12px; }
  .auth-acesso .auth-content { padding-top: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-experience *, .auth-experience *::after { animation: none !important; transition: none !important; }
}
@media(max-width:900px) {
  .auth-acesso .auth-legal { color: var(--paper); }
}
