/* ============================================================================
   inviteyou.app — Brand styles (Landing + Auth)
   Editorial / sunset / golden-hour aesthetic.
   Bricolage Grotesque (display, variable opsz/wdth/wght — replaces serif italic
   with width-condensation as a visual rhythm device) + Hanken Grotesk (body).
   ========================================================================= */

.landing-page,
.auth-page {
  --ink:          #16110d;          /* warm-leaning near-black                */
  --ink-soft:     #2d2419;
  --paper:        #fbf6ee;          /* cream                                   */
  --paper-2:      #f3ebdc;
  --mist:         #efe4d0;          /* warm ivory blocks                       */
  --ember:        #c95a2a;          /* sun primary                             */
  --ember-deep:   #8a3411;
  --rose:         #b73250;          /* deep wine accent                        */
  --gold:         #d09a4a;
  --line:         rgba(22, 17, 13, 0.14);
  --shadow-warm:  0 30px 60px -28px rgba(124, 45, 18, 0.55);
  --shadow-soft:  0 18px 40px -22px rgba(22, 17, 13, 0.25);

  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01', 'ss02';
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.landing-page main,
.auth-page main { padding: 0; }

.landing-page::before,
.auth-page::before {                          /* film grain */
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.landing-page ::selection,
.auth-page ::selection { background: var(--ember); color: var(--paper); }

/* ---- Display & body type --------------------------------------------------*/
.landing-page h1, .landing-page h2, .landing-page h3,
.auth-page h1, .auth-page h2, .auth-page h3,
.landing-page .display, .landing-page .editorial,
.auth-page .display {
  font-family: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 500;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.96;
  color: var(--ink);
}

/* Accent / voice-change: switch to Hanken Grotesk's true italic (drawn
   cursive, not slanted Bricolage) at a slightly heavier weight, in gold.
   This replaces both the previous serif-italic gesture and the condensed
   Bricolage approach — cleaner and more legible at large sizes. */
.landing-page h1 .it, .landing-page h2 .it, .landing-page h3 .it,
.auth-page h1 .it, .auth-page h2 .it, .auth-page h3 .it,
.landing-page em, .auth-page em {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-variation-settings: normal;
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.012em;
}

.landing-page .eyebrow,
.auth-page .eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.landing-page .lead,
.auth-page .lead {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================================
   LANDING PAGE
   ========================================================================= */

/* ---- Floating navigation --------------------------------------------------*/
.lp-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  backdrop-filter: blur(0px);
}
.lp-nav--scrolled {
  background: rgba(251, 246, 238, 0.9);
  backdrop-filter: blur(12px) saturate(140%);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.7rem;
}
.lp-nav a { color: inherit; text-decoration: none; }

.lp-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  color: inherit;
  text-decoration: none;
}
.lp-brand-logo {
  display: block;
  height: 22px;
  width: auto;
  color: currentColor;
  transition: opacity 0.2s ease;
}
.lp-brand:hover .lp-brand-logo { opacity: 0.78; }
@media (min-width: 768px) {
  .lp-brand-logo { height: 26px; }
}

.lp-nav-actions {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.lp-nav-actions a:hover { opacity: 0.7; }

.lp-nav-actions .lp-cta-mini {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lp-nav--scrolled .lp-cta-mini {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.lp-nav--scrolled .lp-cta-mini:hover { background: var(--ember-deep); border-color: var(--ember-deep); }
.lp-cta-mini:hover { background: var(--paper); color: var(--ink); }

/* ---- Hero -----------------------------------------------------------------*/
.lp-hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: flex; align-items: stretch;
  overflow: hidden;
  background: var(--ink);
}

.lp-hero__bg, .lp-hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
}
.lp-hero__bg img {
  background: url('../img/landing-lqip.webp') center/cover no-repeat;
  filter: saturate(1.05);
  animation: lp-fade-in 1200ms ease-out 50ms both;
}

.lp-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg,
      rgba(20, 13, 8, 0.78) 0%,
      rgba(20, 13, 8, 0.62) 28%,
      rgba(20, 13, 8, 0.32) 52%,
      rgba(20, 13, 8, 0.10) 70%,
      rgba(20, 13, 8, 0)    88%),
    radial-gradient(80% 60% at 100% 0%,
      rgba(255, 178, 92, 0.18), transparent 60%);
  pointer-events: none;
}

@media (max-width: 767px) {
  .lp-hero__bg img { object-position: 70% center; }
  .lp-hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(20, 13, 8, 0.55) 0%,
        rgba(20, 13, 8, 0.55) 50%,
        rgba(20, 13, 8, 0.85) 100%);
  }
}

.lp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: clamp(7rem, 14vh, 11rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 7vh, 5rem);
  color: var(--paper);
}
@media (min-width: 768px) {
  .lp-hero__inner {
    align-items: center;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 2rem;
  }
}

.lp-hero__content { max-width: 36rem; }

.lp-hero .eyebrow {
  color: rgba(251, 246, 238, 0.78);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.lp-hero .eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: rgba(251, 246, 238, 0.55);
}

.lp-hero h1 {
  color: var(--paper);
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 500;
  letter-spacing: -0.03em;
  line-height: 0.94;
  margin: 0 0 1.4rem;
}
/* Accent inherits from master accent rule (Hanken italic 600 + gold). */

.lp-hero__sub {
  color: rgba(251, 246, 238, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55;
  max-width: 32rem;
  margin-bottom: 2rem;
  font-weight: 350;
}

.lp-cta-row {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  align-items: center;
}

.lp-btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 0; border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: var(--shadow-warm);
  white-space: nowrap;
  cursor: pointer;
}
.lp-btn:hover {
  transform: translateY(-2px);
  background: var(--ember);
  color: var(--paper);
  box-shadow: 0 28px 50px -22px rgba(201, 90, 42, 0.7);
}
.lp-btn .arrow {
  width: 18px; height: 14px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lp-btn:hover .arrow { transform: translateX(4px); }

.lp-btn--ghost {
  background: transparent;
  color: currentColor;
  box-shadow: none;
  border: 1px solid currentColor;
}
.lp-btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.lp-link {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  border-bottom: 1px solid rgba(251, 246, 238, 0.4);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lp-link:hover { color: var(--gold); border-color: var(--gold); }

.lp-trust {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(251, 246, 238, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(251, 246, 238, 0.7);
}
.lp-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.lp-trust span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}

.lp-scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(251, 246, 238, 0.5);
  display: none;
}
@media (min-width: 1024px) {
  .lp-scroll-hint { display: flex; align-items: center; gap: 0.8rem; }
  .lp-scroll-hint::after {
    content: ''; width: 1px; height: 36px;
    background: linear-gradient(to bottom, rgba(251, 246, 238, 0.5), transparent);
    animation: lp-scroll-line 2.4s ease-in-out infinite;
  }
}

/* ---- Section: opening editorial ------------------------------------------*/
.lp-prologue {
  padding: clamp(4rem, 12vh, 8rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1180px; margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (min-width: 900px) {
  .lp-prologue {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    align-items: end;
  }
}
.lp-prologue .eyebrow { color: var(--ember); }
.lp-prologue .quote {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 80, 'wdth' 100, 'wght' 400;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.lp-prologue .quote em { color: var(--ember-deep); }

/* ---- Anlässe (occasion grid) ---------------------------------------------*/
.lp-occasions {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(5rem, 12vh, 8rem);
  position: relative;
  overflow: hidden;
}
.lp-occasions::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 90% 0%, rgba(208, 154, 74, 0.18), transparent 70%);
  pointer-events: none;
}

.lp-section-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
@media (min-width: 900px) {
  .lp-section-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; }
}
.lp-occasions .lp-section-head .eyebrow { color: var(--gold); }
.lp-occasions h2 {
  color: var(--paper);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
/* em inherits master accent rule */
.lp-occasions .lead { color: rgba(251, 246, 238, 0.72); max-width: 36rem; }

.lp-occ-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px)  { .lp-occ-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-occ-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.lp-occ {
  --occ-bg: #1c140d;
  --occ-fg: var(--paper);
  --occ-accent: var(--gold);
  background: var(--occ-bg);
  color: var(--occ-fg);
  padding: 1.6rem 1.3rem 1.5rem;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 200px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
  isolation: isolate;
}
.lp-occ:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.55);
}
.lp-occ-num {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  opacity: 0.55;
}
.lp-occ-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 48, 'wdth' 100, 'wght' 500;
  font-size: 1.6rem;
  line-height: 1.05;
  margin-top: auto;
  letter-spacing: -0.025em;
}
.lp-occ-tag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--occ-accent);
}
.lp-occ::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 0% 100%, var(--occ-accent), transparent 70%);
  opacity: 0.18;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.lp-occ:hover::before { opacity: 0.32; }

/* per-occasion micro-moods — sans-only, axes do the work */
.lp-occ--wedding   { --occ-bg: #2a1611; --occ-accent: #e8c187; }
.lp-occ--wedding .lp-occ-name {
  font-variation-settings: 'opsz' 48, 'wdth' 85, 'wght' 350;
  letter-spacing: 0;
}
.lp-occ--birthday  { --occ-bg: #2a0f1d; --occ-accent: #ff7eaa; }
.lp-occ--birthday .lp-occ-name {
  font-variation-settings: 'opsz' 48, 'wdth' 100, 'wght' 700;
  letter-spacing: -0.035em;
}
.lp-occ--business  { --occ-bg: #0f1c2e; --occ-accent: #7eb6ff; --occ-fg: #f1ecdf;}
.lp-occ--business .lp-occ-name {
  font-variation-settings: 'opsz' 48, 'wdth' 100, 'wght' 600;
  letter-spacing: -0.018em;
}
.lp-occ--funeral   { --occ-bg: #1a1c1f; --occ-accent: #b9c2cf; --occ-fg: #e9e7e3; }
.lp-occ--funeral .lp-occ-name {
  font-variation-settings: 'opsz' 48, 'wdth' 100, 'wght' 250;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.lp-occ--jubilee   { --occ-bg: #221708; --occ-accent: #f0bf5c; }
.lp-occ--jubilee .lp-occ-name {
  font-variation-settings: 'opsz' 48, 'wdth' 90, 'wght' 500;
  letter-spacing: 0.005em;
}
.lp-occ--party     { --occ-bg: #0a0710; --occ-accent: #c084fc; --occ-fg: #f8f4ff; }
.lp-occ--party .lp-occ-name {
  font-variation-settings: 'opsz' 48, 'wdth' 100, 'wght' 800;
  text-transform: lowercase;
  letter-spacing: -0.04em;
}

/* ---- How it works (three steps) ------------------------------------------*/
.lp-howto {
  padding: clamp(4rem, 12vh, 8rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1180px; margin: 0 auto;
}
.lp-howto h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.lp-howto h2 em { color: var(--ember); }
.lp-howto .eyebrow { color: var(--ember); margin-bottom: 1rem; display: block; }
.lp-howto-intro { max-width: 32rem; margin-bottom: clamp(2.5rem, 6vh, 4rem); }

.lp-steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  counter-reset: lp-step;
}
@media (min-width: 720px)  { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; } }

.lp-step {
  position: relative;
  background: var(--mist);
  padding: 2.2rem 1.6rem 1.7rem;
  border-radius: 22px;
  border: 1px solid rgba(22, 17, 13, 0.06);
  overflow: hidden;
  transition: transform 0.35s ease, background 0.35s ease;
}
.lp-step:hover { transform: translateY(-4px); background: var(--paper-2); }
.lp-step::before {
  counter-increment: lp-step;
  content: counter(lp-step, decimal-leading-zero);
  position: absolute;
  top: 0.8rem; right: 1.2rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 75, 'wght' 700;
  font-size: 5rem;
  line-height: 1;
  color: var(--ember);
  opacity: 0.16;
  letter-spacing: -0.04em;
}
.lp-step h3 {
  font-size: 1.55rem;
  font-variation-settings: 'opsz' 48, 'wdth' 100, 'wght' 600;
  margin: 0 0 0.7rem;
  letter-spacing: -0.022em;
}
.lp-step p { color: var(--ink-soft); line-height: 1.55; margin: 0; }
.lp-step .arrow-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ember-deep);
}

/* ---- Trust strip ----------------------------------------------------------*/
.lp-trust-strip {
  background: linear-gradient(95deg, var(--paper-2), var(--mist));
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lp-trust-strip-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 880px) {
  .lp-trust-strip-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}
.lp-trust-item .eyebrow { color: var(--ember); margin-bottom: 0.5rem; display: block; }
.lp-trust-item h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 48, 'wdth' 100, 'wght' 600;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.022em;
}
.lp-trust-item p { color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---- Final CTA ------------------------------------------------------------*/
.lp-final {
  position: relative;
  padding: clamp(5rem, 14vh, 9rem) clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.lp-final::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 80% 50%, rgba(201, 90, 42, 0.55), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(208, 154, 74, 0.30), transparent 65%);
  z-index: -1;
}

.lp-final__inner {
  max-width: 980px; margin: 0 auto;
  text-align: center;
}
.lp-final h2 {
  color: var(--paper);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
/* em inherits master accent rule */
.lp-final p {
  color: rgba(251, 246, 238, 0.8);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.lp-final .lp-cta-row { justify-content: center; }
.lp-final .lp-link { color: rgba(251, 246, 238, 0.85); }

/* ---- Footer override on landing/auth -------------------------------------*/
.landing-page footer,
.auth-page footer {
  background: var(--ink);
  color: rgba(251, 246, 238, 0.55);
  border-top: 1px solid rgba(251, 246, 238, 0.08) !important;
}
.landing-page footer a,
.auth-page footer a { color: rgba(251, 246, 238, 0.7); }
.landing-page footer a:hover,
.auth-page footer a:hover { color: var(--paper); }

/* ============================================================================
   AUTH PAGES (login / register / magic-link)
   Split-Layout: Hero on the left, form-card on the right.
   ========================================================================= */

.auth-page { min-height: 100svh; display: flex; flex-direction: column; }
.auth-page main { flex: 1; display: flex; }

.auth-shell {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
}
@media (min-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: 1fr;
  }
}

/* -- Aside (decorative image side) -- */
.auth-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.4rem, 4vw, 3rem);
}
@media (min-width: 960px) {
  .auth-aside { min-height: auto; }
}

.auth-aside__bg, .auth-aside__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.auth-aside__bg img { filter: saturate(1.05); }

.auth-aside__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(20, 13, 8, 0.55) 0%,
      rgba(20, 13, 8, 0.40) 40%,
      rgba(20, 13, 8, 0.78) 100%),
    radial-gradient(50% 60% at 0% 100%, rgba(201, 90, 42, 0.30), transparent 70%);
}
@media (min-width: 960px) {
  .auth-aside__overlay {
    background:
      linear-gradient(120deg,
        rgba(20, 13, 8, 0.72) 0%,
        rgba(20, 13, 8, 0.48) 50%,
        rgba(20, 13, 8, 0.80) 100%),
      radial-gradient(50% 60% at 0% 100%, rgba(201, 90, 42, 0.30), transparent 70%);
  }
}

.auth-aside__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}
.auth-aside__brand .app-logo {
  height: 24px;
}
@media (min-width: 768px) {
  .auth-aside__brand .app-logo { height: 28px; }
}

.auth-aside__quote {
  display: none;
  max-width: 28rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 80, 'wdth' 100, 'wght' 400;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--paper);
}
/* em inherits master accent rule (Hanken italic 600 + gold) */
.auth-aside__quote-attr {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}
@media (min-width: 960px) {
  .auth-aside__quote { display: block; }
}

.auth-aside__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(251, 246, 238, 0.7);
}
.auth-aside__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.auth-aside__meta span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}

/* -- Main (form side) -- */
.auth-main {
  background: var(--paper);
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
}

.auth-card__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.auth-card__back:hover { color: var(--ember); border-color: var(--ember); }

.auth-card .eyebrow {
  color: var(--ember);
  margin-bottom: 0.85rem;
  display: block;
}
.auth-card h1 {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  font-variation-settings: 'opsz' 80, 'wdth' 100, 'wght' 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.6rem;
}
.auth-card h1 em { color: var(--ember); }
.auth-card__sub {
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 2rem;
  max-width: 24rem;
}

.auth-form { display: grid; gap: 1.1rem; }

.auth-field {
  display: flex; flex-direction: column;
  gap: 0.4rem;
}
.auth-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.auth-field .help {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.auth-input {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.auth-input:hover { border-color: rgba(22, 17, 13, 0.32); }
.auth-input:focus {
  outline: none;
  border-color: var(--ember);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 90, 42, 0.16);
}
.auth-input::placeholder { color: rgba(45, 36, 25, 0.45); }
.auth-input--error {
  border-color: var(--rose);
  background: rgba(183, 50, 80, 0.06);
}

.auth-row { display: grid; gap: 1.1rem; }
@media (min-width: 520px) { .auth-row--2 { grid-template-columns: 1fr 1fr; } }

.auth-error {
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 500;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.auth-checkbox input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid rgba(22, 17, 13, 0.36);
  border-radius: 5px;
  background: #fff;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.auth-checkbox input[type='checkbox']:checked {
  background: var(--ember);
  border-color: var(--ember);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'><path d='M1 5l3 3 7-7' stroke='%23fbf6ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 9px;
}
.auth-checkbox input[type='checkbox']:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 90, 42, 0.18);
}
.auth-checkbox a { color: var(--ember-deep); text-decoration: underline; text-underline-offset: 2px; }

.auth-submit {
  appearance: none;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin-top: 0.4rem;
}
.auth-submit:hover {
  background: var(--ember);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -16px rgba(201, 90, 42, 0.55);
}
.auth-submit .arrow {
  width: 18px; height: 14px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.auth-submit:hover .arrow { transform: translateX(4px); }

.auth-divider {
  display: flex; align-items: center; gap: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 1.6rem 0;
  font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.auth-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.auth-secondary:hover {
  border-color: var(--ember);
  background: rgba(201, 90, 42, 0.05);
  color: var(--ember-deep);
}

.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
}
.auth-footer a {
  color: var(--ember-deep);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.auth-footer a:hover { border-color: var(--ember-deep); }

.auth-message {
  display: grid;
  gap: 1rem;
  text-align: center;
  padding: 1rem 0 0.5rem;
}
.auth-message__icon {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: rgba(201, 90, 42, 0.12);
  color: var(--ember-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto;
}

/* ---- Animations -----------------------------------------------------------*/
@keyframes lp-fade-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lp-scroll-line {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.5; }
  50%      { transform: scaleY(0.4); opacity: 0.9; }
}

.lp-rise, .auth-rise { animation: lp-rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.lp-rise--1, .auth-rise--1 { animation-delay: 100ms; }
.lp-rise--2, .auth-rise--2 { animation-delay: 220ms; }
.lp-rise--3, .auth-rise--3 { animation-delay: 360ms; }
.lp-rise--4, .auth-rise--4 { animation-delay: 500ms; }
.lp-rise--5, .auth-rise--5 { animation-delay: 640ms; }

@media (prefers-reduced-motion: reduce) {
  .lp-rise, .auth-rise, .lp-hero__bg img, .auth-aside__bg img { animation: none !important; }
  .lp-btn:hover, .lp-step:hover, .lp-occ:hover, .auth-submit:hover { transform: none !important; }
}
