.password-control { position: relative; display: block; min-width: 0; width: 100%; }
.password-control input { width: 100%; padding-right: 50px !important; }
.password-control .password-toggle {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46px; min-height: 44px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: var(--muted); cursor: pointer; box-shadow: none;
}
.password-toggle svg { width: 20px; height: 20px; }
.password-control .password-toggle:hover { color: var(--ink); background: var(--panel-strong); }
.password-toggle:focus-visible, .auth-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.password-control input::-ms-reveal { display: none; }
.password-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.auth-link { display: block; width: fit-content; color: var(--blue); text-decoration: underline; padding: 12px 0; font-size: 14px; }
.auth-link[hidden], .login-shell [hidden] { display: none !important; }
.login-form input, .invite-shell input { min-height: 46px; font-size: 16px; background: var(--panel); color: var(--ink); min-width: 0; }
.login-form label { min-width: 0; }
.login-form > button { min-height: 46px; }
.login-form > button[type="submit"] { background: #1264d7; border-color: #1264d7; color: #fff; }
.login-form > button[type="submit"]:disabled { opacity: .6; cursor: wait; }
.login-form input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.login-shell { min-height: 100svh; }
.login-panel h1, .invite-shell h1 { overflow-wrap: anywhere; }
.auth-description { font-size: 14px; line-height: 1.6; color: var(--muted); }
.form-status { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.form-status:not(.error) { color: var(--muted); }
.form-status:empty { display: none; }
.login-panel > .form-status:not(:empty) { margin-top: 18px; }
@media (max-width: 480px) {
  .login-shell { padding: 16px; }
  .login-panel { padding: 24px 20px; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #141819; --panel: #1e2426; --panel-strong: #282f32; --ink: #edf2f4; --muted: #b7c4cc; --line: #465258; --blue: #80bdff; --red: #ff9898; }
}
