/* Inclui o campo legado de login; não depende dos rótulos nem do modo de cadastro.
   A especificidade mantém estes refinamentos acima dos estilos inline atuais. */
.wrap:has(.auth-surface, #bootstrap-email) > h1 {
  overflow-wrap: anywhere;
}
.wrap:has(.auth-surface, #bootstrap-email) > h1 + p {
  color: #526173;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) {
  max-width: 820px;
  min-width: 0;
  --auth-green: #10B981;
  --auth-green-hover: #059669;
  --auth-ink: #001b13;
  --auth-link: #047857;
  --auth-muted: #526173;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) .card {
  box-shadow: none;
  border-radius: 12px;
  overflow: visible;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) :is(p, strong, label, .small) {
  overflow-wrap: anywhere;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) :is(label, input, select) {
  font-size: 16px;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) :is(input, select) {
  min-height: 48px;
  border-color: #7b8798;
  caret-color: var(--auth-link);
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) input::placeholder {
  color: var(--auth-muted);
  opacity: 1;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) :is(button, .button) {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--auth-green);
  color: var(--auth-ink);
  line-height: 1.5;
  transform: none;
  transition: background .18s;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) button:hover:not(:disabled) {
  background: var(--auth-green-hover);
  transform: none;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) button:disabled {
  background: #e5e7eb;
  color: #4b5563;
  cursor: not-allowed;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) button.quiet {
  background: #fff;
  color: #374151;
  border: 1px solid #7b8798;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) button.quiet:hover {
  background: #f3f6fa;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) .oauth-button {
  flex-wrap: nowrap;
  gap: 10px;
  padding-inline: 12px;
  border-color: #747775 !important;
  color: #1f1f1f !important;
  background: #fff !important;
  margin-top: 0;
}
.wrap .oauth-button .oauth-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}
.wrap .oauth-button .oauth-status { display: block; }
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) .oauth-disabled {
  opacity: 1;
  background: #fff !important;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) .oauth-disabled .small {
  margin-left: 0;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) :is(.small, .divider) {
  font-size: 14px;
  color: var(--auth-muted);
  line-height: 1.65;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) .consent {
  min-height: 48px;
  gap: 12px;
  align-items: flex-start;
  padding-block: 8px;
  cursor: pointer;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) .consent input {
  width: 28px;
  height: 28px;
  min-height: 28px;
  flex: 0 0 28px;
  margin: 0;
  accent-color: var(--auth-link);
  cursor: pointer;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) a:not(.button) {
  color: var(--auth-link);
  text-underline-offset: 3px;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) [autocomplete=one-time-code] {
  width: 100%;
  max-width: 360px;
  font-size: 24px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.wrap .auth-surface .verification-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.wrap .auth-surface .verification-progress li { color: var(--auth-muted); }
.wrap .auth-surface .verification-progress [aria-current=step] {
  color: var(--auth-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.wrap :is(.auth-surface, .grid:has(#bootstrap-email)) :focus-visible,
.wrap > .error:focus {
  outline: 3px solid #047857;
  outline-offset: 3px;
}
.wrap .auth-surface form + form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}
@media (prefers-reduced-motion: reduce) {
  .wrap :is(.auth-surface, .grid:has(#bootstrap-email)) :is(button, .button) { transition: none; }
}
