.auth-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100vh;
  min-height: 100svh;
}
.auth-brand-side {
  color-scheme: dark;
  --text: #fff;
  --muted: #c3c3c3;
  --focus: #cbd5ff;
  --logo-brightness: 1;
  --heading-gradient: linear-gradient(180deg, #fff 10%, #ededed 43%, #c3c3c3 92%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: start;
  gap: var(--space-8);
  padding: clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
  background: #080808;
  color: var(--text);
}
.auth-brand-side > :not(canvas) { position: relative; }
.auth-brand-side .brand img { width: clamp(8.5rem, 13vw, 12rem); }
.auth-tagline {
  align-self: center;
  max-width: 13ch;
  font-size: clamp(2.6rem, 4.7vw, 5rem);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -.072em;
  color: var(--text);
}
.auth-copyright { color: var(--muted); font-size: .875rem; }
.auth-form-side {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  color: var(--text);
  background: var(--canvas);
}
.auth-heading {
  display: grid;
  justify-items: start;
  gap: 30px;
}
.action-link-back:is(:hover, :focus-visible) { color: #000; }
.auth-forms {
  align-self: center;
  justify-self: center;
  width: min(100%, 32rem);
  padding-block: clamp(2.5rem, 7vh, 5rem);
}
.auth-heading h1 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 450;
  letter-spacing: -.045em;
  line-height: 1.16;
}
.auth-heading h1:focus { outline: none; }
.auth-intro { margin-top: var(--space-2); }
.auth-form { margin-top: var(--space-6); }
.auth-form fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.auth-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: var(--space-3);
}
.auth-field {
  display: block;
  width: fit-content;
  margin-block: var(--space-4) var(--space-2);
  font-size: .875rem;
  font-weight: 600;
}
.auth-form input {
  display: block;
  width: 100%;
  padding-inline: .8rem;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.auth-form input, .auth-submit { min-height: 2.75rem; padding-block: .5rem; }
.auth-form input:focus { outline: none; border-color: var(--control-active-line); }
.auth-password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: var(--space-1) var(--space-3);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .875rem;
}
.auth-password-rules li { display: flex; align-items: center; gap: var(--space-2); }
.auth-rule-badge {
  flex: none;
  width: .5rem;
  height: .5rem;
  background: var(--control-line);
  border-radius: 50%;
}
.auth-rule-badge[data-verified] { background: var(--success); }
.auth-consent {
  margin-top: 1.625rem;
  font-size: .875rem;
  text-align: center;
}
.auth-view[data-mode="recuperar-senha"]:not([hidden]) ~ .auth-consent { display: none; }
.auth-consent .auth-text-link { color: var(--muted); }
.auth-consent .line-link-label::after {
  inset-block-start: calc(100% + .125rem);
  background: currentColor;
}
.auth-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--muted);
  font-size: .875rem;
}
.auth-identity span { overflow-wrap: anywhere; }
.auth-identity button {
  padding: .25rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}
.password-field { position: relative; }
.password-field input { padding-right: 3rem; }
.password-toggle {
  position: absolute;
  inset: 2px 2px 2px auto;
  width: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-toggle:hover { color: var(--text); }
.password-toggle span {
  width: .93rem;
  height: .93rem;
  position: relative;
  border: 1px solid currentColor;
  border-radius: 74% 0;
  transform: rotate(45deg);
}
.password-toggle span::before {
  content: "";
  position: absolute;
  inset: 30%;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.password-toggle[data-visible] span::after {
  content: "";
  position: absolute;
  inset: 46% -24% auto;
  height: 1px;
  background: currentColor;
  transform: rotate(-90deg);
}
.auth-link {
  color: var(--text);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.auth-link:hover { color: var(--muted); }
.auth-text-link { color: var(--text); font-weight: 700; text-decoration: none; }
.auth-recovery {
  display: block;
  width: fit-content;
  margin: var(--space-3) 0 0 auto;
  font-size: .875rem;
}
.auth-submit { width: 100%; margin-top: var(--space-6); cursor: pointer; }
.auth-social { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.auth-social-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: .875rem;
}
.auth-social-divider::before, .auth-social-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-provider { gap: .625rem; width: 100%; background: var(--canvas); cursor: pointer; }
.auth-provider img { flex-shrink: 0; }
.auth-provider[data-provider="Apple"] img { translate: 0 -1px; }
.auth-switch { margin-top: var(--space-6); font-size: .9375rem; }
.auth-availability { color: var(--subtle); font-size: .875rem; }
.auth-availability:not(:empty) { margin-top: var(--space-4); }
@media (prefers-reduced-motion: no-preference) {
  .auth-view:not([hidden]) { animation: enter-on-scroll 420ms var(--ease-out) backwards; }
}
@media (max-width: 720px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-brand-side { grid-template-rows: auto; min-height: 6rem; align-items: center; padding: .875rem 1.25rem; }
  .auth-tagline, .auth-copyright { display: none; }
  .auth-form-side { padding: var(--space-4) var(--space-6) var(--space-8); }
  .auth-forms { padding-block: var(--space-8); }
}
