.auth-dialog {
  width: 460px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 28px);
  padding: 36px 34px 26px;
  text-align: left;
}
.auth-dialog [hidden] { display: none !important; }
.auth-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; padding-right: 15px; }
.auth-heading img { flex: 0 0 48px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.auth-dialog .auth-heading h2 { font-size: 23px; letter-spacing: -.4px; margin: 0; line-height: 1.5; }
.auth-heading p { color: #7a806e; font-size: 13px; margin: 3px 0 0; }
.auth-field { margin: 0 0 20px; }
.auth-dialog .auth-field label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auth-label-row > button { font-size: 12px; color: var(--green); padding: 0; }
.auth-email-field, .auth-password-field { display: flex; align-items: center; overflow: hidden; border: 1px solid #dedfd1; border-radius: 12px; background: #fcfbf6; }
.auth-dialog input:not([type=checkbox]) { min-width: 0; width: 100%; height: 50px; margin: 0; padding: 0 14px; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-radius: 0; }
.auth-dialog input::placeholder { color: #95998a; font-size: 14px; }
.auth-email-field:focus-within, .auth-password-field:focus-within { border-color: #899970; box-shadow: 0 0 0 3px #65784c12; }
.auth-email-field input:focus, .auth-password-field input:focus { outline: 0; }
.auth-email-field > span { flex-shrink: 0; padding: 0 13px; line-height: 50px; font-size: 14px; color: #6a765c; background: #f0f1e7; border-left: 1px solid #dedfd1; }
.auth-password-toggle { display: grid; place-items: center; flex: 0 0 46px; height: 46px; color: #7a846e; }
.auth-password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.auth-password-toggle .eye-slash { display: none; }
.auth-password-toggle[aria-pressed=true] .eye-slash { display: block; }
.auth-code-row { display: flex; align-items: stretch; gap: 9px; }
.auth-dialog .auth-code-row > input { border: 1px solid #dedfd1; border-radius: 12px; background: #fcfbf6; letter-spacing: 3px; }
.auth-code-row > input::placeholder { letter-spacing: 0; }
.auth-code-row > button { flex: 0 0 114px; border: 1px solid #d7ddc9; background: #eff2e5; color: var(--green-dark); border-radius: 12px; font-size: 13px; font-weight: 600; }
.auth-code-row > button:hover:enabled { background: #e5ebd6; }
.auth-dialog .auth-field-note { font-size: 11px; line-height: 1.8; margin: 6px 0 0; color: #79816b; overflow-wrap: anywhere; }
.auth-field-note:empty { display: none; }
.auth-dialog #auth-submit { width: 100%; margin-top: 21px; min-height: 49px; font-size: 15px; font-weight: 600; border-radius: 12px; }
.auth-dialog .auth-switch { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 13px; color: #818574; margin: 21px 0 0; }
.auth-switch > button { font-weight: 600; color: var(--green-dark); padding: 4px; }
.auth-dialog .auth-terms-note { border-top: 1px solid var(--line); padding-top: 18px; margin: 20px 0 0; font-size: 11px; line-height: 1.9; color: #838776; text-align: center; }
.auth-dialog .inline-link { color: var(--green-dark); text-decoration: none; padding: 0 2px; }
.auth-dialog .inline-link:hover, .auth-label-row > button:hover { text-decoration: underline; }
.auth-consent { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; font-size: 11px; color: #727b65; line-height: 1.9; }
.auth-consent input { width: 15px; height: 15px; margin: 0 4px 0 0; accent-color: var(--green); }
.auth-dialog .auth-consent label { display: inline; font-size: inherit; font-weight: 400; margin: 0; cursor: pointer; }
.auth-error { color: #a34f3a; font-size: 12px; line-height: 1.8; margin: 12px 0 0; }
.auth-error:empty { display: none; }
.auth-dialog .auth-status { font-size: 11px; margin: 12px 0 0; }
.auth-dialog button:disabled { cursor: not-allowed; opacity: .6; transform: none; }
@media (max-width: 620px) {
  .auth-dialog { padding: 30px 22px 23px; }
  .auth-dialog .auth-heading h2 { font-size: 22px; }
  .auth-heading { margin-bottom: 24px; gap: 12px; }
  .auth-field { margin-bottom: 17px; }
  .auth-email-field > span { font-size: 13px; padding: 0 10px; }
  .auth-code-row > button { flex-basis: 104px; font-size: 12px; }
  .auth-dialog input:not([type=checkbox]) { padding: 0 12px; }
}
