/* Laumaz authentication: white form + orange welcome panel, scoped to these routes. */
body.auth-page {
  --auth-ink: #201710;
  --auth-muted: #6f6259;
  --auth-orange: #bf4806;
  --auth-line: #e5ddd6;
  --text: var(--auth-ink);
  --text2: var(--auth-muted);
  --text3: var(--auth-muted);
  --text-dim: var(--auth-muted);
  --accent: var(--auth-orange);
  --border: var(--auth-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  margin: 0;
  padding: 24px clamp(16px, 4vw, 48px);
  gap: 24px;
  color: #f8f3ee;
  background: radial-gradient(ellipse at 65% 10%, #30190f 0, transparent 60%), #0c0a09;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page a { text-underline-offset: 4px; }
.auth-home { width: min(100%, 960px); color: #c9bcb1; font-size: 13px; text-decoration: none; }
.auth-home:hover { color: #fff; }
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 960px);
  margin-block: auto;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 90px #0006;
}
.auth-panel { min-width: 0; padding: 32px 40px; color: var(--auth-ink); background: #fff; color-scheme: light; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; text-decoration: none; color: var(--auth-ink); font-size: 19px; font-weight: 700; }
.auth-brand img { display: block; border-radius: 9px; }
.auth-title { margin: 0 0 8px; font: 700 26px/1.15 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.8px; text-align: left; }
.auth-subtitle { margin: 0 0 20px; max-width: 42ch; font-size: 13px; line-height: 1.55; color: var(--auth-muted); text-align: left; }
.auth-panel .form-group { margin-bottom: 12px; }
.auth-panel .form-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--auth-ink); }
.auth-panel .form-input { display: block; width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid #9b897b; border-radius: 11px; color: var(--auth-ink); background: #faf8f6; font: inherit; font-size: 14px; box-shadow: none; }
.auth-panel .form-input::placeholder { color: #85776c; opacity: 1; }
.auth-panel .form-input:focus { background: #fff; border-color: var(--auth-orange); outline: 3px solid #bf480621; outline-offset: 1px; }
.auth-password { position: relative; }
.auth-password .form-input { padding-right: 54px; }
.auth-reveal { position: absolute; inset: 1px 1px 1px auto; width: 46px; border: 0; border-radius: 10px; background: transparent; color: #736254; cursor: pointer; display: grid; place-items: center; }
.auth-reveal:hover { color: var(--auth-orange); background: #f4ece5; }
.auth-reveal svg { width: 20px; height: 20px; }
.auth-reveal[aria-pressed="true"] { color: var(--auth-orange); background: #fff0e6; }
.auth-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.auth-field-head .form-label { margin: 0; }
.auth-inline-link { color: var(--auth-orange); font-size: 12px; }
.auth-panel .btn { min-height: 46px; border-radius: 11px; font-family: inherit; font-size: 14px; font-weight: 600; display: flex; justify-content: center; align-items: center; text-decoration: none; }
.auth-panel .btn.primary { width: 100%; padding: 13px 18px; color: #fff; border: 1px solid var(--auth-orange); background: var(--auth-orange); box-shadow: 0 4px 12px #bf480624; cursor: pointer; }
.auth-panel .btn.primary:hover { background: #a43c04; border-color: #a43c04; transform: none; }
.auth-panel .btn:disabled { opacity: .65; cursor: wait; }
.auth-remember { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: -5px 0 12px; color: var(--auth-muted); font-size: 12px; cursor: pointer; }
.auth-remember input { width: 17px; height: 17px; accent-color: var(--auth-orange); }
.auth-panel .divider { display: flex; align-items: center; gap: 12px; color: var(--auth-muted); margin: 22px 0 16px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.auth-panel .divider::before, .auth-panel .divider::after { content: ''; height: 1px; background: var(--auth-line); flex: 1; }
.auth-links { margin-top: 20px; color: var(--auth-muted); font-size: 13px; text-align: center; }
.auth-links a, .auth-footer a { color: var(--auth-orange); }
.auth-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 11.5px; line-height: 1.6; }
.auth-welcome { background: linear-gradient(145deg, #c94e08, #a53605); color: #fff; padding: 56px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; }
.auth-emblem { width: 112px; height: 88px; border: 1px solid #ffffff6b; background: #ffffff14; border-radius: 20px; display: grid; place-items: center; margin-bottom: 6px; }
.auth-emblem svg { width: 46px; height: 46px; }
.auth-welcome h2 { margin: 0; color: #fff; font: 700 clamp(28px, 3vw, 36px)/1.15 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -1px; }
.auth-welcome p { margin: 0; max-width: 33ch; color: #fff; font-size: 14px; line-height: 1.7; }
.auth-switch { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 46px; padding: 12px 26px; border: 1px solid #ffffff9c; border-radius: 99px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; transition: background .18s ease; }
.auth-switch:hover { background: #ffffff20; }
.auth-welcome .auth-welcome-note { font-size: 12px; margin-top: 10px; line-height: 1.6; }
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.auth-legal a { padding-block: 8px; color: #c9bcb1; font-size: 12px; text-decoration: none; }
.auth-legal a:hover { color: #fff; text-decoration: underline; }
.auth-page :focus-visible { outline: 3px solid #bf4806; outline-offset: 4px; }
.auth-welcome :focus-visible { outline-color: #fff; }
.auth-panel .alert { display: flex; align-items: flex-start; gap: 10px; border-radius: 10px; padding: 12px 14px; margin: 0 0 20px; font-size: 13px; line-height: 1.6; }
.auth-panel .alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.auth-panel .alert.error { color: #9a2424; border: 1px solid #f2c6c6; background: #fff3f3; }
.auth-panel .alert.success { color: #25613d; border: 1px solid #bddbc9; background: #eef8f1; }
.auth-cancel { background: none; border: 0; color: var(--auth-orange); cursor: pointer; padding: 12px; font: inherit; font-size: 13px; text-decoration: underline; }
.auth-panel .pw-hint { color: var(--auth-muted); font-size: 12px; line-height: 1.6; margin-top: 8px; }
.auth-panel .strength { height: 4px; background: #e5ddd6; margin-top: 10px; border-radius: 4px; overflow: hidden; }
.auth-panel .strength-fill { height: 100%; width: 0; background: #9a2424; transition: width .2s ease; }
.auth-panel .strength-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--auth-muted); margin-top: 6px; }
.auth-panel .strength-label strong { font-weight: 500; }
.auth-panel .auth-requirements { display: block; }
.auth-panel .form-label { line-height: 1.25; margin-bottom: 6px; }
.auth-panel .form-input { min-height: 44px; padding-block: 10px; line-height: 22px; }
.auth-panel .social-login-group { margin-bottom: 0 !important; }
.auth-shell[data-auth-mode="register"] form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.auth-shell[data-auth-mode="register"] form > .form-group:nth-of-type(n+3),
.auth-shell[data-auth-mode="register"] form > button { grid-column: 1 / -1; }
.auth-shell[data-auth-mode="register"] .strength-label { display: none; }
/* The welcome panel switches sides in the real server-rendered pages. */
@media (min-width: 701px) {
  .auth-shell[data-auth-mode="login"], .auth-shell[data-auth-mode="register"] { min-height: 685px; }
  .auth-shell[data-auth-mode="login"] .auth-panel { display: flex; flex-direction: column; justify-content: center; }
  .auth-shell[data-auth-mode="register"] .auth-panel { grid-column: 2; grid-row: 1; }
  .auth-shell[data-auth-mode="register"] .auth-welcome { grid-column: 1; grid-row: 1; }
  .auth-shell:is([data-auth-mode="login"], [data-auth-mode="register"]) .auth-links { display: none; }
}
.auth-welcome { position: relative; z-index: 2; }
@media (max-width: 700px) {
  body.auth-page { padding: 18px 16px; gap: 18px; }
  .auth-shell { grid-template-columns: 1fr; max-width: 480px; border-radius: 22px; }
  .auth-home { max-width: 480px; }
  .auth-panel { padding: 28px 24px; }
  .auth-brand { margin-bottom: 24px; }
  .auth-welcome { padding: 28px 24px; gap: 14px; }
  .auth-emblem { display: none; }
  .auth-welcome h2 { font-size: 26px; }
  .auth-welcome-note { display: none; }
}
@media (max-width: 420px) {
  .auth-shell[data-auth-mode="register"] form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
