body {
  margin: auto;
  min-height: 100vh;
  min-width: 100%;
  background: var(--ory-theme-background-canvas);
  display: flex;
  flex-direction: column;
}

/* the browser adds margins to these elements by default */
ul,
ol,
p,
h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 0;
}

/* main contains all of our page elements - excluding the footer */
main {
  /* fill the page */
  flex: 1;
}

.divider {
  width: 4rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.spacing-32 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.spacing-32-horizontal {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.spacing-16 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spacing-16-horizontal {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.spacing-8 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.divider-left {
  margin: 0;
}

.ory-branding {
  display: flex;
  flex-direction: row;
  gap: 0.375rem;
  align-items: center;
  padding-bottom: 2rem;
}

/* only manage the nav */
.main-nav {
  min-width: 18.75rem;
  position: fixed;
  height: auto;
  z-index: 1;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 2;
}

/* pushes the menu links to either side of the footer bar */
.footer-container {
  padding: 1rem 1.5rem;
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75rem;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ory-theme-foreground-muted);
  background-color: var(--ory-theme-background-surface);
}

.footer-divider {
  height: 0;
  border-top: 1px !important;
}

@media screen and (max-width: 24.375em) {
  .footer-container > div:last-child {
    display: none;
  }
}

@media screen and (max-width: 40em) {
  body {
    background: var(--ory-theme-background-surface);
  }
}

/* =========================
   OwW2 UI hardening overrides
   - remove nav/footer routes
   - normalize layout when nav/footer are gone
   ========================= */

/* 1) Remove global nav + footer (prevents side menu / extra routes) */
.main-nav,
footer,
.footer-container {
  display: none !important;
}

/* 2) When nav/footer are removed, undo the “make room for them” paddings/margins */
.app-container {
  padding-bottom: 0 !important; /* was 5.5rem for footer */
  min-height: 100vh;
}

.auth-container {
  padding-bottom: 2rem !important; /* was 5.5rem for footer */
}

/* content-layout.css sets these to avoid being hidden under nav (mobile) / beside nav (desktop) */
.container {
  margin-top: 0 !important;   /* was 5.125rem on mobile */
  margin-left: 0 !important;  /* was 18.75rem on desktop */
  padding-top: 2rem;          /* keep some breathing room */
}

/* 3) Make the actual form area readable and centered (especially on wide screens) */
.content {
  width: 100% !important;
  max-width: 42rem;
  margin: 0 auto;
}

/* 4) Hide “brand/logo” blocks if you want a more app-like feel */
.ory-branding,
.ory-logo,
img[alt*="Ory"],
svg[aria-label*="Ory"] {
  display: none !important;
}

/* 5) Defensive: if some “menu toggle / hamburger” button remains somewhere, hide it.
   (This is intentionally broad; if something important disappears, we will narrow it.) */
header button,
header [role="button"],
button[aria-label*="menu"],
button[aria-label*="Menu"] {
  display: none !important;
}

/* 6) Optional: reduce visual noise for informational banners (e.g. recovery success notice)
   If you still want some notices, comment this out. */
[role="alert"],
.alert,
.notice,
.notification {
  display: none !important;
}

/* 7) Mobile polish */
@media screen and (max-width: 48em) {
  body {
    background: var(--ory-theme-background-surface);
  }
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
