/* Auth shell shared by login.php, register.php and forgot_password.php. Prefix: au-.
   Form controls, tabs, alerts and buttons are components. */
.au-main { display: grid; align-content: center; }
.au-shell { display: grid; width: 100%; max-width: 440px; margin: 0 auto; border: 1px solid var(--sf-border); border-radius: var(--sf-radius-lg); background: var(--sf-panel); overflow: hidden; }
.au-story { display: none; }
.au-card { display: grid; gap: var(--sf-space-5); align-content: center; min-width: 0; padding: var(--sf-space-6) var(--sf-space-5); }
.au-card__intro { display: grid; gap: var(--sf-space-1); }
.au-card__intro h1 { font-size: var(--sf-text-2xl); }
.au-forgot { margin-block: calc(var(--sf-space-3) * -1) calc(var(--sf-space-2) * -1); text-align: right; font-size: var(--sf-text-sm); }
.au-forgot a { display: inline-flex; align-items: center; min-height: var(--sf-tap); }
.au-mobile-switch { display: flex; justify-content: center; font-size: var(--sf-text-sm); }
.au-mobile-switch a { display: inline-flex; align-items: center; min-height: var(--sf-tap); }

/* forgot_password.php: numbered steps (a real sequence) and the two ways out. */
.au-steps { display: grid; gap: var(--sf-space-4); }
.au-steps li { display: flex; gap: var(--sf-space-3); }
.au-steps__num { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--sf-panel-raised); color: var(--sf-accent); font-weight: var(--sf-weight-bold); }
.au-steps h2 { font-size: var(--sf-text-md); line-height: var(--sf-leading-body); }
.au-steps p { color: var(--sf-muted); font-size: var(--sf-text-sm); }
.au-actions { display: grid; gap: var(--sf-space-3); }
.au-actions .sf-btn { line-height: var(--sf-leading-body); }

@media (min-width: 480px) {
  .au-card { padding: var(--sf-space-8); }
}
@media (min-width: 1024px) {
  .au-shell { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); max-width: 960px; }
  .au-card { padding: var(--sf-space-12) var(--sf-space-10); }
  .au-mobile-switch { display: none; }

  /* Fixed dark artwork panel, like the home hero, closed by the spectrum line. */
  .au-story { position: relative; display: flex; flex-direction: column; gap: var(--sf-space-8); padding: var(--sf-space-12) var(--sf-space-10); background: var(--sf-hero-bg); color: var(--sf-hero-soft); overflow: hidden; }
  .au-story::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sf-gradient); }
  .au-story__title { color: var(--sf-hero-strong); font-size: var(--sf-text-3xl); font-weight: var(--sf-weight-bold); line-height: var(--sf-leading-heading); }
  .au-story__list { display: grid; gap: var(--sf-space-4); }
  .au-story__list li { display: flex; align-items: flex-start; gap: var(--sf-space-3); }
  .au-story__list .sf-icon { flex-shrink: 0; margin-top: 0.15em; color: var(--sf-hero-strong); }

  /* Login/register guide: numbered steps replace the decorative card so the left
     column is instructions only. */
  .au-story--guide { justify-content: center; }
  .au-story__steps { display: grid; gap: var(--sf-space-4); }
  .au-story__steps li { display: flex; align-items: flex-start; gap: var(--sf-space-3); }
  .au-story__num { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--sf-hero-line); border-radius: 50%; background: var(--sf-hero-raise); color: var(--sf-hero-strong); font-family: var(--sf-font-numeric); font-size: var(--sf-text-sm); font-weight: var(--sf-weight-bold); }
  .au-story__steps h2 { color: var(--sf-hero-strong); font-size: var(--sf-text-md); font-weight: var(--sf-weight-bold); line-height: 1.35; }
  .au-story__steps p { margin-top: var(--sf-space-1); color: var(--sf-hero-soft); font-size: var(--sf-text-sm); line-height: var(--sf-leading-body); }
  .au-story__cta { --btn-bg: transparent; --btn-bg-hover: var(--sf-hero-raise); --btn-border: var(--sf-hero-line); --btn-fg: var(--sf-hero-strong); align-self: flex-start; }

  /* Member-card artwork: the same two tilted cards as the home hero, in landscape.
     Decorative Latin lettering only, so the wide tracking is safe. */
  .au-art { position: relative; flex: 1; display: grid; place-items: center; min-height: 240px; font-family: var(--sf-font-numeric); pointer-events: none; }
  .au-art__card { grid-area: 1 / 1; width: min(100%, 280px); aspect-ratio: 8 / 5; border: 1px solid var(--sf-hero-line); border-radius: var(--sf-radius-md); color: var(--sf-hero-strong); }
  .au-art__card--back { background: linear-gradient(140deg, var(--sf-hero-card-a), var(--sf-hero-card-b)); transform: translate(-18px, -22px) rotate(-10deg); }
  .au-art__card--front { display: flex; flex-direction: column; justify-content: space-between; padding: var(--sf-space-4) var(--sf-space-5); background: linear-gradient(150deg, var(--sf-hero-card-b), var(--sf-hero-card-c)); box-shadow: var(--sf-shadow-2); font-size: var(--sf-text-xs); letter-spacing: 0.12em; text-transform: uppercase; transform: translate(14px, 16px) rotate(5deg); }
  .au-art__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sf-space-3); }
  .au-art__brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .au-art__ring { flex-shrink: 0; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.7; }
  .au-art__mark { font-size: var(--sf-text-display); font-weight: var(--sf-weight-medium); letter-spacing: 0; line-height: 1; }
  .au-art__mark b { font-weight: var(--sf-weight-medium); opacity: 0.75; }
  .au-art__chip { flex-shrink: 0; width: 28px; height: 20px; border: 1px solid var(--sf-hero-line); border-radius: var(--sf-radius-xs); background: var(--sf-hero-raise); }
}
