.form-info {
  margin-bottom: 16px;
}

.form-input {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #C8D4DA;
  border-radius: 4px;

  color: #36363A;
  font-size: 14px;
  line-height: 20px;
  padding: 9px;
  outline: none;
  margin: 0;
}

.form-input:focus,
.form-password_group:focus-within {
  box-shadow: 0 0 0 2px #aabff8; 
}

.form-password_group:focus-within .form-input:focus {
  box-shadow: none;
}

.form-input_error {
  color: #ED1C1C;
  font-size: 12px;
  line-height: 16px;
  padding: 8px 0;
  margin-bottom: -24px;
  order: 10;
}

.form-input_error:empty {
  margin: 0;
  padding: 0;
  height: 0;
}

.form-label_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.form-label {
  font-size: 17px;
  line-height: 28px;
  color: #67686F;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.form-inline_group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  column-gap: 24px;
}

.form-options {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  margin-top: -8px;
}

.form-options_right {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.form-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-block;
  height: 18px;
  width: 18px;
  border: 1px solid #B5B5BA;
  border-radius: 2px;
  background-color: #FFFFFF;
  margin: 0 8px 0 0;
}

.form-checkbox:checked {
  background: #FFFFFF url('../img/check.svg') no-repeat 50%;
}

.form-checkbox:hover {
  border: 1px solid silver;
}

.form-checkbox_label {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.form-button  {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  border: none;
  border-radius: 4px;
  margin: 0;
  font: 500 14px / 20px Roboto, sans-serif;
  color: rgb(255, 255, 255);
  background-color: #d6006d;
  padding: 0 16px;
  height: 44px;
  text-align: center;
  transition: .15s linear;
}

.form-button:hover,
.form-button:focus {
  background-color: #a30053;
  border-color: #a30053;
}

.form-button:disabled {
  opacity: 0.5;
  background: #d6006d !important;
  cursor: not-allowed;
}

.form-social_button-google {
  background-color: #DD4B39;
}

.form-social_button-google::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("../img/google.svg");
  margin-right: 8px;
}

.form-social_button-google:hover {
  background-color: #ba2925;
}

.form-social_button-google:active,
.form-social_button-google:focus-visible {
  background-color: #9b221f;
}

.form-social_button-linkedin {
  background-color: #0077B5;
}

.form-social_button-linkedin::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("../img/linkedin.svg");
  margin-right: 8px;
}

.form-social_button-linkedin:hover {
  background-color: #0a5895;
}

.form-social_button-linkedin:active,
.form-social_button-linkedin:focus-visible {
  background-color: #08497c;
}

.form-social_buttons_list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: -16px;
  margin-left: -16px;
}

.form-social_buttons_list_item {
  min-width: 45%;
  flex: 1;
  order: 1;
  padding-top: 16px;
  padding-left: 16px;
}

.form-social_buttons_list_item-google {
  order: -2;
}

.form-social_buttons_list_item-linkedin {
  order: -1;
}

.form-social_buttons_list_item-saml {
  order: 0;
}

.form-social_buttons_or {
  display: flex;
  text-align: center;
  text-transform: uppercase;
  margin: 24px 0 16px;
}

.form-social_buttons_or span {
  padding: 0 16px;
}

.form-social_buttons_or::before,
.form-social_buttons_or::after {
  content: '';
  position: relative;
  top: -10px;
  flex: 1;
  border-bottom: 1px solid #ddd;
}

@keyframes fadeIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.alert {
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
  font-size: 14px;
  box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  line-height: 20px;
  padding: 16px;
  margin-top: 2vh;
  animation: .3s fadeIn linear;
  color: white;
}

.alert-error {
  background: #C61010;
}

.alert-success {
  background: #419544;
}

.alert-warning {
  background: #4D81F0;
}

.alert-info {
  background: blue;
}

.form-password_group {
  display: flex;
  flex-direction: row;
  border-radius: 4px;
  background: white;
  border: 1px solid #C8D4DA;
}

.form-password {
  border: 0;
  flex: 1;
}

.form-show_password {
  position: relative;
  width: 39px;
  margin: 0;
  padding: 0;
  display: inline-block;
  border: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  background: url('../img/form-icon_eye.svg') no-repeat 52% 50%;
  cursor: pointer;
  outline: none;
  z-index: 1;
}

.form-show_password:focus::before,
.form-show_password:hover::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  margin: 5px;
  z-index: 0;
}

.form-show_password--checked {
  background-image: url('../img/form-icon_eye_active.svg');
}

.form-input_error:not(:empty) + .form-input,
.form-input_error:not(:empty) + .form-password_group,
.form-input--error {
  border-color: #ED1C1C;
}