@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

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

body {
  background-color: #030203;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('/images/signUpDecor.471d1f12.svg');
  background-size: cover;
  background-position: center;
}

.container {
  max-width: 862px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  padding: 20px 0;
}

.header__logo {
  text-align: center;
}

.header__logo svg {
  width: 180px;
  height: auto;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.mail__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mail__picture {
  max-width: 160px;
  margin-bottom: 40px;
}

.mail__picture svg {
  width: 100%;
  height: auto;
}

.mail__title {
  font-weight: 700;
  font-size: 35px;
  line-height: 120%;
  margin-bottom: 37px;
  text-align: center;
  color: white;
}

.mail__form {
  max-width: 368px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.mail__input {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  margin-bottom: 20px;
}

.mail__input input {
  border-radius: 10px;
  background: transparent;
  border: 1px solid #161616;
  padding: 16.5px 24px 16.5px 60px;
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 25px;
  color: #fff;
  flex: 1 1;
  outline: none;
  width: 100%;
}

.mail__input input:focus {
  border: 1px solid #161616;
}

.mail__input-icon {
  margin-right: 12px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #242424 !important;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.mail__btn button {
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-color: #161616;
  background: #161616;
  flex: 1 1;
  font-size: 20px;
  white-space: nowrap;
  width: 100%;
  border-radius: 10px;
  font-weight: 600;
  color: #70737d;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mail__btn button.active {
  background: #2dff73;
  color: black;
}

.mail__btn button.active:hover {
  border: 2px solid #2dff73;
  color: #fff;
  background-color: transparent;
}

.footer {
  margin-top: auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer__steps {
  margin-top: 40px;
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
}

.footer__steps-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__steps-item_picture {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3c6;
  border-radius: 8px;
  border: 1px solid #242424;
  flex-shrink: 0;
}

.footer__steps-item_picture svg {
  width: 32px;
  height: 32px;
}

.footer__steps-item_title {
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  line-height: 130%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #3c6;
  margin-bottom: 4px;
}

.footer__steps-item_desc {
  text-align: left;
  width: 100%;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  color: white;
}

.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.3s ease-in forwards;
  opacity: 0;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile styles */
@media (max-width: 768px) {
  body {
    background-image: unset;
    padding: 20px;
  }

  .header {
    padding: 0;
  }

  .header__logo svg {
    width: 150px;
  }

  .main {
    padding: 30px 0;
  }

  .mail__picture {
    margin-bottom: 30px;
    max-width: 120px;
  }

  .mail__title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .mail__input input {
    font-size: 16px;
    padding: 14px 20px 14px 50px;
  }

  .mail__input-icon {
    left: 20px;
  }

  .mail__btn button {
    font-size: 18px;
    padding: 14px 20px;
  }

  .footer {
    padding: 30px 0;
    position: static;
  }

  .footer__steps {
    flex-direction: column;
    gap: 20px;
  }

  .footer__steps-item_picture {
    width: 48px;
    height: 48px;
  }

  .footer__steps-item_picture svg {
    width: 24px;
    height: 24px;
  }

  .footer__steps-item_desc {
    font-size: 14px;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 90%;
  }

  .mail__picture {
    max-width: 140px;
  }

  .footer__steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__steps-item {
    flex: 0 0 calc(50% - 20px);
    margin-bottom: 20px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .mail__title {
    font-size: 24px;
  }

  .mail__input input {
    font-size: 14px;
    padding: 12px 16px 12px 45px;
  }

  .mail__input-icon {
    left: 16px;
  }

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

  .footer__steps-item {
    gap: 15px;
  }

  .footer__steps-item_picture {
    width: 40px;
    height: 40px;
  }

  .footer__steps-item_picture svg {
    width: 20px;
    height: 20px;
  }

  .footer__steps-item_desc {
    font-size: 13px;
  }
}