.alb-content {
  flex-shrink: 0;
}

.alb-content__locale {
  position: absolute;
  z-index: 101;
  right: 50px;
  top: 20px;
}

.alb-login {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.flex-row-space-between {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.flex-row-end {
  display: flex;
  flex-direction: row;
  justify-content: end;
}

.card-pf {
  position: fixed;
  left: 67%;
  top: 0;
  width: 33%;
  max-width: none;
  height: 100%;
  margin: unset;
  border-color: #0066cc;
  border-color: var(--pf-global--primary-color--100);
}

.alb-login-card-pf {
  display: flex;
  flex-direction: column;
  right: 0;
  top: 0;
  height: 100vh;
  padding: 0 0;
  background-color: #ffffff;
  border-color: #0066cc;
  /* default - IE compatibility */
  border-color: var(--pf-global--primary-color--100);
}

.alb-login-pf-header {
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
  /* padding-top: 50px; */
  padding-left: 50px;
  padding-right: 50px;
}

.login-card-content {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  flex-direction: column;
  padding-left: 117px;
  padding-right: 117px;
  margin: 50px 0;
}

/* New  Login Title (Switcher) */

.title-switcher {
  display: grid;
  justify-content: center;
  grid-template-columns: 40% 60%;
  column-gap: 20px;
}

.title-switcher__title-auth {
  text-align: right;
}

.title-switcher__title-register {
  text-align: left;
}

.title-switcher__title-link {
  display: inline-grid;
  color: black;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
}

.title-switcher__title-link:hover, .title-switcher__title-link:focus {
  color: #283A97;
  text-decoration: none;
  outline: none;
}

.title-switcher__title-link:hover:after, .title-switcher__title-link:focus:after {
  content: '';
  width: 100%;
  height: 2px;
  background: #283A97;
}

.title-switcher__title-link--disabled {
  pointer-events: none;
  cursor: default;
}

.title-switcher__title-link--disabled:hover {
  pointer-events: none;
  cursor: default;
  color: black;
}

.title-switcher__title-link--selected {
  pointer-events: none;
  cursor: default;
  color: #283A97;
}

.title-switcher__title-link--selected:hover {
  pointer-events: none;
  cursor: default;
  color: #283A97;
}

.title-switcher__title-link--selected:after {
  content: '';
  width: 100%;
  height: 2px;
  background: #283A97;
}

.register-country-exist {
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 19px;
}

.login-title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.login-title {
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: bold;
  font-size: 18px;
  line-height: 18px;
  color: #283a97;
}

.login-subtitle {
  font-family: PT Sans Caption, serif;
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 33px;
  margin-bottom: 30px;
}

.login-links {
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 19px;
  color: #283a97;
}

.login-btn-container {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.private-text {
  margin-top: 20px;
}

.login-btn {
  display: flex;
  flex-direction: row;
  flex-grow: initial;
  justify-content: center;
  align-items: center;
  padding: 11px 17px;
  height: 56px;
  color: #ffffff;
  background: #283a97;
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 19px;
}

.login-btn:hover {
  color: white;
  text-decoration: none;
}

.login-btn-disabled {
  background: #c8cce1;
}

.legend-line {
  width: 100%;
  display: grid;
  align-items: center;
  justify-content: center;
  grid-template-columns: 32.5% 35% 32.5%;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  margin: 25px 0 25px 0;
}

.supp-time {
  display: flex;
  justify-content: center;
  color: #8B8FA4;
}

.legend-small-text {
  grid-template-columns: 40% 20% 40%!important;
}

.legend-line:after {
  margin: 0 0 0 10px;
}

.legend-line:before {
  margin: 0 10px 0 0;
}

.legend-line span {
  text-align: center;
  color: #8B8FA4;
}

.legend-line:after, .legend-line:before {
  content: '';
  width: 100%;
  height: 1px;
  background: #D4DAEC;
}

.login-btn-esiajcp {
  background: #F8FAFB;
  color: #283A97;
  width: 100%;
  border-radius: 6px;
  padding: 11px 17px 11px 17px;
  font-size: 14px;
  font-weight: 700;
}

.login-btn-esiajcp:hover {
  background: #E9EEFF;
  color: #283A97;
}

.login-btn-esiajcp img {
  content:url("../img/gosuslugi.svg");
  width: 32px;
  height: auto;
  margin-right: 15px;
  display: block;
}

.login-locale-wrapper {
  display: flex;
  flex-direction: row;
}

.login-locale-btn {
  height: 38px;
  width: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
  border-radius: 6px;
}

.login-locale-btn-selected {
  background: #283a97;
}

.login-locale-wrapper .login-locale-btn:last-child {
  margin-left: 10px;
}

.login-locale-btn a {
  font-family: PT Sans Caption, serif;
  font-style: normal;
  font-weight: bold;
  font-size: 18px;
  line-height: 23px;
  text-align: center;
  color: #283a97;
  padding: 0 0;
  margin: 0 0;
  text-decoration: none;
}

.login-locale-btn-selected a {
  font-family: PT Sans Caption, serif;
  font-style: normal;
  font-weight: bold;
  font-size: 18px;
  line-height: 23px;
  text-align: center;
  color: #ffffff;
  padding: 0 0;
  margin: 0 0;
}

.login-input-label {
  position: absolute;
  left: 33px;
  top: 8px;
  flex: none;
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 16px;
  color: #8b8fa4;
}

.login-input {
  height: 56px !important;
  border: 1px solid #283a97;
  box-sizing: border-box;
  padding-top: 16px;
  padding-left: 12px;
  padding-bottom: 0;
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 19px;
  color: #1a1a1a;
}

.login-text {
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #63677c;
  margin-bottom: 20px;
}

.login-text p {
  margin-bottom: 5px;
}

.login-checkbox {
  display: block;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.login-checkbox input {
  /* Hide the browser's default checkbox */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin-top: 0;
}

.login-checkbox label {
  margin-left: 30px;
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 19px;
  cursor: pointer;
  color: #1e264d;
  margin-bottom: 0;
}

.login-checkbox input:focus ~ .checkmark {
  outline: #283a97 solid 2px;
}

.login-checkbox a {
  font-weight: 600;
  color: #283a97;
}

/* Create a custom checkbox */

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #ffffff;
  border: 1px solid #c8cce1;
  box-sizing: border-box;
  border-radius: 4px;
}

/* On mouse-over, add a grey background color */

.login-checkbox:hover input ~ .checkmark {
  background-color: #cccccc;
}

/* When the checkbox is checked, add a blue background */

.login-checkbox input:checked ~ .checkmark {
  background-color: #283a97;
}

/* Create the checkmark/indicator (hidden when not checked) */

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */

.login-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */

.login-checkbox .checkmark:after {
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Radio button styles */
.login-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-radio {
  display: block;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.login-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin-top: 0;
}

.login-radio span {
  margin-left: 30px;
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 19px;
  cursor: pointer;
  color: #1e264d;
  margin-bottom: 0;
}

.login-radio input:focus ~ .radiomark {
  outline: #283a97 solid 2px;
}

/* Create a custom radio button */
.radiomark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #ffffff;
  border: 1px solid #c8cce1;
  box-sizing: border-box;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.login-radio:hover input ~ .radiomark {
  background-color: #f0f0f0;
}

/* When the radio is checked, add a blue background */
.login-radio input:checked ~ .radiomark {
  background-color: #283a97;
  border-color: #283a97;
}

/* Create the radio indicator (hidden when not checked) */
.radiomark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the radio indicator when checked */
.login-radio input:checked ~ .radiomark:after {
  display: block;
}

/* Style the radio indicator */
.login-radio .radiomark:after {
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* SMS Type Selector - Card Style */
.sms-type-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sms-type-card {
  display: block;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0;
  transition: transform 0.15s ease;
}

.sms-type-card:hover {
  transform: translateY(-2px);
}

.sms-type-card:active {
  transform: translateY(0);
}

.sms-type-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.sms-type-card__content {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid #c8cce1;
  border-radius: 8px;
  background-color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 12px;
  position: relative;
  min-height: 72px;
}

.sms-type-card:hover .sms-type-card__content {
  border-color: #283a97;
  background-color: #f8f9ff;
  box-shadow: 0 2px 8px rgba(40, 58, 151, 0.08);
}

.sms-type-card input:checked ~ .sms-type-card__content {
  border-color: #283a97;
  background-color: #f0f4ff;
  box-shadow: 0 0 0 3px rgba(40, 58, 151, 0.1), 0 2px 8px rgba(40, 58, 151, 0.12);
}

.sms-type-card input:focus ~ .sms-type-card__content {
  outline: 2px solid #283a97;
  outline-offset: 2px;
}

.sms-type-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f4ff;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sms-type-card:hover .sms-type-card__content .sms-type-card__icon {
  background-color: #e8ecff;
  transform: scale(1.05);
}

.sms-type-card input:checked ~ .sms-type-card__content .sms-type-card__icon {
  background-color: #283a97;
  transform: scale(1.05);
}

.sms-type-card__icon img {
  width: 24px;
  height: 24px;
  transition: all 0.25s ease;
  filter: brightness(0) saturate(100%) invert(28%) sepia(95%) saturate(2000%) hue-rotate(225deg) brightness(0.6);
}

.sms-type-card input:checked ~ .sms-type-card__content .sms-type-card__icon img {
  filter: brightness(0) invert(1);
}

.sms-type-card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sms-type-card__title {
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: #1e264d;
  transition: color 0.2s ease;
}

.sms-type-card input:checked ~ .sms-type-card__content .sms-type-card__title {
  color: #283a97;
  font-weight: 700;
}

.sms-type-card__description {
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: #8b8fa4;
  transition: color 0.2s ease;
}

.sms-type-card input:checked ~ .sms-type-card__content .sms-type-card__description {
  color: #63677c;
}

.sms-type-card__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sms-type-card input:checked ~ .sms-type-card__content .sms-type-card__check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.sms-type-card__check svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Disabled state and hint */
.sms-type-card--disabled {
  cursor: not-allowed;
}

.sms-type-card--disabled .sms-type-card__content {
  border-color: #e1e4f2;
  background-color: #f7f8fd;
  box-shadow: none;
  opacity: 0.7;
}

.sms-type-card--disabled .sms-type-card__icon {
  background-color: #eef1ff;
  filter: grayscale(30%);
}

.sms-type-card--disabled .sms-type-card__title {
  color: #8b8fa4;
  font-weight: 600;
}

.sms-type-card--disabled .sms-type-card__description {
  color: #a8adc4;
}

.sms-type-card__hint {
  margin-top: 2px;
  font-family: Open Sans, serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #d92d20;
  display: none;
}

.sms-type-card--disabled .sms-type-card__hint {
  display: block;
  color: #d92d20;
}

/* Responsive design */
@media (max-width: 480px) {
  .sms-type-selector {
    gap: 10px;
  }

  .sms-type-card__content {
    padding: 14px 12px;
    gap: 10px;
    min-height: 68px;
  }

  .sms-type-card__icon {
    width: 44px;
    height: 44px;
  }

  .sms-type-card__icon img {
    width: 22px;
    height: 22px;
  }

  .sms-type-card__title {
    font-size: 14px;
    line-height: 19px;
  }

  .sms-type-card__description {
    font-size: 12px;
    line-height: 16px;
  }

  .sms-type-card__check {
    width: 20px;
    height: 20px;
  }
}

.link-disabled {
  pointer-events: none;
  color: #c8cce1;
}

#countdown.link-disabled {
  display: none;
}

.input-password {
  position: relative;
}

.alb-input__eye {
  position: absolute;
  top: 0;
  right: 15px;
  z-index: 5;
  cursor: pointer;
  width: 1.6rem;
  height: 3.5rem;
  background-image: url("../img/ic-eye-open-blue.svg");
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  background-color: transparent;
  border: 0;
}

.alb-input__eye--close {
  background-image: url("../img/ic-eye-close-blue.svg");
}

input::-ms-reveal,
input::-ms-clear {
  display: none;
}

#resetBtn[disabled] {
  background-color: #c8cce1;
}

.alb-password-rules__title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: bold;
  line-height: 19px;
}

.alb-password-rules__list {
  list-style: none;
  margin-bottom: 0;
}

.alb-password-rules__item {
  display: flex;
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0em;
  color: #63677c;
  margin-bottom: 8px;
}

.alb-password-rules__item::before {
  content: "";
  display: inline-flex;
  flex-shrink: 0;
  background-image: url("../img/ic-check-gray.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 13px;
  height: 10px;
  margin: 5px 14px 0 0;
}

.alb-password-rules__item--complete::before {
  background-image: url("../img/ic-check-green.svg");
}

.alb-content {
  position: relative;
  background-color: white;
  overflow-x: hidden;
  overflow-y: auto;
}

.alb-form__group {
  margin-bottom: 10px;
}

.alb-form__group > div {
  margin-bottom: 20px;
}

.alb-form__group > div:last-child {
  margin-bottom: 0;
}

.alb-form input {
  width: 100%;
}

.login-input {
  width: 100%;
}

.alb-error__icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-image: url("../img/ic-triangle-red.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-right: 7px;
}

.alb-verify {
  padding-top: 50px;
}

.alb-verify__text {
  font-size: 16px;
}

.alb-link {
  color: #283a97;
  font-size: 16px;
  font-weight: bold;
}

.form-group {
  margin-bottom: 20px;
}

.alb-footer {
  display: flex;
  justify-content: flex-end;
}

@media screen and (min-width: 1366px) {
  .alb-content {
    width: 626px;
  }
  .login-card-content {
    padding-left: 117px;
    padding-right: 117px;
  }
  .alb-footer {
    padding: 0 50px 40px 50px;
    text-align: right;
  }
}

@media screen and (max-width: 1365px) {
  .alb-content {
    width: 426px;
  }
  .login-card-content {
    padding-left: 50px;
    padding-right: 50px;
    margin: 0;
  }
  .alb-footer {
    padding: 20px 50px 40px 50px;
  }
  .login-subtitle {
    margin-top: 10px;
  }
}

@media screen and (max-width: 1023px) {
  .alb-login {
    height: auto;
  }
  .alb-content__locale {
    display: none;
  }
  .login-locale-btn {
    height: 30px;
    width: 30px;
    margin-left: 10px;
    background-color: transparent;
    color: white;
  }
  .login-locale-btn-selected {
    height: 30px;
    width: 30px;
    background-color: white;
    margin-left: 10px;
  }
  .login-locale-btn a {
    color: white;
    font-size: 14px;
  }
  .login-locale-btn-selected a {
    color: #283a97;
  }
  .alb-login-card-pf {
    height: auto;
  }
  .login-card-content {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
  .alb-login-pf-header {
    position: absolute;
    right: 20px;
    top: 22px;
    justify-content: flex-end;
    z-index: 100;
    margin-bottom: 0;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .login-title {
    font-size: 14px;
    line-height: 30px;
  }
  .login-subtitle {
    font-size: 20px;
    line-height: 27px;
    margin-bottom: 25px;
    margin-top: 0;
  }
  .alb-verify__text {
    font-size: 12px;
  }
  .alb-footer {
    padding: 30px 0px 0px 0px;
  }

}
