/* Katsushika Hokusai, The Great Wave, The Metropolitan Museum of Art, Open Access (DP130155). */
:root {
  color-scheme: light;
  --paper: #fbfaf5;
  --ink: #172832;
  --quiet: #52656d;
  --rule: #b7c2c0;
  --action: #174b65;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #18282e;
  --ink: #f0f2e9;
  --quiet: #c1cecc;
  --rule: #657779;
  --action: #b1dae2;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--workspace-font); }
.auth-page { min-height: 100dvh; display: grid; align-items: center; position: relative; isolation: isolate; }
.auth-page::before { content: ""; position: absolute; z-index: -1; inset: 0 33% 0 0; background: url("./login-print.webp") center left / cover no-repeat; }
.auth-shell { width: 44%; margin-left: auto; align-self: stretch; display: grid; align-items: center; padding: 3rem max(4%, 24px); background: var(--paper); border-left: 1px solid var(--rule); }
.auth-panel { width: 100%; max-width: 24rem; margin-inline: auto; }
.auth-topline { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 36px; }
.brand strong, .brand small { display: block; }
.brand small, .auth-message { color: var(--quiet); }
.auth-form { display: grid; gap: 18px; }
h1, p { margin: 0; }
h1 { font-size: 2rem; font-weight: 650; }
.eyebrow { display: none; }
.auth-form label { display: block; font-size: .875rem; font-weight: 600; }
button, input { font: inherit; color: inherit; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--paper); }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
input { display: block; height: 46px; margin-top: 6px; width: 100%; padding: 8px 12px; }
.theme-toggle { padding: 6px 12px; font-size: .875rem; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 4.2rem; }
#password-toggle { position: absolute; inset: 1px 1px 1px auto; padding: 0 14px; background: transparent; border: 0; font-size: .875rem; color: var(--action); }
#auth-submit { min-height: 46px; color: var(--paper); background: var(--action); border-color: var(--action); font-weight: 650; }
#auth-submit:disabled { opacity: .65; }
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; padding: 10px 16px; border-radius: var(--radius-control); background: var(--ink); color: var(--paper); }
.hidden { display: none; }
@media (max-width: 740px) {
  .auth-page { display: block; padding-top: min(27dvh, 220px); }
  .auth-page::before { inset: 0 0 auto; height: min(27dvh, 220px); background-position: 30% 35%; }
  .auth-shell { width: 100%; border: 0; border-top: 1px solid var(--rule); padding: 24px 20px 36px; }
  .auth-topline { margin-bottom: 22px; }
}
