@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  margin: 20px;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.modal {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1330px;
  border: 1px solid #37feca;
  border-radius: 23.88px;
  padding-block: 51px;
}

.modal .logo {
  width: 437px;
  height: 437px;
  aspect-ratio: 1/1;
}

.modal .logo img {
  object-position: center;
  object-fit: cover;
  max-width: 100%;
}

.modal .string {
  background: #37feca;
  height: 49px;
  width: 100%;
  margin-top: 31px;
  padding-inline: -71px;
  display: flex;
  justify-content: center;
  align-items: center;
  & #tg-link {
    font-family: "Montserrat", serif;
    font-weight: 500;
    color: #222;
  }
}

button.close {
  position: absolute;
  top: 34.11px;
  right: 34.44px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  border: none;
  background: none;
}

form {
  max-width: 907.42px;
  padding: 0 72px;
  border-left: 2px solid #37feca;
  width: 50%;
}

form label {
  display: block;
  margin-bottom: 5px;
}

form input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: none;
  border-radius: 34.11px;
}

label#confirm {
  display: flex;
  gap: 14px;
  margin-bottom: 11.57px;
}

label#confirm input {
  width: 13.65px;
  font-weight: 700;
  font-size: 12.28px;
  line-height: 13.51px;
}

label#confirm span {
  width: 100%;
  font-size: 12.28px;
  line-height: 13.51px;
}

button.submit {
  width: 100%;
  padding: 10px;
  background-color: white;
  color: black;
  border: none;
  border-radius: 20.47px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.34px;
  text-align: center;
}

button.submit:hover {
  background-color: #37feca;
}

button.submit:active {
  background-color: #31eebb;
}

/* Медіа-запити для мобільної адаптивності */
@media screen and (max-width: 768px) {
  body {
    margin: 10px;
  }

  .modal {
    flex-direction: column;
    width: 90%;
    padding-block: 30px;
  }

  .modal .logo {
    width: 80%;
    height: auto;
    margin-bottom: 20px;
  }

  form {
    width: 100%;
    padding: 0 20px;
    border-left: none;
    margin-top: 20px;
  }

  form input {
    padding: 10px 14px;
  }

  button.submit {
    font-size: 16px;
    padding: 12px;
  }
}

@media screen and (max-width: 480px) {
  .modal .logo {
    width: 90%;
  }

  form {
    padding: 0 10px;
  }

  button.submit {
    font-size: 16px;
    padding: 14px;
  }
}
