/* styling logo sing up pages */
.logo {
  margin: 0 0 0 81px;
  position: relative;
  top: 37px;
  transform: translate(0, 0);
}

.logo-img {
  width: 100px;
  height: 121px;
  transition: width 0.8s ease-in-out, height 0.8s ease-in-out;
}

.sing_up_page .logo_signup_page {
  height: 80px;
  display: flex;
  justify-content: flex-start !important;
  align-items: center;
  position: relative;
  z-index: 5;
}

.info-password,
.info-name,
.info-email {
  display: block;
  width: 100%;
  min-height: 12px;
  font-size: 16px;
  line-height: 1.1;
  color: tomato;
  visibility: hidden;
  margin: 0;
  text-align: left;
  position: absolute;
  left: 0;
}

.info-confirm-password {
  display: block;
  width: 100%;
  min-height: 12px;
  font-size: 16px;
  line-height: 1.1;
  color: tomato;
  visibility: hidden;
  margin: 0;
  text-align: left;
  position: absolute;
  left: 0;
}

.disebles-singup-button {
  background-color: #2a3647;
  opacity: 0.5;
  cursor: not-allowed;
}

.accept-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #d32828 !important;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid #d32828;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.accept-tooltip.show {
  opacity: 1;
  visibility: visible;
}

.main-content {
  display: grid;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 380px);
  position: relative;
  padding-top: 8px;
}

.reg-notice {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translate(-50%, -100%);
  width: max-content;
  max-width: 90vw;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-weight: 600;
  font-size: 16px !important;
  line-height: 1.2;
  padding: 0 12px;
  box-sizing: border-box;
  z-index: 2;
}

.main-form {
  width: 598px;
  max-width: 100%;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.04);
  padding: 22px 0 38px;
  justify-content: flex-start;
}

.form-fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 16px;
  width: 422px;
  height: 286px;
  max-width: 100%;
}

.field-group {
  width: 422px;
  position: relative;
  padding-bottom: 14px;
  box-sizing: border-box;
  max-width: 100%;
}

.field-group input {
  width: 100%;
}

.field-group .input-icon {
  position: absolute;
  right: 10px;
  top: 12px;
  transform: none;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.field-group .input-icon.password-toggle {
  pointer-events: auto;
  cursor: pointer;
}

.form-header {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  margin-bottom: 32px;
}

.form-header img {
  width: 20px;
  height: 20px;
  margin: 0;
}

.back-link {
  position: absolute;
  left: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-header h1 {
  margin: 0;
  font-size: 61px;
  font-weight: 700;
  color: #000000;
  position: relative;
  width: 315px;
  height: 73px;
  line-height: 73px;
  text-align: center;
}

.form-header h1::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 150px;
  top: 100%;
  margin-top: 12px;
  background-color: #29abe2;
}

.main-form input {
  width: 422px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  font-size: 20px;
  padding: 0 48px 0 16px;
  line-height: 47px;
}

.main-form input::placeholder {
  color: #d1d1d1;
}

.form-footer {
  gap: 20px;
  margin-bottom: 0;
}

.form-check-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  color: #2a3647;
  position: relative;
}

.main-form .form-check-content input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid #2a3647;
  border-radius: 3px;
  background: #ffffff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  line-height: normal;
  background-image: none;
}

.main-form .form-check-content input[type="checkbox"]::after {
  content: "";
  width: 16px;
  height: 12px;
  background: url("../assets/icons/check-black.svg") no-repeat center / 16px
    12px;
  transform: scale(0);
  transition: transform 0.12s ease;
}

.main-form .form-check-content input[type="checkbox"]:checked::after {
  transform: scale(1);
}

.form-check-content a {
  text-decoration: none;
  color: #29abe2;
}

.form-check-content a:hover {
  color: #29abe2;
}

.form-check-content span {
  color: #2a3647;
}

.disebles-singup-button,
#singup-button {
  width: 126px;
  height: 55px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#singup-button:hover {
  background-color: #29abe2;
}

#singup-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#singup-button:disabled:hover {
  background-color: #2a3647;
}

.links:hover {
  color: #29abe2;
}

footer .links {
  color: rgba(42, 54, 71, 0.45);
  font-size: 16px;
}

.content-wrepper > footer {
  margin-top: 24px;
}

.button-text {
  display: inline-block;
  width: 78px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  font-size: 21px;
}

@media (max-width: 1023px) {
  .logo-img {
    width: 64px !important;
    height: 64px !important;
  }
}

@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body .content-wrepper main {
    height: auto;
    min-height: calc(100vh - 184px);
  }

  .main-form {
    width: min(92vw, 598px);
    min-height: unset;
    padding: 18px 0 24px;
  }

  .back-link {
    left: 20px;
  }
}

@media (max-width: 600px) {
  .logo {
    top: 21px;
    left: 38px;
    transform: none;
    margin: 0;
  }

  .logo-img {
    width: 64px;
    height: 78px;
  }

  .main-content {
    min-height: auto;
  }

  .main-form {
    width: 92vw;
    border-radius: 20px;
  }

  .form-header {
    height: auto;
    margin-bottom: 20px;
    padding-top: 8px;
  }

  .form-header h1 {
    font-size: 44px;
    width: auto;
    height: auto;
    line-height: 1.1;
  }

  .form-header h1::after {
    width: 110px;
  }

  .form-fields {
    width: 100%;
    height: auto;
    gap: 5px;
  }

  .field-group {
    width: 90%;
    padding-bottom: 0;
  }

  .main-form input {
    width: 100%;
  }

  .info-password,
  .info-confirm-password,
  .info-name,
  .info-email {
    position: static;
    margin-top: 4px;
    min-height: 12px;
    font-size: 16px;
  }

  .info-password,
  .info-confirm-password {
    visibility: hidden;
  }

  .form-check-content {
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 420px) {
 

  body .content-wrepper main {
    height: auto;
  }

  .content-wrepper {
    min-height: 100vh;
  }

  footer {
    margin-top: 100px;
  }

  .main-content {
    padding-top: 38px;
  }

  .main-form {
    margin-top: 4px;
  }

  .form-header h1 {
    font-size: 36px;
  }

  .form-header h1::after {
    width: 90px;
  }

  .back-link {
    left: 12px;
  }

  .reg-notice {
    font-size: 16px !important;
  }

  #singup-button {
    width: 120px;
    height: 48px;
  }
}

@media (max-width: 320px) and (max-height: 667px) {
  

  .main-form {
    width: 94vw;
    padding: 12px 0 18px;
  }

  .form-header {
    margin-bottom: 8px;
    padding-top: 4px;
  }

  .form-header h1 {
    font-size: 32px;
  }

  .form-header h1::after {
    width: 80px;
  }

  .form-fields {
    gap: 8px;
  }

  .field-group {
    width: 94%;
    padding-bottom: 0;
  }

  .button-text {
    font-size: 17px;
  }

  .form-check-content a {
    margin-top: 6px;
  }
}
