.mp-frame {
  --ink: #182c42;
  --muted: #52647b;
  --line: #dce5ef;
  --blue: #1f6feb;
  min-height: 100dvh;
  background: white;
  color: var(--ink);
  font: 15px/1.5 Inter, system-ui, sans-serif;
}
body:has(.mp-frame) { overflow: auto; background: white !important; }
.mp-frame *, .mp-frame *::before { box-sizing: border-box; }
.mp-frame :is(h1,h2,h3,p,ul) { margin: 0; }
.mp-header { border-bottom: 1px solid var(--line); }
.mp-header > div, .mp-columns { max-width: 1240px; margin: auto; padding-inline: 24px; }
.mp-header > div, .mp-header nav, .mp-brand { display: flex; align-items: center; flex-wrap: wrap; }
.mp-header > div { justify-content: space-between; gap: 12px; min-height: 66px; padding-block: 12px; }
.mp-header nav { gap: 18px; }
.mp-frame :is(.mp-header,.mp-guides) a { color: #1259c3; font-size: 14px; font-weight: 600; }
.mp-header a { text-decoration: none; }
.mp-header a:hover, .mp-guides a:hover { text-decoration: underline; }
.mp-header a.mp-brand { color: var(--ink); font-size: 21px; font-weight: 700; }
.mp-brand img { width: 34px; height: 34px; margin-right: 10px; }
.mp-brand sup { align-self: start; margin: 4px 0 0 2px; font-size: 10px; }
.mp-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(350px,460px); gap: 32px; padding-block: 40px 56px; }
.mp-card { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px; box-shadow: 0 12px 40px #182c4214; }
.mp-intro { display: none; }
.mp-frame[data-entry=true] .mp-card:has(.logto_branding-header) .mp-intro { display: block; }
.mp-frame[data-entry=true] .mp-card .logto_branding-header { display: none; }
.mp-intro h1, .mp-tour h2 { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.mp-intro p, .mp-tour p { color: var(--muted); }
.mp-intro .mp-note { border: 1px solid var(--line); background: #f4f8ff; border-radius: 14px; padding: 12px 14px; color: #344a63; font-size: 13px; margin-bottom: 18px; }
.mp-intro h1 { margin-bottom: 6px; }
.mp-tour { grid-row: 1; grid-column: 1; min-width: 0; display: grid; gap: 18px; align-content: start; background: #f4f8ff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.mp-tour h2 { font-size: 34px; }
.mp-tour h2 + p { margin-top: -10px; font-size: 16px; }
.mp-demos, .mp-benefits { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-demos button { appearance: none; min-height: 44px; border: 1px solid #c8d5e5; border-radius: 999px; padding: 0 16px; background: white; color: #344a63; font-weight: 600; font-family: inherit; font-size: 14px; cursor: pointer; }
.mp-demos button[aria-pressed=true] { color: white; border-color: var(--blue); background: var(--blue); }
.mp-frame :focus-visible { outline: 3px solid #1259c3; outline-offset: 2px; }
.mp-tour video { width: 100%; aspect-ratio: 16/9; background: #0f1722; border-radius: 18px; box-shadow: 0 16px 40px #0f17222e; }
.mp-tour .mp-benefits { border-top: 1px solid var(--line); padding: 14px 0 0; gap: 8px 16px; list-style: none; font-size: 14px; }
.mp-benefits li:not(:last-child)::before { content: '✓'; color: #14804a; margin-right: 5px; }
.mp-guides { display: grid; grid-template-columns: 1fr auto; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.mp-guides h3 { font-size: 15px; }
.mp-guides div { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-guides a { align-content: center; min-height: 32px; }

/* Release 1.37 exposes stable layout hooks around the native form. */
.mp-card #app::before { display: none; }
.mp-card #app, .mp-card #app > div:has(.logto_page-container),
.mp-card #app .logto_page-container, .mp-card #app .logto_main-content {
  position: static; inset: auto; display: block; min-height: 0 !important;
  height: auto; width: 100%; padding: 0 !important; margin: 0;
  background: transparent !important; border: 0; box-shadow: none; overflow: visible;
}
.mp-card .logto_main-content > div:has(form), .mp-card .logto_main-content > div {
  max-width: none !important; margin: 0 !important; padding: 0 !important;
  box-shadow: none !important; border: 0 !important; background: transparent !important;
}
.mp-card .logto_main-content form { margin-top: 18px; }
.mp-card .logto_main-content input:is([type=email],[type=text],[name=identifier]) { border-radius: 12px !important; border-color: #c8d5e5 !important; }
.mp-card .logto_main-content button[type=submit] { min-height: 50px; background: var(--blue) !important; border-color: var(--blue) !important; color: white !important; }
.mp-card .logto_main-content button[type=submit]:disabled { opacity: .65; }
.mp-card .logto_main-content a { color: #1259c3 !important; }
.mp-card .logto_main-content :focus-visible { outline: 2px solid #1259c3 !important; }
@media (max-width: 900px) {
  .mp-columns { grid-template-columns: minmax(0,1fr); gap: 24px; max-width: 680px; }
  .mp-card,.mp-tour { grid-column: 1; grid-row: auto; }
}
@media (max-width: 550px) {
  .mp-header > div,.mp-columns { padding-inline: 16px; }
  .mp-columns { padding-block: 20px 32px; }
  .mp-card,.mp-tour { padding: 22px 18px; }
  .mp-header nav { gap: 10px; }
  .mp-intro h1,.mp-tour h2 { font-size: 27px; }
}
.mp-card .logto_main-content .kTn6T_socialLinkButton { flex-basis: auto !important; }
.mp-card .logto_main-content ._99OTb_socialButton,
.mp-card .logto_main-content .cHQuy_button { min-height: 46px; }
.mp-frame[data-entry=false] .logto_main-content button[class*="_primary"] {
  background: var(--blue) !important; color: white !important; border-radius: 999px;
}
