@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 50% 24%, var(--page-glow) 0, var(--bg) 76%); }
.page-tools { min-height: 68px; display: flex; align-items: center; justify-content: flex-end; padding: 12px 24px; }
.theme-controls { display: none; align-items: center; gap: 4px; }
:root[data-theme-preference] .theme-controls { display: flex; }
.theme-option {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; min-height: 44px; padding: 8px 10px;
  border: 1px solid transparent; border-radius: var(--radius-control);
  color: var(--muted); background: transparent; cursor: pointer;
  font: inherit; font-size: 12px; line-height: 1.4; font-weight: 550;
  transition: none;
}
.theme-option:hover { background: var(--selected); color: var(--text); }
.theme-option[aria-pressed="true"] { color: var(--accent); background: var(--selected); font-weight: 650; }
.theme-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-option svg, .enter-button svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.entry { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: grid; place-items: center; padding: 24px 24px 64px; }
.entry-content { width: min(100%, 420px); }
.brand { display: flex; justify-content: center; margin-bottom: 28px; }
.brand img { display: block; width: 156px; height: 68px; }
.brand .brand-dark { display: none; }
:root[data-theme="dark"] .brand .brand-light { display: none; }
:root[data-theme="dark"] .brand .brand-dark { display: block; }
.login { padding: 32px 36px 24px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow); }
.section-line { display: block; width: 28px; height: 3px; margin-bottom: 16px; border-radius: 3px; background: var(--accent); }
h1 { margin: 0 0 28px; font-size: 26px; line-height: 1.25; font-weight: 650; letter-spacing: -.8px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field + .field { margin-top: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 650; color: var(--text); }
.field input { appearance: none; width: 100%; height: 46px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--field); font: inherit; font-size: 14px; color: var(--text); padding: 0 12px; opacity: 1; }
.enter-button { width: 100%; min-height: 44px; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand .brand-light { display: none; }
  :root:not([data-theme]) .brand .brand-dark { display: block; }
}
@media (max-width: 480px) {
  .page-tools { padding: 12px 16px; }
  .entry { padding: 20px 20px 48px; }
  .login { padding: 28px 24px 20px; }
  .brand { margin-bottom: 24px; }
}
@media (max-height: 640px) and (min-width: 481px) {
  .entry { padding-block: 20px; }
  .brand { margin-bottom: 20px; }
  .login { padding-block: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-option { transition: none; }
}

.field input:focus-visible, .enter-button:focus-visible, .password-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.enter-button:hover:not(:disabled) { background: var(--selected); }
.enter-button:disabled { color: var(--disabled); cursor: wait; }
.password-control { position: relative; }
.password-control input { padding-right: 100px; }
.password-toggle { position: absolute; right: 2px; top: 1px; height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: var(--radius-control); color: var(--muted); background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.password-toggle[hidden] { display: none; }
.password-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.form-error { margin: 16px 0 0; padding: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-error[hidden] { display: none; }
.account h1 { margin-bottom: 12px; font-size: 23px; overflow-wrap: anywhere; }
.account-email { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
