/* Align with main site (Next.js): slate-900 text, blue→violet accents — see /main/src/app/globals.css */
:root {
  --nexus-primary: #3b82f6;
  --nexus-primary-dark: #2563eb;
  --nexus-accent: #8b5cf6;
  --nexus-accent-dark: #7c3aed;
  --nexus-text: #0f172a;
  --nexus-muted: #475569;
  --nexus-surface: #ffffff;
  --nexus-surface-soft: #f8fafc;
  --nexus-border: #e2e8f0;
  --nexus-gradient: linear-gradient(90deg, var(--nexus-primary), var(--nexus-accent));
  --nexus-gradient-hover: linear-gradient(90deg, var(--nexus-primary-dark), var(--nexus-accent-dark));
}

body {
  font-family: "Inter", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--nexus-text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--nexus-text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.primary-bg-color {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#header .topbar {
  background: #0f172a;
}

#header .topbar,
#header .topbar a,
#header .topbar .btn {
  color: #e2e8f0;
}

.header .navbar.main-navbar-wrapper,
.master-breadcrumb {
  background: var(--nexus-surface);
}

.header {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.header .navbar {
  border-bottom: 1px solid var(--nexus-border);
}

.master-breadcrumb {
  border-bottom: 1px solid var(--nexus-border);
}

.navbar-brand .logo-img {
  max-height: 44px;
}

.main-navbar-wrapper .nav-link,
.main-navbar-wrapper .dropdown-toggle {
  color: var(--nexus-text) !important;
  font-weight: 600;
}

.main-navbar-wrapper .nav-link:hover,
.main-navbar-wrapper .dropdown-toggle:hover {
  color: var(--nexus-primary) !important;
}

.btn {
  border-radius: 12px;
  font-weight: 600;
}

.btn-default,
.btn-secondary,
button.btn-default {
  background: #ffffff;
  border-color: var(--nexus-border);
  color: var(--nexus-text);
}

.btn-default:hover,
.btn-secondary:hover,
button.btn-default:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--nexus-text);
}

.btn-primary,
.btn.btn-primary,
button.btn-primary {
  background: linear-gradient(90deg, var(--nexus-primary), var(--nexus-accent));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover,
.btn.btn-primary:hover,
button.btn-primary:hover {
  background: linear-gradient(90deg, var(--nexus-primary-dark), var(--nexus-accent-dark));
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

a,
.text-primary {
  color: var(--nexus-primary);
}

a:hover {
  color: var(--nexus-primary-dark);
}

.home-shortcuts li a,
.domain-pricing .tld-row {
  border-radius: 12px;
}

.card,
.panel,
.ticket-reply,
.client-home-panels .panel {
  border-radius: 12px;
  border-color: var(--nexus-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.alert,
.form-control,
.dropdown-menu {
  border-radius: 10px;
}

.dropdown-menu {
  border-color: var(--nexus-border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.form-control {
  border: 1px solid var(--nexus-border);
  min-height: 42px;
}

.form-control:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.alert-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.alert-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.table thead th {
  border-bottom: 1px solid var(--nexus-border);
  color: var(--nexus-text);
  font-weight: 700;
}

.table > tbody > tr > td {
  border-top-color: #edf2f7;
}

.login-container,
.container .logincontainer {
  background: transparent;
}

.logincontainer .card,
.logincontainer .panel {
  max-width: 540px;
  margin: 0 auto;
}

.status-badge,
.label,
.badge {
  border-radius: 999px;
}

.pagination > li > a,
.pagination > li > span {
  border-radius: 10px !important;
  margin: 0 3px;
  border-color: var(--nexus-border);
}

.pagination > .active > a,
.pagination > .active > span {
  background: linear-gradient(90deg, var(--nexus-primary), var(--nexus-accent));
  border-color: transparent;
}

/* Stronger homepage branding pass (Twenty-One layout) */
#main-body h2.text-center {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nexus-text);
  margin-top: 2.25rem !important;
  margin-bottom: 1.25rem !important;
}

.domain-search-box,
.search-box,
.domain-checker-container {
  background: #fff;
  border: 1px solid var(--nexus-border);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;
}

#main-body .card-columns.home {
  column-count: unset;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

#main-body .card-columns.home .card {
  margin-bottom: 0;
}

#main-body .pricing-card-title {
  font-size: 1.75rem;
  margin-bottom: 0.7rem;
}

.btn-outline-primary {
  color: var(--nexus-primary);
  border-color: #bfdbfe;
  border-radius: 12px;
  font-weight: 700;
}

.btn-outline-primary:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--nexus-primary), var(--nexus-accent));
}

.action-icon-btns a {
  border-radius: 14px !important;
  border: 1px solid var(--nexus-border) !important;
  background: #fff !important;
  color: var(--nexus-text) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-icon-btns a:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe !important;
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.15);
}

.action-icon-btns a .ico-container {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff) !important;
  border-radius: 12px;
}

@media (max-width: 991px) {
  #main-body .card-columns.home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #main-body .card-columns.home {
    grid-template-columns: 1fr;
  }
}

/* ---- Footer: match main site (Footer.tsx) — override Twenty-One #404040 ---- */
footer.footer.nexus-footer {
  background: #f8fafc !important;
  color: var(--nexus-text) !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 3rem 0 4rem !important;
  margin-top: 0;
  font-size: 1rem;
}

.nexus-footer-inner {
  max-width: 80rem;
}

.nexus-footer-utilities {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.nexus-footer-utilities .btn-icon {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  color: #64748b !important;
}

.nexus-footer-utilities .btn-icon:hover {
  border-color: #bfdbfe !important;
  color: var(--nexus-primary) !important;
}

.nexus-footer-lang-btn {
  background-color: #fff !important;
  color: var(--nexus-text) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 14px;
}

.nexus-footer-lang-btn:hover {
  border-color: #bfdbfe !important;
  background: #fff !important;
}

.nexus-footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .nexus-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nexus-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .nexus-footer-grid {
    grid-template-columns: minmax(0, 1.1fr) repeat(5, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

.nexus-footer-logo {
  display: inline-block;
  text-decoration: none !important;
}

.nexus-footer-logo:hover {
  opacity: 0.9;
}

.nexus-footer-logo-img {
  display: block;
  height: auto;
  width: auto;
  max-height: 40px;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}

.nexus-footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b !important;
  max-width: 18rem;
}

.nexus-footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a !important;
  margin: 0 0 1rem 0;
}

.nexus-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nexus-footer-links li {
  margin-bottom: 0.75rem;
}

.nexus-footer-links a {
  font-size: 0.875rem;
  color: #64748b !important;
  text-decoration: none !important;
  font-weight: 400;
}

.nexus-footer-links a:hover {
  color: #0f172a !important;
}

.nexus-footer-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.nexus-footer-secondary a {
  font-weight: 600 !important;
  color: #475569 !important;
}

.nexus-footer-secondary a:hover {
  color: #0f172a !important;
  text-decoration: underline !important;
}

.nexus-footer-secondary-sep {
  color: #cbd5e1;
  user-select: none;
}

.nexus-footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.nexus-footer-copyright {
  font-size: 0.875rem;
  color: #64748b !important;
}

/* ---- Store / cart / checkout (order forms) ---- */
#order-standard_cart .view-cart,
.cart-summary,
.cart-totals,
.checkout-summary {
  border-radius: 12px;
  border-color: var(--nexus-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

#order-standard_cart .panel,
#order-standard_cart .panel-sidebar .panel {
  border-radius: 12px;
  border-color: var(--nexus-border);
}

#order-standard_cart .panel-title {
  font-weight: 700;
  color: var(--nexus-text);
}

.domain-selection-options .option,
.domain-searching {
  border-radius: 12px;
}

.list-group-item {
  border-color: var(--nexus-border);
}

.list-group-item.active {
  background: var(--nexus-gradient);
  border-color: transparent;
}

/* ---- Sidebar (client area) ---- */
.sidebar .list-group-item,
.sidebar .nav-link {
  border-radius: 10px;
  font-weight: 600;
}

.sidebar .list-group-item.active {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  color: var(--nexus-text);
  border-color: #bfdbfe;
}

/* ---- Misc: success/warning buttons stay readable ---- */
.btn-success {
  border-radius: 12px;
  font-weight: 600;
}

.btn-warning,
.btn-info {
  border-radius: 12px;
  font-weight: 600;
}

/* ---- Invoice / quotes tables ---- */
.invoice-container .table,
.quote-table {
  border-radius: 12px;
  overflow: hidden;
}

/* ---- Reduce Bootstrap default blue where it clashes ---- */
.text-info {
  color: #0369a1 !important;
}

/* ---- Main site–style header (matches src/components/Navbar.tsx) ---- */
.nexus-site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
}

.nexus-header-topbar {
  background: #0f172a !important;
}

.nexus-header-topbar,
.nexus-header-topbar .btn,
.nexus-header-topbar a {
  color: #e2e8f0 !important;
}

.nexus-main-site-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nexus-nav-row {
  min-height: 4rem;
}

.nexus-nav-logo {
  text-decoration: none !important;
}

.nexus-nav-logo:hover {
  opacity: 0.92;
}

.nexus-nav-logo-img {
  display: block;
  height: auto;
  width: auto;
  max-height: 44px;
  max-width: min(220px, 52vw);
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.nexus-nav-desktop .nexus-nav-link {
  padding: 0.35rem 0.65rem;
  margin: 0 0.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569 !important;
  text-decoration: none !important;
  border-radius: 0.5rem;
}

.nexus-nav-desktop .nexus-nav-link:hover,
.nexus-nav-desktop .nexus-nav-link:focus {
  color: #0f172a !important;
}

.nexus-nav-desktop .dropdown-toggle::after {
  margin-left: 0.2rem;
  vertical-align: 0.1em;
}

.nexus-dropdown-menu {
  border-radius: 1rem !important;
  padding: 0.5rem !important;
  margin-top: 0.5rem !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1) !important;
  min-width: 14rem;
}

.nexus-dropdown-menu .dropdown-item {
  border-radius: 0.75rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  color: #334155 !important;
}

.nexus-dropdown-menu .dropdown-item:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* Tools: client login first, then cart — keeps #cartItemCount badge from overlapping the login label */
.nexus-nav-tools {
  gap: 1rem;
  flex-wrap: nowrap;
}

.nexus-cart-btn {
  color: #475569 !important;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
  flex-shrink: 0;
}

.nexus-cart-btn:hover {
  background: #f8fafc;
  color: #0f172a !important;
}

.nexus-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.1rem;
  text-align: center;
  font-size: 0.65rem;
  padding: 0.15em 0.4em;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--nexus-primary), var(--nexus-accent)) !important;
  border: none;
  pointer-events: none;
}

.nexus-client-area-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a !important;
  text-decoration: none !important;
}

.nexus-client-area-link:hover {
  opacity: 0.85;
  color: #0f172a !important;
}

.nexus-mobile-nav-inner {
  border-top: 1px solid #e2e8f0;
}

.nexus-mobile-nav .nexus-nav-link {
  color: #475569 !important;
  text-decoration: none !important;
}

.nexus-mobile-toggle {
  color: #475569 !important;
}

.nexus-mobile-toggle:hover {
  background: #f8fafc !important;
  text-decoration: none !important;
}

/* —— Client login: 4-column grid, plain white —— */
.nexus-login-body.primary-bg-color,
.nexus-login-body {
  background: #ffffff !important;
}

.nexus-login-body #main-body {
  background: #ffffff !important;
}

.nexus-login-body #main-body.nexus-login-main-section {
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
}

/* Fill viewport below header; centre login block vertically + horizontally */
.nexus-login-body #main-body.nexus-login-main-section > .container-fluid {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 5.5rem);
  min-height: calc(100dvh - 5.5rem);
  min-height: calc(100svh - 5.5rem);
}

.nexus-login-body #main-body.nexus-login-main-section > .container-fluid > .row {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 0;
}

.nexus-login-body #main-body .primary-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  width: 100%;
}

.nexus-login-page {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  flex: 0 1 auto;
  padding: clamp(1rem, 3vw, 2rem);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Desktop: column 1 + 4 = flexible margins; 2 = logo; 3 = form */
.nexus-login-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px) minmax(280px, 420px) 1fr;
  align-items: center;
  justify-items: stretch;
  gap: clamp(1rem, 2.5vw, 2rem);
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.nexus-login-grid-spacer {
  min-height: 1px;
}

@media (max-width: 991px) {
  .nexus-login-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .nexus-login-grid-spacer {
    display: none;
  }
}

/* Logo column: plain page background — no tint / gradient */
.nexus-login-panel-left {
  background: transparent;
  border: none;
}

.nexus-login-panel-left-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0.5rem 2.5rem;
}

@media (min-width: 992px) {
  .nexus-login-panel-left-inner {
    padding: 2rem 0.25rem;
    align-items: center;
  }
}

.nexus-login-brand-link {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nexus-login-brand-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.nexus-login-brand-link:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: 6px;
  border-radius: 12px;
}

.nexus-login-logo-img {
  display: block;
  width: auto;
  max-width: min(300px, 90vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.1));
}

.nexus-login-brand-kicker {
  margin: 1.1rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nexus-muted);
}

.nexus-login-left-tagline {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #64748b;
}

.nexus-login-panel-right {
  background: transparent;
}

.nexus-login-panel-right-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 0.25rem 2rem;
}

@media (min-width: 992px) {
  .nexus-login-panel-right-inner {
    padding: 0 0 0.5rem;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.nexus-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid var(--nexus-border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: none;
}

.nexus-login-card.card {
  border: 1px solid var(--nexus-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

.nexus-login-card .card-body {
  padding-top: 2.25rem !important;
  padding-bottom: 2rem !important;
}

.nexus-login-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--nexus-text);
}

.nexus-login-sub {
  font-size: 1rem;
  line-height: 1.45;
}

.nexus-login-input-group .input-group-text {
  background: #ffffff;
  border-color: var(--nexus-border);
  color: var(--nexus-muted);
  border-radius: 12px 0 0 12px;
}

.nexus-login-input-group .form-control {
  border-radius: 0 12px 12px 0;
  border-left: none;
  font-size: 1rem;
}

.nexus-login-input-group .input-group-append .btn {
  border-radius: 0 12px 12px 0;
  border-color: var(--nexus-border);
}

.nexus-login-forgot {
  color: var(--nexus-primary) !important;
  font-weight: 600;
}

.nexus-login-forgot:hover {
  color: var(--nexus-primary-dark) !important;
  text-decoration: underline !important;
}

.nexus-login-actions .btn-primary {
  width: 100%;
  min-height: 3rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.nexus-login-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.nexus-login-remember {
  font-size: 0.9rem;
  color: var(--nexus-muted);
}

.nexus-login-remember .form-check-input {
  margin-top: 0.2rem;
}

.nexus-login-footer {
  background: #ffffff !important;
  border-top: none !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
  text-align: center;
}

.nexus-login-register {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--nexus-primary) !important;
}

.nexus-login-register:hover {
  color: var(--nexus-primary-dark) !important;
}

.nexus-login-social-outer {
  background: #ffffff;
  border-top: none;
  padding: 1.25rem 1rem 2rem;
}

.nexus-login-social-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 0;
}

.nexus-login-social-wrap .sub-heading,
.nexus-login-social-wrap .sub-heading-borderless {
  text-align: center;
  margin-top: 1.5rem;
}

.nexus-login-social-wrap .social-signin-btns {
  justify-content: center;
}

/* —— Client registration: 33% / 66% split, square logo frame —— */
.nexus-register-body.nexus-login-body,
.nexus-register-body #main-body {
  background: #f1f5f9 !important;
}

.nexus-register-body #main-body.nexus-login-main-section > .container-fluid {
  min-height: auto;
}

.nexus-register-body #main-body.nexus-login-main-section > .container-fluid > .row {
  align-items: stretch;
}

.nexus-register-body #main-body .primary-content {
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
}

.nexus-register-page.nexus-login-page {
  /* Override .nexus-login-page flex/center — was breaking full-width grid + logo scale */
  display: block;
  align-items: unset;
  justify-content: unset;
  flex: none;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 3vw, 2rem) 2.5rem;
  box-sizing: border-box;
}

/* Row 1 col 2 = social sign-up; row 2: aside | form — tops of aside & form align */
.nexus-register-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-rows: auto auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  width: 100%;
}

.nexus-register-linked-outer {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.nexus-register-form-outer {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

@media (max-width: 991px) {
  .nexus-register-layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .nexus-register-aside {
    grid-column: 1;
    grid-row: auto;
  }

  .nexus-register-linked-outer {
    grid-column: 1;
    grid-row: auto;
  }

  .nexus-register-form-outer {
    grid-column: 1;
    grid-row: auto;
  }

  .nexus-register-aside {
    position: static;
  }
}

.nexus-register-aside {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 1rem;
  align-self: start;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: #ffffff;
  border: 1px solid var(--nexus-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.nexus-register-logo-square {
  width: min(100%, 200px);
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.nexus-register-logo-square-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.nexus-register-logo-square-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.nexus-register-aside-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nexus-muted);
  text-align: center;
}

.nexus-register-aside-title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--nexus-text);
  text-align: center;
}

.nexus-register-aside-lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
  text-align: center;
}

.nexus-register-aside-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
  text-align: left;
}

.nexus-register-aside-list li {
  margin-bottom: 0.65rem;
}

.nexus-register-aside-list li:last-child {
  margin-bottom: 0;
}

.nexus-register-aside-actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.nexus-register-aside-badge {
  display: flex;
  justify-content: center;
  text-align: center;
}

.nexus-register-login-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--nexus-border);
  border-radius: 12px;
}

.nexus-register-login-prompt--aside {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.nexus-register-login-prompt--aside .nexus-register-login-prompt-text {
  margin-right: 0;
  text-align: center;
}

.nexus-register-login-prompt--aside .btn {
  width: 100%;
}

.nexus-register-linked-outer .sub-heading {
  margin-top: 0;
}

.nexus-register-login-prompt-text {
  font-size: 0.9rem;
  color: var(--nexus-muted);
  margin-right: auto;
}

.nexus-register-forgot-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nexus-primary) !important;
}

.nexus-register-forgot-link:hover {
  color: var(--nexus-primary-dark) !important;
  text-decoration: underline !important;
}

.nexus-register-field-microtitle {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #64748b;
}

.nexus-register-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nexus-text);
}

.nexus-register-section-card.nexus-login-card .card-body {
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
}

.nexus-register-form .prepend-icon .field,
.nexus-register-form .prepend-icon .form-control {
  border-radius: 12px;
}

.nexus-register-section-card .progress {
  border-radius: 999px;
  overflow: hidden;
  height: 0.5rem;
}

.nexus-register-actions {
  margin-top: 1.5rem;
}

.nexus-register-actions .btn-primary {
  min-height: 3rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.nexus-register-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}
