@import url('https://fonts.googleapis.com/css?family=Nunito:400,600,700,800&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
  color: #222;
}

::-webkit-input-placeholder{
  color: #eeeeee;
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  font-style: italic;
}

:-ms-input-placeholder{
  color: #eeeeee;
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  font-style: italic;
}

::placeholder {
  color: #eeeeee;
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  font-style: italic;
}

h1 {
  font-size: 32px;
  line-height: 36px;
  font-weight: 800;
  margin: 0 0 12px;
}

header {
  padding: 24px;
}

section {
  padding: 0 44px;
}

p {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bg-light {
  background-color: #eeeeee;
}

.bg-dark {
  background-color: #222222;
}

.center {
  text-align: center;
}

.box--error {
  background-color: #e25f4b;
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  padding: 12px 38px;
  text-align: left;
  position: relative;
}

.box--error::after {
  content: '';
  background-image: url('../img/img-warning.png');
  background-size: 16px 16px;
  position: absolute;
  top: 12px;
  left: 12px;
  width: 16px;
  height: 16px;
  display: block;
}

.box--success {
  background-color: #1ac78a;
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  padding: 12px 38px;
  text-align: left;
  position: relative;
}

.box--success::after {
  content: '';
  background-image: url('../img/img-check.png');
  background-size: 12px 12px;
  position: absolute;
  top: 14px;
  left: 14px;
  width: 12px;
  height: 12px;
  display: block;
}

label {
  display: block;
  text-align: left;
  font-size: 12px;
  line-height: 12px;
  font-weight: 700;
  color: #7c7c7c;
}

input {
  border: 0;
  margin-top: 8px;
  font-size: 16px;
  line-height: 16px;
  color: #222222;
}

input:focus{
  outline: none;
}

input[type="submit"] {
  background-color: #222222;
  border-radius: 40px;
  color: #ffffff;
  font-size: 16px;
  line-height: 16px;
  font-weight: 800;
  padding: 16px 32px;
  float: right;
}

input[type="text"],
input[type="password"] {
  width: 100%;
}

.item {
  background-color: #ffffff;
  border-radius: 8px;
  -webkit-box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.06);
  -moz-box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.06);
  box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.06);
  padding: 20px;
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.item.error {
  border: 1px solid #e25f4b;
}


.js-error,
.js-success {
  display: none;
}

.gray {
  color: #bbbbbb;
}

.light {
  color: #ffffff;
}

.main--change-password {
  max-width: 320px;
  margin: 0 auto;
  margin-top: -60px;
  padding: 0 20px;
}

.main--mail-confirmation {
  max-width: 320px;
  margin: 0 auto;
}

.header__title {
  padding: 44px 0 80px;
  max-width: 320px;
  margin: 0 auto;
}

.hero {
  padding: 8px 0 32px;
}

.disabled {
  opacity: 0.3;
}

@media (min-width: 600px) {
  h1 {
    font-size: 40px;
    line-height: 44px;
    margin: 0 0 20px;
  }  

  section {
    padding: 0 55px;
  }
  
  .header__title {
    max-width: 360px;
  }

  .header__title > p {
    max-width: 320px;
    margin: 0 auto;
  }
  

  .img--mail-confirmation {
    width: 308px;
    height: 185px;
  }

  .main--change-password, 
  .main--mail-confirmation {
    max-width: 350px;
  }
}
