/* Login and registration layout. */
body.auth-page { background: var(--color-bg-auth); }

.auth-header {
  height: var(--auth-header);
  padding: 0 var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface-glass);
}
.auth-brand .brand-logo { font-size: 22px; }
.auth-header-actions { display: flex; align-items: center; gap: 18px; }
.auth-header-separator { width: 1px; height: 22px; background: var(--color-line); }
.auth-header-prompt { color: var(--color-text-muted); font-size: var(--font-control); }
.auth-header-prompt a { margin-left: 6px; color: var(--color-primary); }

.auth-shell {
  width: min(1290px, calc(100% - 48px));
  min-height: calc(100vh - var(--auth-header) - 56px);
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(450px, .92fr) minmax(520px, 1.08fr);
  gap: 34px;
  align-items: stretch;
}

.auth-panel { min-width: 0; border: 0; border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--shadow-auth-panel); }

.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 42px 52px; }
.auth-form { width: 100%; max-width: 440px; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); }
.auth-form-brand { grid-row: 1; align-self: center; justify-self: start; }
.auth-form-brand .brand-logo { font-size: 22px; }
.auth-form-content { grid-row: 2; width: 100%; }
.auth-form h1 { margin: 0 0 var(--space-2); font-size: 32px; line-height: 1.2; font-weight: 300; letter-spacing: -.03em; }
.auth-intro { margin: 0 0 32px; color: var(--color-text-muted); font-size: var(--font-control); line-height: 1.7; }
.auth-form .btn-primary { height: 40px; }
.auth-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 22px; color: var(--color-text-secondary); font-size: var(--font-control); }
.auth-meta a { color: var(--color-text-muted); }
.auth-meta a:hover { color: var(--color-primary); }
.auth-google { height: 40px; }
.auth-google > img { width: 16px; height: 16px; }
.auth-switch { margin: 22px 0 0; color: var(--color-text-muted); font-size: var(--font-control); }
.auth-switch a { margin-left: 7px; color: var(--color-primary); }

.password-rules { display: flex; flex-wrap: wrap; gap: var(--space-3) 18px; margin: 9px 0 18px; font-family: var(--font-mono); color: var(--color-text-muted); font-size: max(10.5px, var(--cjk-min, 0px)); }
.password-rule { display: inline-flex; align-items: center; gap: 6px; }
.password-rule::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--color-text-faint); border-radius: 50%; }
.password-rule.met { color: var(--color-text); }
.password-rule.met::before { border-color: var(--color-primary); background: var(--color-primary); }

/* feature panel: numbered list, a signal trace and the engine status */
.auth-aside { position: relative; padding: 44px 44px 36px; display: flex; flex-direction: column; overflow: hidden; background-color: var(--color-surface); background-image: var(--page-texture); background-size: var(--page-texture-size); }
.auth-aside h2 { margin: 0; font-size: 24px; font-weight: 300; letter-spacing: -.02em; line-height: 1.35; }
.auth-aside-lead { margin: 10px 0 32px; color: var(--color-text-muted); font-size: var(--font-control); line-height: 1.7; }
.auth-features { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line); }
.auth-feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3); padding: 18px 0; border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
.auth-feature-index { font-family: var(--font-mono); font-size: max(11px, var(--cjk-min, 0px)); color: var(--color-primary); padding-top: 3px; }
.auth-feature h3 { margin: 0 0 4px; font-size: var(--font-body); font-weight: var(--weight-heading); }
.auth-feature p { margin: 0; color: var(--color-text-muted); font-size: var(--font-control); line-height: 1.6; }

.auth-visual { margin-top: auto; padding: 22px 6px 0; }
.auth-trace { display: block; width: 100%; height: 120px; overflow: visible; }
.auth-trace .trace-axis { stroke: var(--color-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.auth-trace .trace-base { fill: none; stroke: var(--color-line-input-hover); stroke-width: 1; opacity: .55; vector-effect: non-scaling-stroke; }
.auth-trace .trace-played { fill: none; stroke: var(--color-primary); stroke-width: 1.2; filter: var(--effect-glow); vector-effect: non-scaling-stroke; }
.auth-trace .trace-head { stroke: var(--color-primary); stroke-width: 1; opacity: .5; vector-effect: non-scaling-stroke; }
.auth-visual-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-family: var(--font-mono); font-size: max(10.5px, var(--cjk-min, 0px)); color: var(--color-text-muted); }
.auth-visual-meta > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.auth-trust { display: flex; align-items: center; gap: var(--space-2); margin-top: 22px; color: var(--color-text-faint); font-size: var(--font-caption); }
.auth-trust > svg { width: 14px; color: var(--color-text-faint); }

.auth-footer {
  min-height: 56px;
  padding: 0 var(--space-6) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) 18px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: max(10.5px, var(--cjk-min, 0px));
}
.auth-footer a:hover { color: var(--color-text); }

@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .auth-aside { display: none; }
}

@media (max-width: 560px) {
  .auth-header { padding: 0 var(--space-4); }
  .auth-header-prompt, .auth-header-separator { display: none; }
  .auth-brand .brand-logo { font-size: 19px; }
  .auth-shell { width: calc(100% - 32px); padding: var(--space-4) 0; }
  .auth-form-panel { padding: var(--space-6) 18px; }
  .auth-form-brand { display: none; }
  .auth-form h1 { font-size: 24px; }
  .field-row { flex-direction: column; align-items: stretch; }
  .field-row > .btn { flex-basis: auto; }
}
.auth-form-brand { margin-bottom: 32px; }

/* ---- no white blocks: content sits on the page, separated by hairlines (controls keep their fill) ---- */
.auth-panel { background: none; box-shadow: 0 0 0 1px var(--color-line); }
.auth-aside, .auth-feature { background-color: transparent; }
