.modal-backdrop.auth-backdrop {
  padding: 20px;
  background: rgb(0 0 0 / 10%);
  backdrop-filter: blur(4px);
}
.modal.auth-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 384px;
  max-width: 100%;
  max-height: min(92svh, 640px);
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(#05060d, rgb(5 6 13 / 80%)), #05060d;
  box-shadow: 0 0 0 1px rgb(250 250 250 / 10%);
  color: #fafafa;
  font-size: 14px;
  line-height: 20px;
}
.auth-modal::before {
  content: "";
  position: absolute;
  width: 288px;
  height: 192px;
  top: -96px;
  left: calc(50% - 144px);
  border-radius: 50%;
  background: rgb(255 187 2 / 20%);
  filter: blur(64px);
  pointer-events: none;
}
.auth-modal [data-auth-content] { position: relative; display: flex; flex-direction: column; min-height: 0; }
.auth-heading { flex-shrink: 0; padding: 24px 24px 8px; }
.auth-heading h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -.5px; }
.auth-heading p { margin: 4px 0 0; color: #9ca3b4; font-size: 14px; line-height: 20px; }
.auth-heading h2:focus { outline: none; }
.auth-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 16px 24px 24px; scrollbar-width: thin; scrollbar-color: #343744 transparent; }
.auth-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.auth-form--register { gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; min-height: 16px; font-size: 12px; line-height: 16px; }
.auth-label-row label { color: #9ca3b4; font-size: 12px; font-weight: 500; }
.auth-modal .auth-input { position: relative; display: flex; align-items: center; width: 100%; height: 44px; min-height: 44px; border: 1px solid #1b1e29; border-radius: 10px; background: rgb(27 30 41 / 21%); color: #9ca3b4; }
.auth-input > svg { flex: 0 0 16px; margin-left: 8px; }
.auth-modal .auth-input input { display: block; min-width: 0; width: 100%; min-height: 0; height: 32px; margin: 0; padding: 4px 10px 4px 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: #fafafa; font: inherit; }
.auth-input input::placeholder { color: #9ca3b4; opacity: 1; }
.auth-input:focus-within { border-color: #c49630; outline: 3px solid rgb(196 150 48 / 30%); }
.auth-input:has([aria-invalid="true"]) { border-color: #fb7185; }
.auth-modal .auth-eye { position: relative; display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 24px; min-height: 0; padding: 0; margin: 0 3.2px 0 0; border: 0; border-radius: 7px; background: transparent; color: #9ca3b4; }
.auth-eye::after { content: ""; position: absolute; top: -10px; right: -4.2px; width: 44px; height: 44px; }
.auth-modal .auth-input:has(.auth-eye) input { padding-right: 6px; }
.auth-eye svg { width: 14px; height: 14px; }
.auth-modal .auth-text-button { position: relative; min-height: 0; padding: 0; border: 0; background: transparent; color: #ffbb02; font: inherit; line-height: inherit; }
.auth-text-button::after { content: ""; position: absolute; inset: -14px 0; min-height: 44px; }
.auth-modal button { cursor: pointer; }
.auth-modal button:hover { filter: brightness(1.15); }
.auth-modal button:active { filter: brightness(1.25); }
.auth-modal .auth-submit, .auth-modal .auth-google { display: flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; line-height: 20px; }
.auth-modal .auth-submit { background: #795700; color: #fff; font-weight: 600; }
.auth-modal .auth-google { border-color: #1b1e29; background: rgb(27 30 41 / 21%); color: #fafafa; font-weight: 500; }
.auth-modal .auth-footer { margin: 0; color: #9ca3b4; text-align: center; font-size: 12px; line-height: 16px; }
.auth-footer .auth-text-button { font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #9ca3b4; font-size: 11px; line-height: calc(11px * 10 / 7); letter-spacing: .275px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #141620; }
.auth-modal .auth-close { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 8px; margin: 0; border: 0; border-radius: 8px; background: transparent; color: #fafafa; }
.auth-password-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-password-pair .auth-label-row { letter-spacing: -.3px; }
.auth-consent { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; color: #9ca3b4; font-size: 12px; line-height: 16px; cursor: pointer; }
.auth-consent::after { content: ""; position: absolute; inset: -6px 0; min-height: 44px; }
.auth-modal .auth-consent input { flex-shrink: 0; width: 13px; height: 13px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: #ffbb02; }
.auth-form--register .auth-submit { margin-top: 14px; }
.auth-modal .auth-demo-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0; color: #9ca3b4; font-size: 11px; line-height: calc(11px * 10 / 7); }
.auth-demo-note svg { width: 14px; height: 14px; }
.auth-modal .auth-feedback { margin: 0; color: #f4c46a; font-size: 12px; line-height: 18px; }
.auth-modal [hidden] { display: none; }
@media (max-width: 767px) {
  .modal-backdrop.auth-backdrop { align-items: end; padding: 16px 20px max(16px, env(safe-area-inset-bottom)); background: #0a0a0a; backdrop-filter: none; }
  .modal.auth-modal { width: 100%; max-height: min(92svh, 640px); border-radius: 14px; }
  .auth-modal::before { display: none; }
  .auth-modal .auth-input input { font-size: 16px; }
}
@media (max-width: 639px) {
  .auth-password-pair { grid-template-columns: 1fr; }
}
