body.auth-wrapper {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(45, 116, 255, .15) 0, transparent 28%),
    radial-gradient(circle at right center, rgba(17, 185, 129, .13) 0, transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #edf3fb 55%, #eaf0f8 100%);
  color: #10243f;
}

body.auth-focus-only .auth-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.auth-focus-only .auth-panel {
  display: none;
}

body.auth-focus-only .auth-card {
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .auth-shell > .auth-panel {
    display: none;
  }
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .85fr);
  gap: 1rem;
  align-items: stretch;
  min-width: 0;
}

.auth-shell > * {
  min-width: 0;
}

.auth-panel,
.auth-card {
  border-radius: 24px;
  border: 1px solid rgba(174, 194, 227, .72);
  box-shadow: 0 24px 58px rgba(16, 39, 82, .12);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

.auth-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(10, 30, 70, .98), rgba(18, 73, 174, .95) 56%, rgba(19, 163, 122, .88));
  color: #fff;
  padding: 1.5rem;
}

.auth-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.24) 0, rgba(255,255,255,0) 70%);
}

.auth-kicker {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .32rem .7rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: .8rem 0 .55rem 0;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 800;
  max-width: 520px;
}

.auth-panel p {
  max-width: 540px;
  font-size: 1rem;
  opacity: .94;
  margin: 0;
}

.auth-point-list,
.auth-summary-list {
  margin: 1rem 0 0 1rem;
  padding: 0;
}

.auth-point-list li,
.auth-summary-list li {
  margin-bottom: .55rem;
  line-height: 1.45;
}

.auth-summary-box {
  margin-top: 1.15rem;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 1rem;
}

.auth-summary-box h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 .6rem 0;
}

.auth-card {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.auth-card .card-body {
  padding: 1.4rem 1.4rem 1.5rem 1.4rem;
  min-width: 0;
}

.auth-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .8rem;
  flex-wrap: wrap;
  padding-bottom: .85rem;
  border-bottom: 1px solid #e6eef8;
}

.auth-top-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  align-items: center;
}

.auth-chip-btn,
.auth-back-home {
  border-radius: 999px;
  padding: .5rem .9rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-back-home {
  color: #16335f;
  background: #eef5ff;
  border: 1px solid #d2e3fb;
}

.auth-brandline {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #4f6f9e;
  font-weight: 700;
}

.auth-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #132a4d;
  margin: .2rem 0 .35rem 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-muted {
  color: #627892;
  font-size: .95rem;
}

.auth-card .form-label {
  display: block;
  font-weight: 700;
  color: #1d355b;
}

.auth-card .form-control,
.auth-card .form-select {
  display: block;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid #ccdaf0;
  box-shadow: inset 0 1px 2px rgba(16,24,40,.03);
}

.auth-card .form-control:focus {
  border-color: #3f78df;
  box-shadow: 0 0 0 .22rem rgba(63,120,223,.14);
}

.auth-card .btn-primary {
  min-height: 50px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(31,102,221,.18);
}

@media (max-width: 575.98px) {
  .auth-card .card-body {
    padding: 1.05rem 1rem 1.2rem 1rem;
  }

  .auth-topbar {
    align-items: stretch;
    gap: 0.75rem;
  }

  .auth-top-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: .5rem;
    padding-bottom: .2rem;
    scrollbar-width: none;
  }

  .auth-top-actions::-webkit-scrollbar {
    display: none;
  }

  .auth-top-actions .auth-chip-btn,
  .auth-top-actions .auth-back-home {
    justify-content: center;
    text-align: center;
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 38px;
    padding: .42rem .78rem;
    font-size: .78rem;
  }

  .auth-topbar .btn-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-topbar .btn-group .btn {
    width: 100%;
  }

  .auth-links-box {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
  }

  .auth-link-row {
    line-height: 1.55;
  }
}

.auth-links-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2eaf7;
}

.auth-inline-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: -.2rem 0 1rem 0;
}

.auth-inline-highlight span,
.auth-inline-highlight strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: .38rem .78rem;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(16,39,64,.06);
}

.auth-inline-highlight span {
  background: #f4f9fa;
  border: 1px solid rgba(31, 138, 138, .18);
  color: #176a6a;
}

.auth-inline-highlight strong {
  background: linear-gradient(135deg, #153047 0%, #1f8a8a 100%);
  color: #ffffff;
  border: 0;
}

.auth-link-row {
  color: #5f7494;
  margin-bottom: .5rem;
}

.auth-link-row a {
  font-weight: 700;
  text-decoration: none;
}

body.customer-shell {
  background:
    radial-gradient(circle at top left, rgba(31, 138, 138, .1) 0, transparent 28%),
    radial-gradient(circle at right 10%, rgba(21, 48, 71, .08) 0, transparent 22%),
    linear-gradient(180deg, #f7fafc 0%, #eef4f8 44%, #f5f8fb 100%);
  min-height: 100vh;
  color: #153047;
}

.app-topnav {
  backdrop-filter: blur(14px);
  background: rgba(15, 34, 51, .9) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topnav-inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topnav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin-right: .65rem;
}

.topnav-menu-btn {
  border-radius: 999px;
  padding: .52rem .9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  box-shadow: 0 10px 20px rgba(11,28,66,.12);
}

.register-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 34, 51, .98), rgba(21, 48, 71, .96) 56%, rgba(31, 138, 138, .88));
  color: #fff;
  border-radius: 24px;
  padding: 1.45rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 26px 58px rgba(16, 39, 64, .18);
}

.register-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.24) 0, rgba(255,255,255,0) 68%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .32rem .72rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.register-hero h1 {
  margin: .7rem 0 0 0;
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 800;
  max-width: 760px;
}

.register-hero p {
  margin: .55rem 0 0 0;
  font-size: 1rem;
  opacity: .92;
  max-width: 720px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.hero-point {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.09);
  border-radius: 16px;
  padding: .85rem .9rem;
  min-height: 86px;
}

.hero-point strong {
  display: block;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.hero-point span {
  font-size: .9rem;
  opacity: .92;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.hero-actions .btn {
  border-radius: 999px;
  padding: .7rem 1rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(11,28,66,.12);
}

@media (max-width: 991.98px) {
  .topnav-inner {
    justify-content: center;
    align-items: stretch;
    flex-direction: column;
    gap: .65rem;
  }

  .topnav-actions {
    margin-right: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
  }

  .topnav-menu-btn {
    width: 100%;
    min-height: 38px;
    padding: .46rem .7rem;
    font-size: .86rem;
    box-shadow: 0 8px 16px rgba(11,28,66,.1);
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 1.15rem;
  }

  .auth-panel h1 {
    font-size: 1.55rem;
  }

  .register-hero {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .register-hero h1 {
    font-size: 1.45rem;
  }
}

@media (max-width: 767.98px) {
  .auth-topbar {
    align-items: stretch;
  }

  .auth-topbar .btn-group {
    width: 100%;
  }

  .auth-topbar .btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .auth-topbar .btn-group .btn {
    width: 100%;
  }

  .auth-card .btn-primary {
    min-height: 48px;
  }

  .topnav-actions {
    grid-template-columns: 1fr 1fr;
  }

  .progress-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .progress-rail::-webkit-scrollbar {
    display: none;
  }

  .progress-pill {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .wizard-nav {
    flex-direction: column;
  }

  .wizard-nav .btn {
    width: 100%;
    min-width: 0;
  }

  .register-section,
  .summary-rail,
  .payment-panel,
  .review-card {
    padding: 0.85rem;
  }

  .register-help-card .row.g-3 > [class*="col-"] {
    width: 100%;
  }

  .auth-inline-highlight span,
  .auth-inline-highlight strong {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .topnav-actions {
    grid-template-columns: 1fr;
  }

  .register-hero {
    margin-bottom: 0.9rem;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .plan-grid,
  .payment-method-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

/* Clean professional auth polish */
body.auth-wrapper {
  background:
    radial-gradient(circle at 10% 10%, rgba(31, 138, 138, .1) 0, transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(21, 48, 71, .08) 0, transparent 24%),
    linear-gradient(180deg, #f6f9fb 0%, #edf3f7 55%, #f5f8fb 100%);
  color: #153047;
}

.auth-panel,
.auth-card {
  border: 1px solid rgba(21, 48, 71, .1);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,253,.94));
  box-shadow: 0 26px 54px rgba(16, 39, 64, .12);
}

.auth-panel {
  background: linear-gradient(145deg, rgba(15, 34, 51, .98), rgba(21, 48, 71, .94) 56%, rgba(31, 138, 138, .84));
}

.auth-kicker,
.auth-brandline {
  letter-spacing: .1em;
}

.auth-heading,
.auth-panel h1,
.auth-summary-box h2 {
  font-family: "Poppins", "Segoe UI", sans-serif;
}

.auth-heading {
  color: #153047;
}

.auth-muted,
.auth-link-row,
.auth-panel p {
  color: #60758a;
}

.auth-summary-box {
  border-color: rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
}

.auth-back-home,
.auth-chip-btn {
  background: rgba(255,255,255,.06);
  border-color: rgba(21, 48, 71, .14);
  color: #eff5fa;
}

.auth-back-home {
  background: #153047;
  border: 1px solid #153047;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(21, 48, 71, .16);
}

.auth-chip-btn {
  background: #eef7f7;
  border: 1px solid rgba(31, 138, 138, .24);
  color: #176a6a;
  box-shadow: none;
}

.auth-chip-accent {
  background: linear-gradient(135deg, #153047 0%, #1f8a8a 100%);
  border-color: transparent;
  color: #ffffff;
}

.auth-back-home:hover,
.auth-back-home:focus {
  background: #0f2537;
  border-color: #0f2537;
  color: #ffffff;
}

.auth-chip-btn:hover,
.auth-chip-btn:focus {
  background: #def2f2;
  border-color: rgba(31, 138, 138, .34);
  color: #124f4f;
}

.auth-chip-accent:hover,
.auth-chip-accent:focus {
  background: linear-gradient(135deg, #0f2537 0%, #176f6f 100%);
  color: #ffffff;
}

.auth-card .form-label {
  color: #153047;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .79rem;
}

.auth-card .form-control {
  background: #ffffff;
  border-color: rgba(21, 48, 71, .12);
  color: #153047;
}

.auth-card .form-control:focus {
  border-color: #1f8a8a;
  box-shadow: 0 0 0 .22rem rgba(31,138,138,.14);
}

.auth-card .btn-primary {
  background: linear-gradient(135deg, #153047 0%, #1f8a8a 100%);
  border: 0;
  color: #ffffff;
}

.auth-link-row a,
.auth-forgot-link {
  color: #1f8a8a;
}
