/* App shell: sidebar + top nav + main (Replit app-layout) */
/* Fonts loaded via <link> in layout heads — avoids bundle/minify issues on IIS */

html.app-root {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

html.app-root,
html.app-root body {
  overscroll-behavior: none;
}

body.app-body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

/* Public / standalone layouts: document scroll (checkout uses onboarding-payment.css) */
html:has(body.app-body:not(.app-layout-locked):not(.onboarding-checkout-page)),
body.app-body:not(.app-layout-locked):not(.onboarding-checkout-page) {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

body.app-body:not(.app-layout-locked):not(.onboarding-checkout-page) {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Authenticated app: lock viewport; only .app-content scrolls */
body.app-body.app-layout-locked {
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.app-body.app-layout-locked > .app-shell {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
}

body.app-body.app-layout-locked > .app-global-loader,
body.app-body.app-layout-locked > .app-sidebar-backdrop,
body.app-body.app-layout-locked > .modal,
body.app-body.app-layout-locked > .app-toast-container {
  flex: 0 0 auto;
}

h1, h2, h3, h4, h5, .app-page-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-shell {
  display: flex;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.app-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  transition: transform 0.25s ease, width 0.25s ease;
  z-index: 1040;
}

.app-sidebar-header {
  height: 4rem;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #0f172a;
  text-decoration: none;
}

.app-brand i,
.app-brand .landing-hero-icon,
.app-sidebar-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.app-brand:hover {
  color: var(--primary-hover);
}

.app-brand:hover i {
  background: rgba(59, 130, 246, 0.18);
}

.app-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.75rem 0.65rem;
  overscroll-behavior: contain;
}

.app-nav-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 1rem 0.85rem 0.4rem;
}

.app-nav-group-label:first-child {
  padding-top: 0.35rem;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.85rem;
  margin: 0.12rem 0.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #334155;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.app-nav-link i {
  font-size: 1.1rem;
  opacity: 0.88;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.app-nav-link:hover:not(.active) {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.12);
  color: var(--primary-hover);
}

.app-nav-link:hover:not(.active) i {
  color: var(--primary);
  opacity: 1;
}

.app-nav-link.active {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.38);
}

.app-nav-link.active i {
  color: #fff;
  opacity: 1;
}

.app-nav-link:not(.active) i {
  color: #3b82f6;
}

.app-nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.app-nav-dropdown {
  margin: 0.2rem 0.2rem 0.35rem;
}

.app-nav-dropdown-header {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-nav-dropdown.is-active .app-nav-dropdown-header {
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.38);
}

.app-nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
  padding: 0.62rem 0.55rem 0.62rem 0.85rem;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.app-nav-dropdown-link i {
  font-size: 1.1rem;
  opacity: 0.88;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  color: #3b82f6;
}

.app-nav-dropdown-link:hover {
  color: var(--primary-hover);
  background: rgba(59, 130, 246, 0.08);
}

.app-nav-dropdown-link.active {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  color: #fff;
  font-weight: 600;
}

.app-nav-dropdown-link.active i {
  color: #fff;
  opacity: 1;
}

.app-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.app-nav-dropdown-chevron {
  font-size: 0.8rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.app-nav-dropdown.is-open .app-nav-dropdown-chevron {
  transform: rotate(180deg);
}

.app-nav-dropdown-toggle:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.app-nav-dropdown.is-active .app-nav-dropdown-toggle {
  border-left-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.app-nav-dropdown.is-active .app-nav-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-nav-dropdown-menu {
  display: none;
  margin: 0;
}

.app-nav-dropdown.is-open > .app-nav-dropdown-menu {
  display: block;
  margin: 0.4rem 0 0.15rem;
}

.app-nav-dropdown-menu-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem;
  margin-left: 0.35rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.app-nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.65);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.app-nav-dropdown-icon-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.18) 100%);
  color: #2563eb;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-nav-dropdown-label {
  flex: 1;
  min-width: 0;
}

.app-nav-dropdown-chevron-wrap {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-nav-dropdown-trigger .app-nav-dropdown-chevron {
  font-size: 0.72rem;
  margin: 0;
  opacity: 1;
  transition: transform 0.25s ease;
}

.app-nav-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.28);
  color: #2563eb;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}

.app-nav-dropdown-trigger:hover .app-nav-dropdown-icon-wrap {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.app-nav-dropdown-trigger:hover .app-nav-dropdown-chevron-wrap {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.app-nav-dropdown-trigger.is-open {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(59, 130, 246, 0.35);
  color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.16);
}

.app-nav-dropdown-trigger.is-open .app-nav-dropdown-icon-wrap {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
}

.app-nav-dropdown-trigger.is-open .app-nav-dropdown-chevron-wrap {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

.app-nav-dropdown-trigger.is-open .app-nav-dropdown-chevron {
  transform: rotate(180deg);
}

.app-nav-dropdown-trigger.is-group-active {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(239, 246, 255, 0.95);
  color: #1d4ed8;
}

.app-nav-dropdown-trigger.is-group-active .app-nav-dropdown-icon-wrap {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.app-nav-link--child {
  padding: 0.5rem 0.65rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9px;
  gap: 0.55rem;
}

.app-nav-child-icon-wrap {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  font-size: 0.85rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.app-nav-link--child:hover:not(.active) {
  background: rgba(59, 130, 246, 0.08);
  border-color: transparent;
}

.app-nav-link--child:hover:not(.active) .app-nav-child-icon-wrap {
  background: rgba(59, 130, 246, 0.16);
  color: #2563eb;
}

.app-nav-link--child.active .app-nav-child-icon-wrap {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.app-sidebar-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--sidebar-border);
  padding: 0.75rem;
}

.app-main-column {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: hsl(210, 16%, 95%);
  transition: margin-left 0.25s ease, width 0.25s ease;
}

.app-email-verification-banner {
  flex-shrink: 0;
}

.app-page-footer {
  flex-shrink: 0;
}

.app-topbar {
  height: 4rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
}

@media (min-width: 992px) {
  .app-topbar {
    padding: 0 1.5rem;
  }
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.app-topbar-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Scroll container — authenticated shell only (not public landing main) */
.app-main-column > .app-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
  .app-main-column > .app-content {
    padding: 1.5rem 2rem;
  }
}

.app-public-wrap > .app-content {
  flex: 1 0 auto;
  min-height: auto;
  overflow: visible;
  padding: 1rem;
}

.app-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 1035;
}

body.sidebar-open .app-sidebar-backdrop {
  display: block;
}

@media (min-width: 992px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 1030;
  }

  .app-main-column {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: 100%;
    max-height: 100%;
  }

  body.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-width-collapsed);
  }

  body.sidebar-collapsed .app-main-column {
    margin-left: var(--sidebar-width-collapsed);
    width: calc(100% - var(--sidebar-width-collapsed));
  }

  .app-topbar {
    position: relative;
    z-index: 1045;
    flex-shrink: 0;
  }

  .app-topbar-sidebar-controls {
    position: relative;
    z-index: 1046;
  }

  .app-topbar-sidebar-controls .btn {
    position: relative;
    z-index: 1047;
    pointer-events: auto;
    cursor: pointer;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-md);
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-main-column {
    width: 100%;
    margin-left: 0;
  }
}

/* Collapsed sidebar (desktop) — clean icon rail */
@media (min-width: 992px) {
  body.sidebar-collapsed .app-sidebar {
    overflow: visible;
    z-index: 1035;
  }

  body.sidebar-collapsed .app-sidebar-nav {
    padding: 0.5rem 0.4rem;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-group-label,
  body.sidebar-collapsed .app-sidebar .app-nav-link > span:not(.app-nav-badge):not(.app-nav-child-icon-wrap),
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-label,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-link > span,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-chevron-wrap,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-toggle,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-menu,
  body.sidebar-collapsed .app-sidebar .app-sidebar-user-text,
  body.sidebar-collapsed .app-sidebar .app-sidebar-logout-btn > span {
    display: none !important;
  }

  body.sidebar-collapsed .app-sidebar .authentik-logo-wrap--sidebar {
    height: 2.25rem;
  }

  body.sidebar-collapsed .app-sidebar .app-sidebar-header {
    justify-content: center;
    padding: 0.65rem 0.4rem 0.5rem;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-dropdown {
    margin: 0.1rem 0;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-header {
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
    border-radius: 10px;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-dropdown.is-active .app-nav-dropdown-header {
    box-shadow: none;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-link,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-link,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-trigger {
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
    margin: 0.1rem 0;
    padding: 0.5rem;
    border-radius: 10px;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-trigger {
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-trigger:hover,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-trigger.is-group-active,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-trigger.is-open {
    border-color: transparent;
    background: rgba(59, 130, 246, 0.08);
    box-shadow: none;
    color: var(--primary-hover);
  }

  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-trigger.is-group-active .app-nav-dropdown-icon-wrap,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-link.active .app-nav-dropdown-icon-wrap,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-link.active i {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  }

  body.sidebar-collapsed .app-sidebar .app-nav-link i,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-link i {
    margin: 0;
    font-size: 1.15rem;
    width: auto;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    border-radius: 10px;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    min-width: 1rem;
    padding: 0 0.2rem;
    font-size: 0.6rem;
    line-height: 1.2;
  }

  body.sidebar-collapsed .app-sidebar .app-nav-link {
    position: relative;
  }

  body.sidebar-collapsed .app-sidebar .app-sidebar-footer {
    padding: 0.45rem 0.4rem 0.55rem;
  }

  body.sidebar-collapsed .app-sidebar .app-sidebar-user-panel {
    gap: 0.35rem;
  }

  body.sidebar-collapsed .app-sidebar .app-sidebar-user-card {
    justify-content: center;
    padding: 0.4rem;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  body.sidebar-collapsed .app-sidebar .app-sidebar-user-card:hover {
    background: rgba(59, 130, 246, 0.08);
  }

  body.sidebar-collapsed .app-sidebar .app-sidebar-user-avatar {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.68rem;
  }

  body.sidebar-collapsed .app-sidebar .app-sidebar-logout-btn {
    justify-content: center;
    padding: 0.45rem;
    border-radius: 10px;
  }

  body.sidebar-collapsed .app-sidebar .app-sidebar-logout-btn i {
    margin: 0;
    font-size: 1.05rem;
  }

  /* Hover tooltips for icon rail */
  body.sidebar-collapsed .app-sidebar .app-nav-link[title]:hover::after,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-link[title]:hover::after,
  body.sidebar-collapsed .app-sidebar .app-nav-dropdown-trigger[title]:hover::after,
  body.sidebar-collapsed .app-sidebar .app-sidebar-user-card[title]:hover::after,
  body.sidebar-collapsed .app-sidebar .app-sidebar-logout-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 0.55rem);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.35rem 0.65rem;
    background: #1e293b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
    z-index: 1060;
    pointer-events: none;
  }
}

.app-topbar-sidebar-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Public / auth layouts */
.app-public-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-public-header {
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  padding: 0.75rem 1rem;
}

.app-public-header .app-brand img,
.app-public-header .app-brand .authentik-logo-wrap {
  max-width: 100%;
}

.app-auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, hsla(180, 83%, 46%, 0.08), var(--background) 50%, hsla(180, 83%, 46%, 0.05));
}

body.auth-modern-page .app-auth-page {
  background: transparent !important;
}

.app-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

body.auth-modern-page .app-auth-card {
  background: #ffffff !important;
  border: 1px solid #e8eef5 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}

.app-auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.app-auth-brand-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: hsla(180, 83%, 46%, 0.15);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Auth modern pages use .landing-hero-icon instead (see home-landing.css) */
body.auth-modern-page .app-auth-brand-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  border-radius: 0.75rem;
  width: 3.25rem;
  height: 3.25rem;
}

.app-signing-wrap {
  max-width: 960px;
  margin: 0 auto;
}
