/* ================================================================
   Join da.care — pixel-perfect from Figma (node 219:6105)
   ================================================================ */

/* ── Reset page body ── */
.join-page {
  min-height: 100vh;
  background: #ffffff;
  overflow-x: hidden;
  /* Kill global body radial-gradient */
  background-image: none !important;
}

/* ── Navbar: logo only ── */
.join-navbar .container {
  grid-template-columns: auto !important;
  justify-content: flex-start;
}

.join-navbar .navbar__nav,
.join-navbar .navbar__cta,
.join-navbar .nav-toggle {
  display: none !important;
}

/* ── Background layer ──
   Figma: 4285px outer container, 3030px rings image, rotated -135deg, centered
   ── */
.join-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.join-bg__rings {
  position: absolute;
  width: 4285px;
  height: 4285px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 0.59px));
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-bg__rings-img {
  display: block;
  width: 3030px;
  height: 3030px;
  flex-shrink: 0;
  transform: rotate(-135deg);
  transform-origin: center center;
  opacity: 0.5;
  /* The rings SVG uses --stroke-0 for ring color — match Figma's light gray rings */
  --stroke-0: #c8c8c8;
}

/* Radial gradient overlay — whites out center, fades to near-white at edges */
.join-bg__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 56% 64% at 50% 50%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 255, 255, 0.88) 100%
  );
}

/* ── Main layout ── */
.join-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Figma: form centered slightly below viewport center (+ 39.5px) */
  padding-top: 140px;
  padding-bottom: 80px;
  padding-inline: 24px;
}

/* ── Card (form wrapper) ──
   Figma: flex-col gap-[60px] items-center
   ── */
.join-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

/* ── Heading ── */
.join-heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.join-title {
  /* Figma: Inter Semi Bold 44px, color #2f3326 */
  font-family: "Inter", sans-serif !important;
  font-size: 44px !important;
  font-weight: 600 !important;
  line-height: normal !important;
  letter-spacing: normal !important;
  color: #2f3326 !important;
  margin: 0 !important;
  white-space: nowrap;
}

/* Name-step variant: 36px Inter Medium */
.join-title--name {
  font-size: 36px !important;
  font-weight: 500 !important;
}

/* Two-column input row (First name / Last name) */
.join-form__row {
  width: 100%;
  display: flex;
  gap: 24px;
}

.join-form__row .join-form__field {
  flex: 1 0 0;
  min-width: 0;
}

.join-subtitle {
  /* Figma: Inter Regular 16px, opacity 0.8, tracking -0.16px */
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.16px;
  color: #2f3326;
  opacity: 0.8;
  margin: 0;
  white-space: nowrap;
}

/* ── Form section ──
   Figma: flex-col gap-[24px] items-end
   ── */
.join-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
}

.join-form__field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.join-form__label {
  /* Figma: Inter Medium 14px, tracking 0.14px */
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14px;
  color: #2f3326;
  line-height: 1;
}

.join-form__input {
  /* Figma: bg #f5f5f5, rounded-[53px], p-[16px], Inter Medium 16px */
  width: 100%;
  background: #f5f5f5;
  border: none;
  border-radius: 53px;
  padding: 16px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #2f3326;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.join-form__input::placeholder {
  color: #8c8d89;
  font-weight: 500;
}

.join-form__input:focus {
  box-shadow: 0 0 0 2px rgba(160, 223, 255, 0.5);
}

.join-form__input--invalid,
.join-form__input--invalid:focus {
  box-shadow: 0 0 0 2px rgba(196, 60, 60, 0.35);
}

.join-form__error {
  margin: 8px 4px 0;
  min-height: 20px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #b13b3b;
}

/* ── Sign Up button ──
   Figma: "Liquid Glass - Regular - Large"
   h-[52px], rounded-[30px], w-full, bg-white
   Gradient border: mint → sky (135deg)
   ── */
.join-btn-signup {
  width: 100%;
  height: 52px;
  border-radius: 30px;
  padding: 10px 30px;
  background:
    linear-gradient(180deg, rgb(250, 251, 253) 0%, rgb(255, 255, 255) 100%) padding-box,
    linear-gradient(190deg, rgba(160, 223, 255, 0.91) 0%, #e5f4c7 44.37%, #ffa681 101.87%) border-box;
  border: 2px solid transparent;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2f3326;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
  line-height: normal;
}

.join-btn-signup:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.join-btn-signup:active {
  transform: scale(0.98);
}

.join-btn-signup:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Social section wrapper */
.join-social {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Or divider */
.join-divider {
  /* Figma: flex gap-[16px] py-[10px] items-center justify-center */
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
  width: 100%;
}

.join-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(47, 51, 38, 0.15);
  display: block;
  min-width: 1px;
}

.join-divider__text {
  /* Figma: Inter Regular 16px, tracking 0.16px */
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2f3326;
  letter-spacing: 0.16px;
  line-height: 1;
  flex-shrink: 0;
}

/* Social buttons stack */
.join-social-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual social button ──
   Figma: bg #f6f8fb, rounded-[12px],
   flex justify-center gap-[16px] items-center, py-[12px] px-[9px]
   icon 28px (Google), 24px (Microsoft), 27px (Apple)
   text: Inter Medium 16px, tracking 0.16px, w-[159px]
   ── */
.join-social-btn {
  width: 100%;
  background: #f6f8fb;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 9px;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 44px;
}

.join-social-btn:hover {
  background: #edf0f4;
}

.join-social-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.join-social-btn__icon img {
  display: block;
  object-fit: contain;
}

/* Fixed 159px width keeps all three rows visually aligned */
.join-social-btn__text {
  /* Figma: Inter Medium 16px, tracking 0.16px, w-[159px] */
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #2f3326;
  letter-spacing: 0.16px;
  line-height: 1;
  width: 159px;
  text-align: left;
  white-space: nowrap;
}

/* ── "Don't you have an account?" ── */
.join-existing {
  /* Figma: Inter Regular 18px, color #2f3326, text-center, leading-[1.6] */
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #2f3326;
  text-align: center;
  margin: 0;
}

.join-existing__link {
  font-weight: 600;
  color: #2f3326;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
  text-decoration-style: solid;
}

.join-existing__link:hover {
  opacity: 0.7;
}

/* ── Legal ── */
.join-legal {
  /* Figma: Inter Regular 14px, opacity 0.8, tracking -0.14px, w-[236px] */
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.14px;
  color: #2f3326;
  opacity: 0.8;
  text-align: center;
  max-width: 236px;
  margin: 0;
}

.join-legal__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(47, 51, 38, 0.4);
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
  text-decoration-style: solid;
}

.join-legal__link:hover {
  text-decoration-color: rgba(47, 51, 38, 0.75);
}

/* ── Info note (DOB page) ── */
.join-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 378px;
}

.join-info__icon {
  flex-shrink: 0;
  display: block;
  opacity: 0.8;
}

.join-info__text {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.14px;
  color: #2f3326;
  opacity: 0.8;
  margin: 0;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .join-title {
    font-size: 36px !important;
    white-space: normal;
  }

  .join-subtitle {
    white-space: normal;
    text-align: center;
  }

  .join-card {
    gap: 40px;
  }

  .join-bg__rings {
    width: 2000px;
    height: 2000px;
  }

  .join-bg__rings-img {
    width: 1400px;
    height: 1400px;
  }
}
