.signup-page,
.signup-right,
.signup-box {
  max-width: 100%;
}

.signup-page {
  display: flex;
  min-height: 100vh;
  background: #ffffff;
  color: #4b5563;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.signup-left {
  position: fixed;
  top: 8px;
  left: 8px;
  width: calc(50vw);
  height: calc(100vh - 16px);
  box-sizing: border-box;
  background-image:
    radial-gradient(circle at 99.8% -0.4%, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.205192) 67.79%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 30.8% 85.7%, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.205192) 67.79%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(180, 208, 255, 0) 0%, rgba(180, 208, 255, 0.25) 27.88%, #b4d0ff 75.48%),
    linear-gradient(180deg, rgba(180, 208, 255, 0) 0%, rgba(180, 208, 255, 0.15) 27.88%, rgba(180, 208, 255, 0.6) 78.85%, rgba(180, 208, 255, 0.6) 100%),
    linear-gradient(180deg, #b4d0ff 0%, #b4d0ff 100%);
  background-position: center, center, center, center, center;
  background-size: cover, cover, cover, cover, cover;
  background-repeat: no-repeat;
  background-color: #b4d0ff;
  border: 8px solid #ffffff;
  border-radius: 22px;
  overflow: hidden;
}

body.auth-visual-cached .signup-left {
  background-image:
    url("../assets/images/left pic.png"),
    radial-gradient(circle at 99.8% -0.4%, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.205192) 67.79%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 30.8% 85.7%, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.205192) 67.79%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(180, 208, 255, 0) 0%, rgba(180, 208, 255, 0.25) 27.88%, #b4d0ff 75.48%),
    linear-gradient(180deg, rgba(180, 208, 255, 0) 0%, rgba(180, 208, 255, 0.15) 27.88%, rgba(180, 208, 255, 0.6) 78.85%, rgba(180, 208, 255, 0.6) 100%),
    linear-gradient(180deg, #b4d0ff 0%, #b4d0ff 100%);
  background-position: center, center, center, center, center, center;
  background-size: cover, cover, cover, cover, cover, cover;
}

.auth-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 520ms ease,
    transform 700ms ease;
  pointer-events: none;
  user-select: none;
}

body.auth-visual-ready .auth-visual-image {
  opacity: 1;
  transform: scale(1);
}

body.auth-visual-cached .auth-visual-image {
  transition: none;
}

.signup-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 0 49px;
  background: #fff;
  margin-left: calc(50vw);
  min-height: calc(100vh - 16px);
  overflow-y: auto;
  overflow-x: hidden;
}

.signup-box {
  width: 100%;
  max-width: 432px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 340ms ease,
    transform 340ms ease;
  will-change: opacity, transform;
}

body.auth-content-ready .signup-box {
  opacity: 1;
  transform: scale(1);
}

body.auth-content-leaving .signup-box {
  opacity: 0;
  transform: scale(0.985);
}

.remember {
  position: relative;
  font-size: 14px;
  line-height: 20px;
  margin: 4px 0 -1px;
  display: inline-flex;
  align-items: center;
}

.remember input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.signup-consent {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start !important;
  gap: 0 8px;
  white-space: normal !important;
  line-height: 20px;
}

.signup-consent__box {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border: 0.91px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.signup-consent__box .check-icon {
  position: static;
  left: auto;
  top: auto;
  width: 14px;
  height: 10px;
  opacity: 0;
  transform: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.signup-consent input[type="checkbox"]:checked + .signup-consent__box {
  border-color: #3d9eff;
  background: #3d9eff;
}

.signup-consent input[type="checkbox"]:checked + .signup-consent__box .check-icon {
  opacity: 1;
  transform: none;
}

.signup-consent input[type="checkbox"]:focus-visible + .signup-consent__box {
  border-color: #3d9eff;
}

.signup-consent--error .signup-consent__box {
  border-color: #ed1717;
}

.signup-consent__text {
  flex: 1 1 calc(100% - 28px);
  min-width: 0;
  color: #6b7280;
  white-space: normal;
}

.signup-consent__text a {
  display: inline !important;
  white-space: normal !important;
}

.signup-consent .error-message {
  flex: 0 0 100%;
  padding-left: 28px;
}

.forgot {
  font-size: 14px;
  font-weight: 500;
}

.signup-box a {
  color: #2582DF;
  text-decoration: none;
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.signup-box a:hover,
.signup-box a:focus-visible {
  color: #1476d4;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(61, 158, 255, 0.58);
  outline: none;
}

.signup-title {
  text-align: center;
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
}

.auth-invite-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d8eaff;
  border-radius: 8px;
  background: #f4f9ff;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
}

.auth-invite-notice[hidden] {
  display: none;
}

.auth-invite-notice__title {
  margin-bottom: 4px;
  color: #2582df;
  font-weight: 600;
}

.auth-invite-notice__text {
  margin: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  line-height: 20px;
  color: #6b7280;
}

.signup-options {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.signup-options label,
.signup-options a {
  display: flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
}

.btn--primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #3d9eff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 17px;
}

.btn--primary:disabled {
  cursor: wait;
  opacity: 0.96;
}

.btn__text {
  transition: opacity 160ms ease;
}

.btn__loader {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.96);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

.btn--primary.is-loading .btn__text {
  opacity: 0;
}

.btn--primary.is-loading .btn__loader {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.btn__loader--dots-only {
  gap: 3px;
}

.btn__loader--dots-only .btn__dot {
  opacity: 0.3;
  line-height: 1;
  font-size: 18px;
  font-weight: 700;
}

.btn--primary.is-loading .btn__loader--dots-only .btn__dot {
  animation: typing-dot 0.9s ease-in-out 120ms infinite;
}

.btn--primary.is-loading .btn__loader--dots-only .btn__dot:nth-child(2) {
  animation-delay: 270ms;
}

.btn--primary.is-loading .btn__loader--dots-only .btn__dot:nth-child(3) {
  animation-delay: 420ms;
}

@keyframes typing-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.signup-footer {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin: 0 0;
}

.auth-invite-mode .signup-footer,
.signup-footer.is-hidden {
  display: none;
}

.login-link {
  margin: 0 0 0 8px;
  font-weight: 500;
}

input::placeholder {
  color: #ced4da;
  font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="phone"] {
  padding: 14px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 20px;
  background-color: #f7f7f8;
  box-sizing: border-box;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

input:focus,
input:focus-visible {
  outline: none;
  border-color: #3d9eff;
  background-color: #fff;
  box-shadow: none;
}

input.error {
  outline: none;
  border: 1px solid #ed1717;
}

input.readonly,
input[readonly] {
  color: #4b5563;
  background-color: #eef4fb;
  cursor: default;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 36px;
}

.toggle-password {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.toggle-password img {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toggle-password:hover,
.toggle-password:focus-visible {
  background-color: transparent;
}

.toggle-password:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.toggle-password:active {
  transform: scale(0.94);
}

.toggle-password:active img {
  opacity: 0.82;
  transform: scale(0.96);
}

input.error {
  border: 1px solid #ed1717;
}

.error-message {
  color: #ed1717;
  font-size: 12px;
  line-height: 14px;
  height: 14px;
  margin: -2px 0 -10px;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateY(-3px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.error-message:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

.password-rules {
  list-style: none;
  margin: -3px 0 9px;
  padding: 0;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 8.5px;
}

.password-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  transform: scale(1);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.password-rules li.valid .rule-icon {
  opacity: 1;
}

.password-rules li.invalid .rule-icon {
  opacity: 1;
}

.rule-icon.is-changing {
  opacity: 0;
  transform: scale(0.82);
}

@media (max-width: 1100px) and (min-width: 1001px) {
  .signup-left {
    width: 42vw;
  }

  .signup-right {
    margin-left: 42vw;
    padding: 36px 24px;
  }

  .signup-box {
    max-width: 420px;
  }
}

@media (max-width: 1000px) {
  .signup-page {
    display: flex;
    min-height: 100dvh;
    padding: 0;
    background: #ffffff;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .signup-left {
    display: none;
  }

  .signup-right {
    width: 100%;
    flex: 1 1 auto;
    min-height: auto;
    margin-left: 0;
    padding: 36px 20px;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .signup-box {
    max-width: 480px;
    margin: 0 auto;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .signup-right {
    padding: 24px 14px 28px;
  }

  .signup-box {
    gap: 16px;
  }

  .signup-title {
    font-size: 22px;
    line-height: 30px;
  }

  form {
    gap: 14px;
  }

  form label {
    gap: 6px;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  input[type="phone"] {
    width: 100%;
    min-height: 48px;
    padding: 13px 12px;
    font-size: 16px;
    line-height: 22px;
  }

  input::placeholder {
    font-size: 14px;
  }

  .password-rules {
    margin: -2px 0 4px;
    gap: 7px;
  }

  .password-rules li {
    align-items: flex-start;
    line-height: 16px;
  }

  .rule-icon {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .signup-options label,
  .signup-options a {
    white-space: normal;
  }

  .remember {
    align-items: flex-start;
    line-height: 18px;
  }

  .btn--primary {
    min-height: 50px;
    margin-top: 10px;
    padding: 13px 14px;
  }

  .signup-footer {
    line-height: 20px;
  }
}

@media (max-width: 768px) {
  input:not([type="button"]):not([type="checkbox"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="radio"]):not([type="range"]):not([type="reset"]):not([type="submit"]),
  textarea,
  select {
    font-size: 16px !important;
  }
}
