/* Sign-in and set-password pages: the photo fills the screen, the card sits on the left (on top on a phone). */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding: 24px 16px;
  background: var(--bg) url('/img/login.webp') center / cover no-repeat; }
.auth-card { position: relative; width: 100%; max-width: 440px; margin-left: clamp(0px, 6vw, 96px); padding: 32px 28px 24px;
  border-radius: 20px; background: var(--bg); color: var(--fg); box-shadow: 0 24px 60px color-mix(in srgb, var(--night) 28%, transparent); }
.auth-logo { display: block; height: 40px; width: auto; margin-bottom: 28px; }
:root[data-theme="dark"] .auth-logo.light, :root:not([data-theme="dark"]) .auth-logo.dark { display: none; }
.auth h1 { margin-bottom: 4px; }
.auth form { margin-top: 20px; display: grid; gap: 14px; }
.auth input[type="email"], .auth input[type="password"] { display: block; width: 100%; min-height: 48px; margin-top: 4px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: 400 16px/1.2 var(--font); }
.auth input:focus-visible { border-color: var(--accent); }
.btn.wide { width: 100%; min-height: 48px; }
.err { min-height: 1.5em; margin: 0; color: var(--fg); font-weight: 600; }
.err:empty { min-height: 0; }
.ask { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--fg2); font-size: 15px; display: grid; gap: 8px; }
.theme-btn { position: absolute; top: 24px; right: 20px; min-height: 36px; padding: 0 12px; font-size: 13px; }
@media (max-width: 640px) {
  .auth { align-items: flex-end; background-position: 70% center; }
  .auth-card { margin: 0 auto; padding: 24px 20px 20px; }
}
