/* Sign-in, registration and password screens. */
/* ==========================================================================
   AUTH SCREENS
   ========================================================================== */

.kw-auth-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100vh;
  background: var(--bg);
}
.kw-auth-frame.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
}

/* ─── Left pane: form ─── */
.kw-auth-pane {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-3xl);
  min-width: 0;
  background: var(--bg);
}
.kw-auth-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: var(--text-title-md);
  letter-spacing: -0.005em;
  color: var(--fg);
  text-decoration: none;
}
.kw-auth-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  padding: var(--space-xl) 0;
}
.kw-auth-eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange-text);
  margin-bottom: var(--space-sm);
}
.kw-auth-title {
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--fg);
  margin: 0 0 var(--space-xs);
}
.kw-auth-sub {
  font-size: var(--text-body-md);
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 0 0 var(--space-xl);
}
.kw-auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.kw-auth-actions {
  margin-top: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
/* Set apart from sign-in: most visitors from the landing page have no account. */
.kw-auth-demo {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--lavender-surface);
  border: 1px solid var(--lavender-100);
  border-radius: var(--radius-md);
}
.kw-auth-demo h2 { margin: 0; font-size: var(--text-title-md); font-weight: 600; color: var(--fg); }
.kw-auth-demo p { margin: 0 0 var(--space-xs); font-size: var(--text-body-md); color: var(--fg-muted); }
.kw-auth-foot {
  text-align: center;
  font-size: var(--text-body-md);
  color: var(--fg-muted);
  margin-top: var(--space-lg);
}
.kw-auth-foot a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
.kw-auth-foot a:hover { color: var(--orange); }
.kw-auth-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xxs);
  align-self: flex-start;
  margin-bottom: var(--space-xl);
  font-size: var(--text-label-lg);
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
}
.kw-auth-back:hover { color: var(--fg); }
.kw-auth-back .material-symbols-rounded { font-size: 18px; }
.kw-auth-success { display: flex; flex-direction: column; align-items: center; text-align: center; }
.kw-auth-success-start { align-items: flex-start; text-align: left; }
.kw-auth-help-centered { text-align: center; }
.kw-auth-success-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--lavender-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.kw-auth-success-mark .material-symbols-rounded { font-size: 32px; color: var(--orange-text); }
.kw-mail-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
  padding: var(--space-md) var(--space-md);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.kw-mail-card .material-symbols-rounded { color: var(--fg-muted); font-size: 20px; }
.kw-mail-card-email { font-size: var(--text-title-sm); font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.kw-mail-card-sub { font-size: var(--text-body-sm); color: var(--fg-muted); margin-top: var(--space-xxxs); }

/* ─── Big primary button (auth) ─── */
.kw-btn-block {
  width: 100%;
  justify-content: center;
  height: 44px;
  font-size: var(--text-title-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
/* ─── Right pane: Bauhaus art ─── */
.kw-auth-art {
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
  color: var(--fg);
  padding: var(--space-2xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.kw-auth-art-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.kw-auth-art-copy {
  position: relative;
  z-index: 2;
  max-width: 360px;
}
.kw-auth-art-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dark-grey);
  background: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  border: 1px solid var(--divider);
}
.kw-auth-art-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.kw-auth-art-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-display-md);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--dark-grey);
  margin: var(--space-md) 0 var(--space-md);
}
.kw-auth-art-body {
  font-size: var(--text-body-md);
  line-height: 1.6;
  color: var(--fg);
  max-width: 320px;
}
.kw-auth-art-feature {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--text-body-sm);
  color: var(--fg-muted);
}
.kw-auth-art-feature .row { display: flex; align-items: center; gap: var(--space-sm); }
.kw-auth-art-feature .row .material-symbols-rounded { color: var(--fg); font-size: 18px; }
.kw-auth-art-creds {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-label-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}
.kw-auth-art-creds .sep { width: 24px; height: 1px; background: var(--border); }
