.auth-view {
  color-scheme: dark;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 20px;
  color: #f5f5f2;
  background: #111314 url('auth-background.jpg') center / cover no-repeat;
  letter-spacing: 0;
}
.auth-panel {
  width: min(460px, 100%);
  padding: 30px 34px 22px;
  background: rgba(25, 28, 29, .88);
  border: 1px solid #666458;
  border-radius: 8px;
  box-shadow: 0 20px 64px #0008, inset 0 1px 0 #ffffff12;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.auth-identity { display: grid; justify-items: center; gap: 12px; text-align: center; border-bottom: 1px solid #ffffff26; padding-bottom: 22px; }
.auth-identity img { width: 72px; height: 72px; object-fit: contain; padding: 5px; background: #fff; border-radius: 8px; }
.auth-identity strong { font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-identity .eyebrow { margin: 0; color: #e9cb8d; font-size: 12px; line-height: 1.4; }
.auth-welcome { text-align: center; padding-top: 22px; }
.auth-welcome h1 { color: #fafaf6; font-size: 26px; line-height: 1.4; margin: 0 0 6px; }
.auth-welcome #authNote { font-size: 13px; line-height: 1.7; color: #c4c8c8; margin: 0 0 20px; }
.auth-panel form label { font-size: 13px; color: #eceded; font-weight: 600; margin-top: 16px; gap: 8px; }
.auth-panel input { height: 48px; border: 1px solid #5c6060; border-radius: 6px; background: #ffffff05; color: #fff; font-size: 16px; }
.auth-panel input::placeholder { color: #a9afaf; font-size: 14px; opacity: 1; }
.auth-input { display: block; position: relative; min-width: 0; }
.auth-input > svg { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; color: #aeb8b6; pointer-events: none; }
.auth-input input { padding-left: 42px; }
.auth-input.password-field input { padding-right: 52px; }
.auth-panel .password-toggle { right: 2px; top: 2px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 11px; background: transparent; color: #d4dcd9; display: grid; place-items: center; }
.auth-panel .password-toggle:hover { background: #ffffff12; color: #f0d5a3; }
.password-toggle svg { width: 20px; height: 20px; display: block; margin: auto; pointer-events: none; }
.auth-panel :is(input, button, a):focus-visible { outline: 3px solid #e9cb8d; outline-offset: 3px; border-color: #e9cb8d; }
.auth-hint { margin: 8px 0 0; color: #b6bfbd; font-size: 12px; line-height: 1.5; }
.auth-caps { margin: 6px 0 0; color: #f8d494; font-size: 12px; }
.auth-panel #authSubmit { display: flex; justify-content: center; align-items: center; gap: 12px; height: 48px; margin: 22px 0 0; background: #e8c98c; color: #24251e; border: 1px solid #f3dba8; font-size: 15px; box-shadow: 0 4px 20px #d6ad4820; }
.auth-panel #authSubmit:hover:not(:disabled) { background: #f3dcad; }
.auth-panel #authSubmit:disabled { cursor: wait; opacity: .65; }
.auth-panel #authSubmit svg { width: 19px; height: 19px; }
.auth-panel .form-error { color: #ffb9b6; line-height: 1.6; font-size: 13px; overflow-wrap: anywhere; margin: 12px 0 0; min-height: 0; }
.auth-panel .form-error:empty { display: none; }
.auth-help { border-top: 1px solid #ffffff26; margin-top: 22px; padding-top: 18px; }
.auth-help p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; color: #bfc9c5; font-size: 12px; line-height: 1.7; }
.auth-help svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-help p svg { margin-top: 2px; color: #d9be85; }
.auth-help a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; font-size: 13px; color: #e7cd98; text-decoration: none; }
.auth-help a:hover { color: #fff0ce; background: #ffffff08; }
@media (max-width: 480px) {
  .auth-view { padding: 20px 14px; }
  .auth-panel { padding: 24px 22px 16px; }
  .auth-identity { gap: 9px; padding-bottom: 18px; }
  .auth-identity strong { font-size: 19px; }
  .auth-identity img { width: 64px; height: 64px; }
  .auth-welcome { padding-top: 18px; }
  .auth-welcome h1 { font-size: 24px; }
}
@media (prefers-reduced-transparency: reduce) { .auth-panel { background: #191c1d; backdrop-filter: none; } }
