/* Community panel */
.auth__snippet {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(32px, 5vw, 72px);
  background: #0b4043;
  color: #ffffff;
}

/* Decorative background shapes */
.auth__snippet::before,
.auth__snippet::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: #105457;
  border-radius: 50%;
}

.auth__snippet::before {
  width: 580px;
  height: 380px;
  top: -285px;
  right: -220px;
  transform: rotate(30deg);
}

.auth__snippet::after {
  width: 680px;
  height: 420px;
  bottom: -290px;
  right: -240px;
  transform: rotate(-25deg);
}

.xchange-welcome,
.xchange-welcome * {
  box-sizing: border-box;
}

.xchange-welcome {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  font-family: inherit;
  color: #ffffff;
}

/* Heading and introductory copy */
.xchange-welcome__header {
  text-align: center;
}

.xchange-welcome__header h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.xchange-welcome__header h2 > .xchange-welcome__heading-line {
  display: block;
  color: #ffffff;
}

.xchange-welcome__heading-line > span {
  color: #38efc3;
}

.xchange-welcome__header p {
  max-width: 410px;
  margin: 0 auto;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.7;
}

/* Request-to-join button */
.xchange-welcome .xchange-welcome__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  padding: 13px 18px;
  border: 1px solid #38efc3;
  border-radius: 5px;
  background: transparent;
  color: #38efc3;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.xchange-welcome__button svg {
  flex-shrink: 0;
}

.xchange-welcome .xchange-welcome__button:hover {
  background: #38efc3;
  color: #0b4043;
  text-decoration: none;
}

.xchange-welcome .xchange-welcome__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

/* Testimonials: two columns */
.xchange-welcome__testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-top: 40px;
  text-align: left;
}

.xchange-welcome__testimonials h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.xchange-welcome__quote {
  position: relative;
  min-width: 0;
  margin: 0;
  padding-left: 26px;
}

.xchange-welcome__quote::before {
  content: "“";
  position: absolute;
  top: -9px;
  left: 0;
  color: #38efc3;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
}

.xchange-welcome__quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.xchange-welcome__quote blockquote p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
}

.xchange-welcome__quote figcaption {
  margin-top: 12px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.6;
}

.xchange-welcome__quote figcaption strong,
.xchange-welcome__quote figcaption span {
  display: block;
}

.xchange-welcome__quote figcaption strong {
  color: #38efc3;
  font-weight: 600;
}

/* Desktop: equal-width panels and a two-line heading */
@media (min-width: 1150px) {
  .auth__main--snippet {
    width: 50%;
    flex: 0 0 50%;
  }

  .auth__snippet {
    width: 50%;
    flex: 0 0 50%;
  }

  .xchange-welcome__heading-line {
    white-space: nowrap;
  }
}

/* Mobile: stack testimonials and allow heading wrapping */
@media (max-width: 600px) {
  .auth__snippet {
    padding: 36px 24px;
  }

  .xchange-welcome__testimonials {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .xchange-welcome__quote + .xchange-welcome__quote {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .xchange-welcome__quote + .xchange-welcome__quote::before {
    top: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xchange-welcome .xchange-welcome__button {
    transition: none;
  }
}

/* Wider, left-aligned testimonials */
.xchange-welcome__testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
}

.xchange-welcome__quote {
  width: 100%;
  padding-left: 28px;
}

.xchange-welcome__quote + .xchange-welcome__quote {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.xchange-welcome__quote + .xchange-welcome__quote::before {
  top: 15px;
}

@media (min-width: 1150px) {
  .xchange-welcome__testimonials {
    width: calc(100% + 80px);
    margin-left: -40px;
  }
}

@media (max-width: 1149px) {
  .xchange-welcome__testimonials {
    width: 100%;
    margin-left: 0;
  }
}