/* login-v4.css — magic-link sign-in surface, V4 cinema aesthetic.
 *
 * Direction (2026-05-19, polish round 2):
 *   Match v01.dental.ybamed.com — the YBA Med Dental V4 cinema landing.
 *   Light theme primary, warm white #FAFAFA, frosted glass card, two-tone
 *   cyan accent (brighter than round 1), Space Grotesk display + Inter
 *   body, subtle radial halos with a slow breathing animation.
 *
 *   Two-tone palette (WCAG-AA verified):
 *     --accent      #0099B0  (primary fill, dots, eyebrow) — 3.4:1 on white
 *     --accent-text #007885  (text + links on white) — 5.22:1 on white (AA)
 *     --accent-vivid #00B5D1 (button gradient top, bright glow)
 *     --accent-bright #00D4FF (decorative-only glow, never text)
 *
 *   Round 2 changes:
 *     1. Brighter two-tone cyan (was monolithic #008C9E)
 *     2. Button: gradient (#00B5D1 → #007885) + inline arrow icon + 12px radius
 *     3. "Amazing detail" #1 — breathing halo: 22s slow drift on the bg
 *     4. "Amazing detail" #2 — focus-glow: animated cyan ring expansion when
 *        the email input is focused
 *     5. New: password field (.lp-field--password) + mode toggle styling
 *
 * Tokens are scoped to .lp-v4 root only so _base.html's `<style id="tenant-theme">`
 * override (--accent: #00D4FF) does NOT bleed in. The whole login page lives
 * inside a single .lp-v4 wrapper that re-declares its own custom-property
 * cascade.
 */

/* ============================================================
   ROOT — local token cascade, scoped to .lp-v4
   ============================================================ */
.lp-v4 {
  /* Fonts */
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Light surfaces */
  --bg:           #FAFAFA;
  --bg-section:   #F4F4F6;
  --bg-card:      #FFFFFF;
  --bg-card-hi:   #F8F8FA;
  --border:       #E5E5E8;
  --border-hi:    #D4D4D8;
  --text:         #0A0A0A;
  --text-dim:     #525258;
  --text-muted:   #6B6B71;

  /* V4 two-tone cyan accent — WCAG-AA verified
   *   --accent       primary fill / dots / eyebrow — 3.4:1 on white (AA-large)
   *   --accent-text  text + links on white — 5.22:1 on white (AA for all text)
   *   --accent-vivid button gradient TOP, large surfaces only
   *   --accent-bright decorative glow only — NEVER carries text
   */
  --accent:        #0099B0;
  --accent-text:   #007885;
  --accent-vivid:  #00B5D1;
  --accent-bright: #00D4FF;
  --accent-dim:    #007885;   /* alias kept for legacy classes (legal links) */
  --accent-soft:   #2A9FB4;
  --accent-glow:   rgba(0, 153, 176, 0.10);
  --accent-glow-2: rgba(0, 153, 176, 0.20);
  --accent-glow-bright: rgba(0, 212, 255, 0.22);

  /* Geometry */
  --radius-pill:  999px;
  --radius-card:  24px;
  --radius-mini:  14px;
  --radius-input: 10px;
  --radius-btn:   12px;

  /* Glass treatment */
  --glass-bg:        rgba(255, 255, 255, 0.72);
  --glass-bg-hover:  rgba(255, 255, 255, 0.86);
  --glass-border:    color-mix(in srgb, var(--accent) 14%, rgba(255, 255, 255, 0.6));
  --glass-border-hi: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.8));
  --glass-blur:      saturate(160%) blur(14px);
  --glass-inset:     inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --glass-shadow:    0 6px 20px rgba(0, 0, 0, 0.06),
                     0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  --glass-shadow-hi: 0 14px 44px color-mix(in srgb, var(--accent) 18%, transparent),
                     0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);

  /* Halos — slightly brighter, used by the breathing animation */
  --halo-1: radial-gradient(ellipse 70% 45% at 15% 0%,
              color-mix(in srgb, var(--accent-bright) 10%, transparent), transparent 60%);
  --halo-2: radial-gradient(ellipse 50% 40% at 90% 75%,
              color-mix(in srgb, var(--accent-vivid) 8%, transparent), transparent 60%);

  /* Page-level layout */
  min-height: 100vh; /* fallback for older browsers */
  min-height: 100dvh; /* iOS Safari shrinks vh when the URL bar appears — dvh tracks it */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
}

/* Force LIGHT regardless of <html data-theme>. The sign-in surface is brand-locked
   on the V4 light-cyan look — Captain rejected the dark version twice. */
html[data-theme="dark"] .lp-v4,
html[data-theme="high_contrast"] .lp-v4,
html[data-theme="light"] .lp-v4 {
  background: var(--bg);
  color: var(--text);
}

/* Paint body + .layout--single + .content in our warm-white as well, so the
   dark `data-theme` body bg doesn't leak as gutters around .content's 1280px
   max-width. The login surface is full-bleed; the card centers inside. */
html:has(.lp-v4),
html:has(.lp-v4) body {
  background: #FAFAFA;
}
html:has(.lp-v4) .layout,
html:has(.lp-v4) .layout--single,
html:has(.lp-v4) .layout--no-chrome,
html:has(.lp-v4) .content,
html:has(.lp-v4) .content--no-chrome {
  background: transparent;
  max-width: none;
  width: 100%;
}
html:has(.lp-v4) body::before { display: none; }

/* Defeat .content > * colour bleed from base.css. Inside .content .lp-v4 our
   selector specificity beats base's `.content p`, `.content h1`, etc. */
.content .lp-v4,
.content .lp-v4 h1,
.content .lp-v4 h2,
.content .lp-v4 p,
.content .lp-v4 span,
.content .lp-v4 a,
.content .lp-v4 label,
.content .lp-v4 button {
  color: inherit;
}
.content .lp-v4 { color: var(--text); }
.content .lp-v4 .lp-h1 { color: var(--text); }
.content .lp-v4 .lp-sub,
.content .lp-v4 .lp-card__sub,
.content .lp-v4 .lp-card__hint { color: var(--text-dim); }
.content .lp-v4 .lp-legal,
.content .lp-v4 .lp-field__help,
.content .lp-v4 .lp-footer { color: var(--text-muted); }

/* Cyan accent text — these BEAT base.css's `.content > *` colour bleed.
   Without this block, the eyebrow / legal-link / link-button all inherit
   the body text colour and the cyan accent disappears for text uses. */
.content .lp-v4 .lp-eyebrow { color: var(--accent-text); }
.content .lp-v4 .lp-legal a,
.content .lp-v4 .lp-linkbtn { color: var(--accent-text); }
.content .lp-v4 .lp-legal a:hover,
.content .lp-v4 .lp-linkbtn:hover { color: var(--accent); }
.content .lp-v4 .lp-mode-toggle__btn { color: var(--text-dim); }
.content .lp-v4 .lp-mode-toggle__btn:hover { color: var(--accent-text); }
.content .lp-v4 .lp-mode-toggle__arrow { color: var(--accent-text); }
.content .lp-v4 .lp-sent__icon { color: var(--accent-text); }
.content .lp-v4 .lp-btn-primary { color: #fff; }
.content .lp-v4 .lp-wordmark { color: var(--text); }
.content .lp-v4 .lp-wordmark__sub { color: var(--text-muted); }
.content .lp-v4 .lp-tenant-chip,
.content .lp-v4 .lp-tenant-chip__label { color: var(--text-dim); }

/* ============================================================
   HALOS — drift on the background, full-bleed
   Round-2 detail #1: slow breathing animation (22s) — barely
   noticeable but gives the page a "living" feel.
   ============================================================ */
.lp-v4::before,
.lp-v4::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: opacity, transform;
}
.lp-v4::before {
  background: var(--halo-1);
  animation: lp-breathe-1 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.lp-v4::after  {
  background: var(--halo-2);
  animation: lp-breathe-2 26s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes lp-breathe-1 {
  0%, 100% { opacity: 0.85; transform: scale(1) translate(0, 0); }
  50%      { opacity: 1;    transform: scale(1.06) translate(1.5%, -1%); }
}
@keyframes lp-breathe-2 {
  0%, 100% { opacity: 0.9;  transform: scale(1) translate(0, 0); }
  50%      { opacity: 1;    transform: scale(1.04) translate(-1.5%, 1.2%); }
}

/* All real content sits above the halos */
.lp-v4 > * { position: relative; z-index: 1; }

/* ============================================================
   HEADER — quiet wordmark bar, no marketing
   ============================================================ */
.lp-header {
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.lp-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  line-height: 1;
}
.lp-wordmark__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow),
              0 0 12px var(--accent-glow-bright);
  flex-shrink: 0;
}
.lp-wordmark__sub {
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-body);
}

/* Tenant chip — uppercase via CSS, label content is template-driven */
.lp-tenant-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.lp-tenant-chip__label {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lp-tenant-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow-bright);
}

/* ============================================================
   MAIN — single centered card column, breathes
   ============================================================ */
.lp-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 96px;
}

.lp-card-wrap {
  width: 100%;
  max-width: 460px;
}

/* ============================================================
   GLASS CARD — V4 signature surface
   ============================================================ */
.lp-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: 44px 40px 36px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform   360ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lp-card:focus-within {
  border-color: var(--glass-border-hi);
  box-shadow: var(--glass-shadow-hi);
}

/* Soft cyan rim glow at top inner edge — a touch of V4 magic */
.lp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: var(--glass-inset);
}

/* Round-2 detail: bright-cyan top-edge rim (decorative, never text) */
.lp-card__rim {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg,
              transparent 0%,
              var(--accent-bright) 50%,
              transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

.lp-card__state[hidden] { display: none; }

/* Eyebrow above the headline */
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(95deg,
              color-mix(in srgb, var(--accent) 8%, transparent) 0%,
              color-mix(in srgb, var(--accent-bright) 14%, transparent) 100%);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.lp-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow-bright);
  flex-shrink: 0;
}

/* Display headline */
.lp-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}

/* Subheading */
.lp-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 28px;
}

/* Inline alert (validation / errors) */
.lp-alert {
  background: color-mix(in srgb, #DC2626 8%, var(--bg-card));
  border: 1px solid color-mix(in srgb, #DC2626 32%, transparent);
  color: #B91C1C;
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.lp-alert[hidden] { display: none; }

/* ============================================================
   FORM
   ============================================================ */
.lp-form { display: block; }

.lp-field {
  display: block;
  margin-bottom: 18px;
  position: relative;
}
.lp-field[hidden] { display: none; }
.lp-field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: -0.005em;
}
.lp-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card-hi);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.lp-input::placeholder { color: var(--text-muted); }
.lp-input:hover {
  border-color: var(--accent-soft);
  background: var(--bg-card);
}

/* Round-2 detail #2: animated cyan focus ring — cleanly expands when the
   user starts typing. Restrained, premium. */
.lp-input:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-2),
              0 0 0 1px var(--accent),
              0 0 16px color-mix(in srgb, var(--accent-bright) 18%, transparent);
  animation: lp-focus-pulse 1.4s ease-out;
}
@keyframes lp-focus-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow-bright),
                0 0 0 1px var(--accent),
                0 0 0 transparent;
  }
  60% {
    box-shadow: 0 0 0 6px transparent,
                0 0 0 1px var(--accent),
                0 0 22px color-mix(in srgb, var(--accent-bright) 26%, transparent);
  }
  100% {
    box-shadow: 0 0 0 3px var(--accent-glow-2),
                0 0 0 1px var(--accent),
                0 0 16px color-mix(in srgb, var(--accent-bright) 18%, transparent);
  }
}
.lp-input:focus-visible {
  outline: none;
}
.lp-field__help {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 7px;
  line-height: 1.4;
}

/* Password field margin tweak — sits between email and the button */
.lp-field--password {
  margin-top: -4px;
  margin-bottom: 22px;
}

/* ============================================================
   PRIMARY BUTTON — Round 2: gradient + inline icon + 12px radius
   Captain's rejection of the flat pill addressed with:
     - Vertical gradient (#00B5D1 top, #007885 bottom)
     - 12px radius (Stripe / Linear feel — was 999px candy pill)
     - Inline arrow icon (slides on hover)
     - Soft inner highlight (top edge) + bottom-anchored cyan glow on hover
   ============================================================ */
.lp-btn-primary {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid color-mix(in srgb, var(--accent-text) 45%, transparent);
  border-radius: var(--radius-btn);
  background: linear-gradient(180deg,
              var(--accent-vivid) 0%,
              var(--accent) 55%,
              var(--accent-text) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 240ms cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 200ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 0 0 1px color-mix(in srgb, var(--accent-text) 50%, transparent);
}
.lp-btn-primary__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.lp-btn-primary__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lp-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 8px 24px color-mix(in srgb, var(--accent-bright) 30%, transparent),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 0 0 1px color-mix(in srgb, var(--accent-text) 60%, transparent);
}
.lp-btn-primary:hover .lp-btn-primary__icon {
  transform: translateX(3px);
}
.lp-btn-primary:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 0 0 3px var(--accent-glow-2),
    0 0 0 1px var(--accent-text),
    0 8px 24px color-mix(in srgb, var(--accent-bright) 28%, transparent);
}
.lp-btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}
.lp-btn-primary[disabled],
.lp-btn-primary.is-loading {
  cursor: progress;
  opacity: 0.75;
  transform: none;
  filter: none;
}
.lp-btn-primary.is-loading .lp-btn-primary__icon {
  opacity: 0;
}
.lp-btn-primary .lp-spinner {
  position: absolute;
  display: none;
  width: 16px;
  height: 16px;
  right: 22px;
  top: 50%;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 999px;
  animation: lp-spin 0.7s linear infinite;
}
.lp-btn-primary.is-loading .lp-spinner { display: inline-block; }
@keyframes lp-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   MODE TOGGLE — "Have a password? Sign in with password →"
   ============================================================ */
.lp-mode-toggle {
  margin: 14px 0 0;
  text-align: center;
}
.lp-mode-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: none;
  padding-bottom: 0;
  color: var(--text-dim);
}
.lp-mode-toggle__btn:hover {
  color: var(--accent-text);
}
.lp-mode-toggle__arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  color: var(--accent-text);
  font-weight: 600;
}
.lp-mode-toggle__btn:hover .lp-mode-toggle__arrow {
  transform: translateX(3px);
}

/* ============================================================
   LEGAL FOOTNOTE inside the card
   ============================================================ */
.lp-legal {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 22px 0 0;
}
.lp-legal a {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}
.lp-legal a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Linkbutton (e.g. "try a different address") */
.lp-linkbtn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}
.lp-linkbtn:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.lp-linkbtn:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

/* ============================================================
   "Check your email" CONFIRMATION — static, no animated tick
   ============================================================ */
.lp-sent {
  text-align: left;
}
.lp-sent__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--accent-text);
  margin-bottom: 22px;
}
.lp-sent__icon svg {
  width: 28px;
  height: 28px;
}
.lp-sent__email {
  font-weight: 600;
  color: var(--text);
}
.lp-card__hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 18px 0 0;
}

/* ============================================================
   FOOTER — tiny brand line, breathes
   ============================================================ */
.lp-footer {
  padding: 0 32px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.lp-footer__sep {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-hi);
}

/* ============================================================
   RESPONSIVE — phone-first courtesy
   ============================================================ */
@media (max-width: 540px) {
  .lp-header {
    padding: 22px 18px 0;
  }
  .lp-main {
    /* Top-align on mobile — vertically centering with flex causes tall
       content (like the "Check your email" confirmation panel) to overflow
       ABOVE the visible viewport with no scroll. Pin to top + let normal
       page-scroll handle anything that exceeds viewport height. */
    align-items: flex-start;
    padding: 20px 16px 40px;
  }
  .lp-card {
    padding: 32px 24px 28px;
    border-radius: 20px;
  }
  .lp-h1 {
    font-size: 26px;
  }
  .lp-sub {
    font-size: 14.5px;
  }
  .lp-footer {
    padding: 0 18px 18px;
    text-align: center;
    flex-wrap: wrap;
  }
  .lp-tenant-chip {
    display: none;
  }
  .lp-mode-toggle__btn {
    font-size: 12.5px;
  }
  /* "Check your email" confirmation panel — compact for mobile so nothing
     clips below the fold on iOS Safari (especially with the URL bar visible). */
  .lp-sent .lp-h1 {
    font-size: 22px;
  }
  .lp-sent__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }
  .lp-sent__icon svg {
    width: 24px;
    height: 24px;
  }
  .lp-sent .lp-sub {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .lp-sent .lp-card__hint {
    font-size: 12.5px;
    margin-top: 12px;
  }
}

/* ============================================================
   REDUCED MOTION — honour user pref
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lp-card,
  .lp-btn-primary,
  .lp-input,
  .lp-legal a,
  .lp-linkbtn,
  .lp-mode-toggle__btn,
  .lp-btn-primary__icon,
  .lp-mode-toggle__arrow {
    transition: none;
  }
  .lp-btn-primary:hover {
    transform: none;
  }
  .lp-btn-primary:hover .lp-btn-primary__icon,
  .lp-mode-toggle__btn:hover .lp-mode-toggle__arrow {
    transform: none;
  }
  .lp-spinner {
    animation: none;
  }
  .lp-v4::before,
  .lp-v4::after {
    animation: none;
  }
  .lp-input:focus {
    animation: none;
  }
}
