html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  display: block;
  padding: 0;
  margin: 0;
}


.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.container {
  margin: 0 auto;
}

.main {
  position: relative;
  max-width: 428px;
  min-height: 926px;
  background-color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;


}

.oval-image {
  position: absolute;
  top: -99px;

}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.car-image {
  display: flex;
  width: 250px;
  height: 250px;
}

.car-image img {

  width: 100%;
  height: auto;

}

/* стили для формы регистрации */
input[type="text"] {
  font-family: inherit;
  /* 1 */
  font-size: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
}

/* установим отступ 1rem от нижнего края элемента */
.registration-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 340px;
  height: 555px;
  background-color: white;
  border-radius: 10px;
  border-color: #999696 solid;
  box-shadow: 5px 5px 5px #bdbdbd;
  padding: 25px;
}

.text-field {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 18px;

}

/* стили для label */
.text-field__label {
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: 0.05rem;
  color: #C4C4C4;
  font-size: 21px;
}

.text-field__input {
  display: block;
  width: 100%;
  height: calc(2.25rem + 7px);
  padding: 0.375rem 0.75rem;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #bdbdbd;
  border-radius: 2.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}



.text-field__input:focus {
  color: #212529;
  background-color: #fff;
  border-color: #bdbdbd;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.25);
}

.text-field__input:disabled,
.text-field__input[readonly] {
  background-color: #f5f5f5;
  opacity: 1;
}

.text-field__icon {
  position: relative;
}

.text-field__icon::before {
  content: '';
  color: #bdbdbd;
  position: absolute;
  display: flex;
  align-items: center;
  top: 0;
  bottom: 0;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
}

.text-field__icon .text-field__input {
  padding-left: 2.5rem;
}

/* email значок */

.text-field__icon_email::before {
  width: 1.5rem;

  background-image: url("../images/site_images/carbon_email.png ");
  background-repeat: no-repeat;
  background-position: center;
}

/* иконка лупы */

.text-field__icon_password::before {
  width: 1.5rem;

  background-image: url("../images/site_images/ri_lock-password-fill.png ");
  background-repeat: no-repeat;
  background-position: center;
}

.text-field__icon_name::before {
  width: 1.5rem;

  background-image: url("../images/site_images/ic_baseline-airline-seat-recline-normal_form.png ");
  background-repeat: no-repeat;
  background-position: center;
}

#submit {
  margin: 15px 0px;
  border-radius: 30px;
  color: white;
  background-color: #F9B401;
  letter-spacing: 0.05rem;
}

.first-par,
.second-par {
  text-align: center;
  color: #bdbdbd;
  font-size: 18px;
  margin-bottom: 15px;
}

.join-telegram {
  display: flex;
  border-radius: 30px;
  color: white;
  background-color: #3A559F;
  justify-content: center;
  letter-spacing: 0.05rem;
  text-align: center;
  padding: 11px;
  margin-top: 7px;
  gap: 15px;
}

.tg-image {
  display: flex;
  width: 16px;
  height: 16px;
  justify-content: center;
  align-items: center;
}

.tg-image img {
  width: 100%;
  height: auto;
}


.last-par {
  text-align: center;
  padding: 25px;
  color: #bdbdbd;
}

.last-par span {
  color: #F9B401;
}

.error {
  color: red;
  font-size: 14px;
}

#paragraph-to-hide {
  display: block;
  /* По умолчанию параграф отображается */
}

#email:focus+#paragraph-to-hide {
  display: none;
  /* При активации текстового поля скрываем параграф */
}

#password:focus+#paragraph-to-hide {
  display: none;
  /* При активации текстового поля скрываем параграф */
}

#password-repeat:focus+#paragraph-to-hide {
  display: none;
  /* При активации текстового поля скрываем параграф */
}