#authMain .auth-card {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 512px;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 32px;
  overflow: visible;
}
#authMain .auth-card > * {
  position: static;
  inset: auto;
  width: auto;
  margin: 0;
}
#authMain .auth-title { white-space: normal; transform: none; font-size: 32px; line-height: 1.25; }
#authMain .auth-stage { padding: 32px 16px; gap: 24px; scrollbar-gutter: stable both-edges; }
#authMain .auth-brand { position: static; flex-shrink: 0; }
#authMain .auth-transition-layer {
  position: fixed;
  inset: 0;
  z-index: 3001;
  overflow: hidden;
  pointer-events: none;
}
#authMain .auth-card.auth-card-ghost {
  position: absolute;
  inset: auto;
  max-width: none;
  margin: 0;
  z-index: 3001;
  pointer-events: none;
  overflow: hidden;
}
@supports not (scrollbar-gutter: stable both-edges) {
  #authMain .auth-stage { overflow-y: scroll; }
}
#authMain .auth-field { display: flex; flex-direction: column; gap: 8px; }
#authMain .auth-field label { margin: 0; line-height: 1.5; }
#authMain .auth-field input {
  height: 60px;
  border: 1px solid transparent;
  outline: none;
  box-shadow: none;
  transition: border-color .15s ease;
}
#authMain .auth-field input:focus { border-color: #aaa89f; outline: none; box-shadow: none; }
#authMain .auth-field input[aria-invalid="true"] { border-color: #e8a5a5; }
#authMain .auth-input-control { position: relative; }
#authMain .auth-input-control .pw-toggle-btn {
  top: 50%;
  right: 12px;
  bottom: auto;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
}
#authMain .field-hint { display: none; min-height: 0; margin: 0; font-size: 14px; line-height: 1.6; }
#authMain .field-hint.visible { display: block; }
#authMain .auth-field-feedback {
  height: 0;
  min-width: 0;
  margin-top: -8px;
  overflow: hidden;
  opacity: 0;
}
#authMain .auth-field-feedback .field-hint {
  display: block;
  padding-top: 8px;
  overflow-wrap: anywhere;
}
#authMain .field-hint.error, #authMain .auth-error { color: #f1adad; }
#authMain .auth-error { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
#authMain .auth-error:empty, #authMain .auth-status:empty { display: none; }
#authMain .auth-status { font-size: 14px; line-height: 1.6; color: #fffcef; }
#authMain .auth-primary { flex-shrink: 0; width: 100%; }
#authMain .auth-primary:hover { transform: none; background: #79b3fa; }
#authMain .auth-primary:disabled { cursor: default; opacity: .55; transform: none; }
#authMain .auth-google { min-height: 56px; }
#authMain .auth-separator { margin: 16px 0 0; }
#authMain .auth-footer { text-align: center; line-height: 1.6; }
#authMain .auth-otp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
#authMain .auth-otp-entry { position: relative; }
#authMain .auth-otp-slot { width: 100%; height: 64px; line-height: 62px; }
#authMain .auth-otp-entry:focus-within .auth-otp-slot { border-color: #fffcef; }
#authMain .auth-otp-entry:has([aria-invalid="true"]) .auth-otp-slot { border-color: #e8a5a5; }
#authMain .auth-otp-slot.is-filled { border-color: #aaa89f; }
#authMain .auth-otp-address { display: block; overflow-wrap: anywhere; margin-top: 8px; color: #fffcef; }
#authMain .auth-resend-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 1.6; }
#authMain .auth-resend-row button, #authMain .auth-text-button { border: 0; background: none; padding: 0; font: inherit; color: #92bef7; cursor: pointer; }
#authMain .auth-resend-row button:disabled { color: #b5b3ad; cursor: default; }
#authMain .auth-text-button { align-self: center; }
#authMain .auth-legacy-fields { display: none; }
@media (max-width: 559px) {
  #authMain .auth-card { padding: 24px; gap: 22px; }
  #authMain .auth-stage { padding: 24px 12px; }
  #authMain .auth-title { font-size: 28px; }
  #authMain .auth-otp-grid { gap: 6px; }
  #authMain .auth-otp-slot { height: 54px; font-size: 26px; line-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  #authMain .auth-field input, #authMain .auth-primary { transition: none; }
}
