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

body {
  min-width: 100vw;
  min-height: 100vh;
  color: #000;
  font: 14px Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  box-shadow: inset 0 0 0 1000px #fff !important;
}

input {
  border: none;
  background-color: #fff;
  font: 14px Roboto, sans-serif;
  outline: none !important;
}

button {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  color: #ffff;
  background-color: #0648b8;
  border-radius: 2px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);
  text-align: center;
  text-transform: uppercase;
  font: 14px Roboto, sans-serif;
  font-weight: bold;
  cursor: pointer;
  outline: none;
}

.loader {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 2;
  pointer-events: none;
}

.loader_show {
  display: flex;
}

.loader__img {
  margin: auto;
  width: 48px;
  height: 48px;
}

.main {
  display: flex;
  flex-flow: row nowrap;
  height: 100vh;
}

.form {
  margin: auto;
  width: 450px;
}

.form__logo {
  display: block;
  max-height: 30px;
  margin: 0 auto;
}

.form__title {
  margin: 24px 0  32px;
  font-size: 24px;
  text-align: center;
}

.form__row {
  margin-bottom: 32px;
}

.form__row_submit {
  margin-top: 64px;
}

.field {
  position: relative;
  display: block;
  height: 32px;
  line-height: 32px;
}

.field__label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 0, 0, 0.6);
  transition: top 0.2s ease, font-size 0.2s ease;
  will-change: transform;
}

.field__line {
  position: absolute;
  width: 0;
  height: 2px;
  margin-top: -2px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background-color: #0648b8;
  transition: width 0.2s ease;
}

.field__error {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  color: #d50000;
  line-height: 1;
  font-size: 12px;
}

.field_eye {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.field__input {
  display: block;
  width: 100%;
  height: 100%;
  border-bottom: #d8d8d8 1px solid;
}

.field__input:focus + .field__label,
.field__input:valid + .field__label {
  top: -4px;
  font-size: 12px;
}

.field__input:-webkit-autofill + .field__label {
  top: -4px;
  font-size: 12px;
}

.field__input:focus ~ .field__line {
  width: 100%;
}

.field__input:focus + .field__label {
  color: #0648b8;
}

.field_error .field__line {
  background-color: #d50000;
}

.field_error .field__input {
  border-bottom-color: #d50000;
}

.field_error .field__label {
  color: #d50000 !important;
}

.field_error .field__error {
  display: block;
}
