:root {
  --mb-primary: #087d71;
  --mb-primary-dark: #075851;
  --mb-secondary: #123f68;
  --mb-accent: #20c997;
  --mb-bg: #edfafa;
  --mb-surface: #ffffff;
  --mb-border: #cee8e5;
  --mb-text: #173b39;
  --mb-muted: #687d7b;
  --mb-danger: #bd2929;
  --mb-success: #087b50;
  --mb-shadow: 0 20px 55px rgba(7, 88, 81, 0.14);
}

* {
  box-sizing: border-box;
}

body.registration-page {
  min-height: 100vh;
  margin: 0;
  padding: 16px;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--mb-text);
  background:
    radial-gradient(circle at 5% 10%, rgba(32, 201, 151, 0.18), transparent 28%),
    radial-gradient(circle at 95% 90%, rgba(18, 63, 104, 0.15), transparent 30%),
    linear-gradient(135deg, #e9faf7, #f7fbff);
}

.registration-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 18px;
  margin: 0 auto;
}

/* Left product showcase */

.product-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(145deg, #086e65, #123f68);
  border-radius: 26px;
  box-shadow: var(--mb-shadow);
}

.product-showcase::before,
.product-showcase::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.product-showcase::before {
  top: -110px;
  right: -80px;
  width: 270px;
  height: 270px;
  background: rgba(32, 201, 151, 0.18);
  animation: mbOrb 7s ease-in-out infinite;
}

.product-showcase::after {
  bottom: -140px;
  left: -90px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.06);
  animation: mbOrb 8s ease-in-out infinite reverse;
}

.showcase-content {
  position: relative;
  z-index: 2;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #e9fff9;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
}

.showcase-title {
  max-width: 600px;
  margin: 0;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.03;
  color: #ffffff;
}

.showcase-description {
  max-width: 620px;
  margin: 14px 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.software-preview {
  position: relative;
  overflow: hidden;
  padding: 13px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: mbFloat 5s ease-in-out infinite;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 11px;
  border-bottom: 1px solid #e5efee;
}

.preview-brand {
  font-size: 13px;
  font-weight: 800;
  color: var(--mb-primary-dark);
}

.preview-dots {
  display: flex;
  gap: 5px;
}

.preview-dots span {
  width: 8px;
  height: 8px;
  background: #c8d8d6;
  border-radius: 50%;
}

.preview-body {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding-top: 10px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 8px;
  background: #eff8f7;
  border-radius: 11px;
}

.preview-sidebar span {
  height: 8px;
  background: #cfe6e2;
  border-radius: 8px;
}

.preview-sidebar span:first-child {
  width: 80%;
  background: var(--mb-primary);
}

.preview-main {
  display: grid;
  gap: 9px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.preview-stat {
  min-height: 54px;
  padding: 8px;
  background: #f7fbfa;
  border: 1px solid #e2eeec;
  border-radius: 10px;
}

.preview-stat span,
.preview-stat strong {
  display: block;
}

.preview-stat span {
  font-size: 9px;
  color: var(--mb-muted);
}

.preview-stat strong {
  margin-top: 6px;
  font-size: 12px;
  color: var(--mb-primary-dark);
}

.preview-chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  min-height: 105px;
  padding: 15px 18px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 23px,
      #e8f1f0 24px
    ),
    #fbfdfd;
  border: 1px solid #e2eeec;
  border-radius: 11px;
}

.preview-chart span {
  flex: 1;
  min-width: 15px;
  background: linear-gradient(to top, var(--mb-primary), var(--mb-accent));
  border-radius: 7px 7px 2px 2px;
  animation: mbBar 1.3s ease both;
}

.preview-chart span:nth-child(1) { height: 34%; }
.preview-chart span:nth-child(2) { height: 58%; animation-delay: 0.1s; }
.preview-chart span:nth-child(3) { height: 46%; animation-delay: 0.2s; }
.preview-chart span:nth-child(4) { height: 76%; animation-delay: 0.3s; }
.preview-chart span:nth-child(5) { height: 89%; animation-delay: 0.4s; }
.preview-chart span:nth-child(6) { height: 66%; animation-delay: 0.5s; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.feature-chip {
  padding: 8px 5px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: #ecfff9;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.floating-feature {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  padding: 8px 10px;
  color: var(--mb-text);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
  animation: mbFeature 4s ease-in-out infinite;
}

.floating-feature strong,
.floating-feature small {
  display: block;
}

.floating-feature strong {
  font-size: 11px;
  color: var(--mb-primary-dark);
}

.floating-feature small {
  margin-top: 2px;
  font-size: 9px;
  color: var(--mb-muted);
}

.feature-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  background: #dff7f2;
  border-radius: 8px;
}

.feature-pos {
  top: 49%;
  right: 13px;
}

.feature-expiry {
  bottom: 18px;
  left: 13px;
  animation-delay: 0.5s;
}

.feature-fbr {
  right: 18px;
  bottom: 50px;
  animation-delay: 1s;
}

/* Right registration form */

.registration-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--mb-border);
  border-radius: 26px;
  box-shadow: var(--mb-shadow);
}

.registration-card h1 {
  margin: 0;
  font-size: 34px;
  color: var(--mb-primary-dark);
}

.registration-intro {
  margin: 7px 0 15px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mb-muted);
}

.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.form-group {
  margin-bottom: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #315653;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  color: var(--mb-text);
  background: #fbfefe;
  border: 1px solid var(--mb-border);
  border-radius: 9px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--mb-primary);
  box-shadow: 0 0 0 3px rgba(8, 125, 113, 0.11);
}

.trial-heading {
  margin: 1px 0 7px;
  font-size: 11px;
  font-weight: 700;
  color: #315653;
}

.trial-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trial-option {
  position: relative;
  cursor: pointer;
}

.trial-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trial-card {
  display: block;
  min-height: 86px;
  padding: 10px;
  background: #f8fcfb;
  border: 1px solid var(--mb-border);
  border-radius: 11px;
  transition: 0.2s ease;
}

.trial-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--mb-primary-dark);
}

.trial-card small {
  display: block;
  font-size: 9px;
  line-height: 1.35;
  color: var(--mb-muted);
}

.trial-option input:checked + .trial-card {
  background: #dff7f2;
  border-color: var(--mb-primary);
  box-shadow: 0 0 0 3px rgba(8, 125, 113, 0.11);
  transform: translateY(-2px);
}

.terms-row {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 9px 0;
  font-size: 9px;
  line-height: 1.4;
  color: var(--mb-muted);
}

.terms-row input {
  margin-top: 1px;
  accent-color: var(--mb-primary);
}

#registerButton {
  width: 100%;
  min-height: 41px;
  padding: 9px 14px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--mb-primary), var(--mb-secondary));
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 23px rgba(8, 125, 113, 0.24);
}

#registerButton:hover {
  transform: translateY(-1px);
}

#registerButton:disabled {
  cursor: wait;
  opacity: 0.65;
}

#registerMessage {
  min-height: 15px;
  margin: 7px 0 0;
  font-size: 10px;
  font-weight: 700;
}

#registerMessage.success {
  padding: 8px 10px;
  color: var(--mb-success);
  background: #dcf6e8;
  border-radius: 8px;
}

#registerMessage.error {
  padding: 8px 10px;
  color: var(--mb-danger);
  background: #ffe8e8;
  border-radius: 8px;
}

.form-footer {
  margin: 8px 0 0;
  font-size: 10px;
  text-align: center;
  color: var(--mb-muted);
}

.form-footer a {
  color: var(--mb-primary);
  font-weight: 700;
  text-decoration: none;
}

/* Animations */

@keyframes mbFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes mbFeature {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes mbOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-14px, 15px) scale(1.06);
  }
}

@keyframes mbBar {
  from {
    height: 0;
  }
}

/* Responsive */

@media (max-width: 1000px) {
  .registration-shell {
    grid-template-columns: 1fr;
  }

  .product-showcase {
    min-height: 560px;
  }
}

@media (max-width: 650px) {
  body.registration-page {
    padding: 9px;
  }

  .product-showcase,
  .registration-card {
    padding: 18px;
    border-radius: 19px;
  }

  .registration-grid,
  .trial-options,
  .preview-stats,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .floating-feature {
    position: static;
    width: 100%;
    margin-top: 7px;
  }

  .showcase-title {
    font-size: 35px;
  }
}