/* Shared password controls, including account dialogs. */
.password-field { position: relative; }
.password-field input:not([type="file"]) { padding-right: 60px; min-height: 50px; }
.password-eye {
  position: absolute; right: 3px; top: 3px;
  display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border-radius: 7px; background: transparent;
  color: var(--muted); touch-action: manipulation;
}
.password-eye:hover { color: var(--green); background: var(--theme-soft); }
.password-eye[aria-pressed="true"] { color: var(--green); background: var(--theme-selected); }
.password-eye:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.password-eye svg { width: 21px; height: 21px; }
.password-field input::-ms-reveal { display: none; }
.password-caps { margin: 8px 0 0; color: var(--green); font-size: 12px; line-height: 1.5; }

/* Keep the established light/dark appearance with clearer form spacing. */
.auth-screen { padding: 32px 24px; }
.auth-panel { max-width: 420px; }
.auth-brand { margin-bottom: 22px; }
.auth-card { padding: 28px; border-radius: 16px; box-shadow: 0 12px 38px #172c2310; }
.auth-card h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.6px; }
.auth-card > .muted { margin-bottom: 22px; line-height: 1.6; }
.auth-tabs { margin-bottom: 24px; border: 1px solid var(--line); }
.auth-tabs button { min-height: 42px; font-size: 14px; font-weight: 550; }
.auth-tabs button.active { box-shadow: 0 1px 4px #172c2314; }
.auth-field + .auth-field { margin-top: 18px; }
.auth-field > label { margin: 0 0 8px; font-size: 13px; line-height: 20px; }
.auth-card input:not([type="file"]) { min-height: 50px; font-size: 16px; line-height: 24px; }
.auth-card input::placeholder { color: var(--muted); opacity: 1; }
.auth-card .input-wrap > span { top: 13px; }
.password-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -7px 0 4px; }
.password-label label { margin: 0; font-size: 13px; line-height: 20px; }
.auth-help { min-height: 44px; padding: 8px 0 8px 8px; background: transparent; color: var(--green); font-size: 12px; line-height: 18px; text-align: right; }
.auth-help:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-card #register-note { margin: 12px 0 0; line-height: 1.6; }
.auth-card #auth-error:empty { display: none; }
.auth-card #auth-error:not(:empty) { margin: 16px 0 0; padding: 11px 12px; border: 1px solid #edceca; border-radius: 8px; background: #fff4f2; font-size: 13px; line-height: 1.6; }
.auth-card #auth-submit { margin-top: 22px; min-height: 48px; font-size: 14px; border-radius: 9px; }
.auth-card #auth-submit[aria-busy="true"] svg { display: none; }
.auth-trust { margin-top: 22px; padding-top: 18px; font-size: 11px; }
.auth-footer { margin-top: 12px; gap: 6px; flex-wrap: wrap; }
.auth-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border-radius: 8px; }
.auth-footer button:hover { background: var(--theme-soft); color: var(--theme-text); }
.auth-footer svg { width: 15px; height: 15px; }
[data-theme="dark"] .auth-card { box-shadow: 0 12px 38px #0002; }
[data-theme="dark"] .auth-card #auth-error:not(:empty) { border-color: #694145; background: #35252b; }
@media (max-width: 720px) {
  .auth-screen { padding: max(24px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)); }
  .auth-panel { max-width: 420px; }
  .auth-card { padding: 26px 22px; }
  .auth-brand { margin-bottom: 20px; }
}
@media (max-width: 360px) {
  .auth-screen { padding-left: 12px; padding-right: 12px; }
  .auth-card { padding: 24px 18px; }
  .password-label { gap: 8px; }
}
@media (max-height: 760px) {
  .auth-screen { align-items: flex-start; padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .auth-brand { margin-bottom: 18px; }
}
