/* Основной контейнер формы */
.registration-section {
  background-color: #f1efe9;
  /* padding: 60px 0; */
}

.registration-wrapper {
  max-width: 796px;
  margin: 0 auto;
  padding: 0 20px;
}
.registration-start .registration-wrapper{
  max-width: 474px;
}
.registration-error .registration-wrapper{
  max-width: 796px;
}
.registration-successfully .registration-wrapper{
  max-width: 496px;
}
.registration-error .registration-wrapper p{
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: #333;
  text-align: center;
}
.registration-successfully .registration-wrapper p{
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: -0.05em;
  color: #333;
  text-align: center;
}
.registration-error .btn-back{
  width: 296px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  background: #e8e3d7;
  color: #c60e14;
  transition: all ease .3s;
}
.registration-error .btn-back:hover{
  background: #d4cdbb;
  transition: all ease .3s;
}
.registration-successfully .btn-back{
  width: 100%;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  background: #0099a5;
  color: #f1efe9;
}

.registration-error .btn-back:hover{
  background:#d4cdbb;;
  color:#c60e14;
}
.registration-successfully .btn-back:hover{
  background: #178a93;
  color:#f1efe9;
}
.registration-title {
  text-align: center;
  font-size: 54px;
  font-weight: 700;
  color: #C60E14;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-family: inherit;
}
.recovery-pass .registration-title{
  font-size: 28px;
  line-height: 110%;
}
.registration-successfully .registration-title{
  margin-top: 40px;
  font-size: 32px;
line-height: 100%;
}
.recovery-pass .registration-wrapper{
  max-width: 796px;
}
.recovery-pass #registration-form{
  max-width: 474px;
  margin-left: auto;
  margin-right: auto;
}
/* Tabs */
.registration-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: #d4cdbb;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  height: 54px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 500;
  font-style: Medium;
  line-height: 99%;
}

.tab-btn.active {
  background-color: #0099a5;
  color: #fff;
}

/* Форма */
.registration-form {
  width: 100%;
  padding: 0;
  background: transparent;
}

.form-field {
  position: relative;
  margin-bottom: 10px;
}

.form-field input {
  width: 100%;
  height: 68px;
  padding: 42px 18px 14px 18px;
  font-size: 16px;
  font-weight: 400;
  border: none;
  border-radius: 0;
  background-color: #ffffff;
  color: #000;
  font-family: inherit;
  box-sizing: border-box;
}
.form-field input::placeholder {
  font-weight: 500;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: #bdb49c;
}
.form-field input:focus{
  outline:1px solid #d4cdbb;
  border-radius:2px;
}
.form-field input:hover{
  outline: 1px solid #d4cdbb;
}
.form-field label{
  position: absolute;
  bottom: 12px;
  left: 20px;
  font-weight: 500;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: -0.05em;
  color: #bdb49c;
  transition: all ease .3s;
  }
  .form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field input:valid + label {
  transform: translateY(-30px);
  transition: all ease .3s;
}
/* Пара с двумя полями в ряд */
.form-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.form-field.half {
  flex: 1;
  position: relative;
}
.form-field .show-pass{
  cursor: pointer;
  position: absolute;
  top: calc(50% + 5px);
  transform: translateY(-50%);
  right: 18px;
}
.form-field .show-pass .hide{
  display: none;
}
/* Примечание */
.form-note {
  font-size: 12px;
  color: #BDB49C;
  background-color: #E8E3D7;
  padding: 8px 12px;
  margin-bottom: 20px;
  font-family: inherit;
  font-weight: 300;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: -5%;

}

/* Обёртка */
.custom-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.02em;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 20px;
}

/* Скрытый стандартный input */
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Кастомный квадрат */
.custom-checkbox .checkmark {
  width: 24px;
  height: 24px;
  background-color: #E8E3D7; /* фон */
  border: 1px solid #D4CDBB; /* рамка */
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

/* Галочка */
.custom-checkbox input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 4.94px;
  top: 5.51px;
  width: 13px;
  height: 7px;
  border: solid #0099A5;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  box-sizing: content-box;
}

/* Кнопка */
.form-submit {
  text-align: center;
}

.submit-btn {
  margin-top: 10px;
  display: flex;
  align-items:center;
  justify-content: center;
  width: 100%;
  height: 60px;
  background-color: #C60E14;
  border: none;
  color: #F1EFE9;
  font-weight: bold;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
  font-style: Medium;
  line-height: 100%;
  letter-spacing: -5%;
  text-align: center;
  text-transform: uppercase;

}

.submit-btn:hover {
  background-color: #981915;
  transition: all ease .3s;
}
.registration-start .submit-btn:nth-child(1){
  background: #0099a5;
  transition:all ease .3s;
}
.registration-start .submit-btn:nth-child(1):hover{
  background: #178a93;
  transition:all ease .3s;
}
.registration-start .submit-btn:nth-child(2){
 background: #e8e3d7;
 text-align: center;
  color: #c60e14;
  transition:all ease .3s;
}
.registration-start .submit-btn:nth-child(2):hover{
  background: #d4cdbb;
  transition:all ease .3s;
}
.registration-form__note{
  margin-top: 40px;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -0.05em;
  text-align: center;
  color: #333;
}
.registration-form__note a{
  font-weight: 500;
  color: #0099a5;
}
/* Ссылка */
.form-checkbox {
  
  padding-left: 36px;
  margin-bottom: 20px;
  position: relative;
}
.form-checkbox label{
  font-weight: 500;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: -0.02em;
  color: #333;
   font-family: Montserrat;
}
.form-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.form-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 25px;
  width: 25px;
  background-color:  #e8e3d7;;
  border: 1px solid #d4cdbb;
  border-radius: 3px;
  transition: 0.2s;
}
.form-checkbox .checkmark::after{
  content:"";
  top: 7px;
  left: 4px;
  position: absolute;
  display: none;
  width: 13px;
  height: 10px;
  background:url(../img/content/check-icon.png) no-repeat;
}
.form-checkbox input:checked ~ .checkmark::after{
display: block;
}
.form-checkbox a {
  color: #0099a5;
  text-decoration: none;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

/* Иконки-глазики */
.password-toggle {
  position: relative;
}

.password-toggle .toggle-icon {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.6;
}

.password-toggle .toggle-icon:hover {
  opacity: 1;
}

/* Адаптив */
@media (max-width: 767px) {
  .registration-wrapper {
	padding: 0 16px;
  }

  .registration-title {
	font-size: 28px;
  }

  .registration-tabs {
	/* flex-direction: column; */
	  gap: 5px;
    margin-bottom: 10px;
  }
  .tab-btn{
    padding: 0 20px;
    height: 44px;
    font-size: 12px;
    line-height: 99%;
  }
  .form-row {
	flex-direction: column;
	gap: 0;
  }

  .submit-btn {
	font-size: 14px;
  }
  .form-field input{
    padding: 32px 14px 12px 14px;
    height: 56px;
  }
  
  .form-note{
    margin-bottom: 12px;
  }
  .form-checkbox{
    margin-bottom: 12px;
  }
  .form-checkbox label{
    font-weight: 500;
    font-size: 12px;
    line-height: normal;
  }
  .submit-btn{
    height: 56px;
    font-size: 14px;
    line-height: 100%;
  }
  .recovery-pass .registration-title{
    font-size: 22px;
    line-height: 94%;
  }
  .registration-error .registration-wrapper p{
    font-size: 16px;
    line-height: 120%;
  }
  .registration-error .btn-back{
    width: 100%;
  }
  .registration-error .registration-title{
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 94%;
  }
  .registration-successfully .registration-title{
    font-size: 22px;
    line-height: 94%;
  }
  .registration-successfully .registration-wrapper p{
    font-size: 16px;
    line-height: 120%;
  }
   .form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field input:valid + label {
  transform: translateY(-20px);
  transition: all ease .3s;
}
}
