main {
  display: flex;
  /* header height is 86px */
  min-height: calc(100vh - 86px);
  flex-direction: column;
  align-items: center;
}

.Form {
    margin: 24px auto;
}

.FormField {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.FormField__input:-webkit-autofill ~ .FormField__label,
.FormField__input:focus ~ .FormField__label,
.FormField__input:not(:placeholder-shown) ~ .FormField__label {
    top: 0;
    font-size: 13px;
}


.FormField__label {
    display: inline-block;
    max-width: 80%;
    margin: 0;
    padding: 0 4px;
    position: absolute;
    top: 28px;
    left: 16px;
    transform: translateY(-50%);
    font-size: 17px;
    line-height: 22px;
    font-weight: 500;
    color: #78747A;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    transition: top 0.2s, font-size 0.2s;
    z-index: 10;
}

.FormField__inputWrapper {
    position: relative;
    display: flex;
}

.FormField__input {
    box-sizing: border-box;
    width: 100%;
    padding: 15px 20px;
    color: #000;
    font-size: 17px;
    line-height: 22px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.12);
    outline: none;
    flex: 1 1 auto;
    font-weight: 500;
    font-family: inherit;
    transition: border-color 0.2s;
}

.FormField:not(.--invalid) .FormField__input:hover,
.FormField:not(.--invalid) .FormField__input:focus,
.FormField:not(.--invalid) .FormField__input:focus-within {
    border-color: #78747A;
}

.FormField__input::placeholder {
    font-weight: 500;
    color: transparent;
}

.FormField__input[name="password"],
.FormField__input[name="password-confirm"] {
  padding-right: 56px;
}

.FormField__input[name="password"]::placeholder,
.FormField__input[name="password-confirm"]::placeholder {
    letter-spacing: 3px;
}

.FormField__clearField {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 27px;
    right: 19px;
    border: none;
    background: #78747A;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    padding: 0;
    opacity: 0.64;
    transition: opacity 0.1s ease-in-out;
}

.FormField__clearField:hover {
    opacity: 1;
}

.FormField__clearField.--hide {
    opacity: 0;
    cursor: default;
    pointer-events: none;
}

.FormField__togglePassword {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: none;
    border: 0;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 19px;
    box-sizing: content-box;
    cursor: pointer;
}

.FormField__togglePassword svg {
    opacity: 0.64;
    fill: #78747A;
    transition: color 0.2s;
}

.FormField__togglePassword:hover svg {
    opacity: 1;
}

.FormField__input ~ .FormField__togglePassword {
    display: none;
}

.FormField__input[type="password"] ~ .FormField__togglePassword.--hide {
  display: block;
}

.FormField__input[type="text"] ~ .FormField__togglePassword.--show {
  display: block;
}

.FormField__validation_wrapper {
    padding-left: 12px;
    margin: 8px 0 0;
    color: #78747A;
    font-size: 13px;
    line-height: 16px;
    font-weight: 400;
}

.FormField__validation_item {
    margin-top: 4px;
}

.FormField.--invalid .FormField__validation_item,
.FormField__validation_item.--error {
    color: #C7141A;
}

.FormField.--invalid .FormField__validation_item.--success,
.FormField__validation_item.--success {
    color: #2E8200;
}

.FormField__error {
    display: none;
    margin: 4px 20px 0;
    min-height: 16px;
    color: #C7141A;
    font-size: 13px;
    line-height: 16px;
    font-weight: 400;
}

.FormField__error.js-error {
    display: none;
}

.FormField.--invalid .FormField__error {
    display: block;
}

.FormField.--invalid .FormField__input {
    border-color: #C7141A;
}

.FormField.--invalid .FormField__label {
    color: #C7141A;
}

.FormAgreement {
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    color: #78747A;
    margin-top: 16px;
}

.FormAgreement a {
    color: #78747A;
}

.FormField__forgotPassword {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    margin: 12px 20px 0;
}

.Form__goBack {
    border: 0;
    outline: none;
    cursor: pointer;
    background: none;
    padding: 0;
    margin-bottom: 16px;
}

.Form__goBack svg {
    height: 24px;
    width: 24px;
    stroke: #000;
}

.Form .Checkbox {
    margin-top: 4px;
}

.Checkbox__label {
    font-size: 13px;
    line-height: 16px;
    cursor: pointer;
    min-height: 24px;
    padding: 1px 0 0 36px;
    position: relative;
    touch-action: manipulation;
    outline: none;
    color: #78747A;
    display: inline-flex;
    align-items: center;
}

.Checkbox__label a {
    color: #78747A;
}

.Checkbox input {
    display: none;
}

.Checkbox__label:before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 0;
    top: 0;
    background: url('../img/checkbox.svg');
    opacity: 0.5;
}

.Checkbox:hover .Checkbox__label {
    color: #49454D;
}

.Checkbox:hover .Checkbox__label a {
    color: #49454D;
}

.Checkbox:hover .Checkbox__label:before {
    opacity: 0.7;
}

.Checkbox input:checked + .Checkbox__label {
    color: #201926;
}

.Checkbox input:checked + .Checkbox__label a {
    color: #201926;
}

.Checkbox input:checked + .Checkbox__label:before {
    background: url('../img/checkbox_selected.svg');
    opacity: 1;
}

.Checkbox .FormField__error {
    margin-left: 0;
    margin-right: 0;
}
