.caredge-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9998;
}

.caredge-account-creation-modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  width: 95%;
  max-width: 1100px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  overflow: hidden;
  margin: 0 auto;
  padding: 32px;
  height: 100%;
  max-height: 784px;
}

.caredge-logo-close-btn-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 0px 16px;
  flex-shrink: 0;
}

.caredge-logo-close-btn-section img {
  object-fit: contain;
  width: 107px;
  height: 24px;
}

.caredge-logo-close-btn-section button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #eaeaeb;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  font-size: 16px;
  display: flex;
  box-shadow: 0 4px 19.3px #0000000d;
}

.caredge-logo-close-btn-section button svg {
  color: #4a495c;
}

.caredge-account-creation-modal-sections {
  display: flex;
  flex: 1;
  height: calc(100% - 64px);
  width: 100%;
  overflow: hidden;
}

.caredge-account-creation-modal-left-section {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 32px;
  padding: 64px 64px 48px;
  background-color: #fff;
  overflow-y: auto;
  scrollbar-width: thin;
  box-sizing: border-box;
}

.caredge-account-creation-modal-right-section {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 40px 48px 24px 48px;
  background-color: #fbfbfc;
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.caredge-account-creation-modal-left-section,
.caredge-account-creation-modal-right-section {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.caredge-account-creation-modal-left-section::-webkit-scrollbar,
.caredge-account-creation-modal-right-section::-webkit-scrollbar {
  display: none;
}

.caredge-account-creation-modal-left-header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.caredge-account-creation-modal-left-header-wrapper h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #000;
  padding: 0;
}

.caredge-account-creation-modal-left-header-wrapper p {
  color: #75747d;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.caredge-account-creation-modal-features-list-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.caredge-account-creation-modal-features {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.caredge-account-creation-modal-features svg {
  color: #4a495c;
  font-size: 18px;
}

.caredge-account-creation-modal-features p {
  color: #4a495c;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.caredge-account-creation-modal-user-inputs-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.caredge-account-creation-modal-footer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  margin-top: auto;
}

.caredge-account-creation-modal-footer-section p {
  color: #75747d;
  font-family: Inter, sans-serif;
  font-size: 12px;
  line-height: 20px;
}

.caredge-account-creation-modal-footer-section p a {
  color: #75747d;
  text-decoration: underline;
}

.caredge-account-creation-modal-footer-section p #signup-modal-footer-btn,
.caredge-link {
  color: #0169ff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.caredge-account-creation-modal-right-header-wapper h2,
.caredge-success-stories-section h3 {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 0;
}

.caredge-success-stories-section,
.caredge-account-creation-modal-right-header-wapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.caredge-account-creation-modal-right-header-wapper img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.caredge-success-storie-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}

.caredge-success-storie-card p {
  color: #4a495c;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 22px;
}

.caredge-success-storie-card h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #292929;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 0;
}

.caredge-success-storie-badge {
  background-color: #e71b00;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-creation-modal-continue-btn {
  display: flex;
  height: 48px;
  padding: 12px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 12px;
  background: #0169ff;
  color: #fff;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  cursor: pointer;
  border: none;
}

.account-creation-modal-continue-btn:hover {
  background-color: #00429e;
}

#continue-with-google-btn {
  display: flex;
  height: 48px;
  padding: 12px 36px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  border-radius: 12px;
  border: 1px solid #0169ff;
  background: #fff;
  color: var(--Secondary-Neutral-80-Base, #4a495c);
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
  cursor: pointer;
}

.account-modal-form-fields-section {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

#sign-up-form,
#sign-in-form {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-direction: column;
}

.account-modal-form-field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.account-modal-form-field-wrapper label {
  font-family: inherit;
  line-height: 1.375;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  color: rgb(0, 0, 0);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0px;
  -webkit-font-smoothing: auto;
}

.account-modal-form-field-wrapper input {
  color: #131316;
  border: 1px solid #eaeaeb;
  border-radius: 0.5rem;
  height: 2.75rem;
  padding: 0.5rem 1rem;
  width: 100%;
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05),
    0px 0px 1px 0px rgba(0, 0, 0, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.account-creation-modal-seperator {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  width: 100%;
  color: #afafb4;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

.account-creation-modal-seperator span {
  border: 1px solid #eaeaeb;
  width: 100%;
}

.sign-in-error-message,
.sign-up-error-message {
  box-sizing: border-box;
  margin: 0.375rem 0px 0px;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: normal;
  font-weight: 400;
  line-height: 1.38462;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-align: left;
  visibility: visible;
}

.password-field-wrapper {
  position: relative;
  width: 100%;
}

.password-field-wrapper input {
  padding-right: 45px;
}

.password-toggle-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #75747d;
  font-size: 13px;
  transition: color 0.2s ease;
  z-index: 10;
  padding: 4px;
}

.password-toggle-icon:hover {
  color: #0169ff;
}

.sign-in-error-message,
.sign-up-error-message {
  box-sizing: border-box;
  margin: 0.375rem 0px 0px;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: normal;
  font-weight: 400;
  line-height: 1.38462;
  color: #ef4444;
  display: none;
  align-items: center;
  gap: 0.25rem;
  text-align: left;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sign-in-error-message i,
.sign-up-error-message i {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

@media (max-width: 1104px) {
  .caredge-account-creation-modal-container {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 994px) {
  .caredge-account-creation-modal-container {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    padding: 0;
    border-radius: 0;
    padding: 32px;
    top: 50%;
  }

  /* Stack sections vertically */
  .caredge-account-creation-modal-sections {
    flex-direction: column;
    height: auto;
    overflow-y: visible;
  }

  .caredge-account-creation-modal-left-section {
    width: 100%;
    flex: none;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #eaeaeb;
    overflow: visible;
  }

  .caredge-account-creation-modal-right-section {
    width: 100%;
    flex: none;
    padding: 1.5rem;
    margin-top: 1.5rem;
    overflow: visible;
  }

  .caredge-account-creation-modal-left-section::-webkit-scrollbar,
  .caredge-account-creation-modal-right-section::-webkit-scrollbar {
    display: none;
  }

  .caredge-account-creation-modal-left-header-wrapper h1 {
    font-size: 28px;
  }
}

@media (max-width: 481px) {
  .caredge-account-creation-modal-left-section {
    width: 100%;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .caredge-account-creation-modal-right-section {
    width: 100%;
    height: auto;
    padding: 1.5rem;
    border-radius: 0;
    overflow: visible;
  }

  .caredge-account-creation-modal-container {
    padding: 0px;
  }
  .account-modal-form-fields-section {
    flex-direction: column;
  }

  .caredge-account-creation-modal-left-header-wrapper h1 {
    font-size: 24px;
    letter-spacing: -0.5px;
  }

  .caredge-logo-close-btn-section {
    padding-top: 32px;
  }
}

@supports (-webkit-touch-callout: none) {
  .caredge-account-creation-modal-container {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .caredge-logo-close-btn-section {
    padding-top: calc(env(safe-area-inset-top) + 16px) !important;
  }

  .no-scroll {
    position: fixed;
    overflow: hidden !important;
    width: 100%;
    height: 100%;
    inset: 0;
    touch-action: none;
  }

  .caredge-account-creation-modal-left-section,
  .caredge-account-creation-modal-right-section {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html,
  body {
    overscroll-behavior: none !important;
  }
}
