.dd-login-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
#kc-form-login .dd-login-actions > :is(#kc-login, #social-yandex) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
}
#kc-form-login .dd-login-actions > #kc-login {
  font-size: 16px;
  line-height: 1.25;
}
#kc-form-login .dd-login-actions > #social-yandex {
  background: #000;
  overflow: hidden;
}
.dd-login-actions #social-yandex img {
  display: block;
  flex: 0 0 auto;
  width: min(222.85px, 112%);
  max-width: none;
  height: auto;
}
.dd-yandex-signin.dd-yandex-after-pair {
  margin-top: 14px;
}
@media (max-width: 400px) {
  .dd-login-actions { gap: 8px; }
}

/* Put the two password links on their own line even when Remember me is enabled. */
.dd-login-options {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  margin-block-start: calc(8px - var(--pf-v5-c-form--GridGap, 24px));
}
.dd-login-links {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 3.85vw, 15px);
}
.dd-login-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  white-space: nowrap;
  font-size: inherit;
}
.dd-login-links a + a {
  text-align: end;
}
#dd-registration-yandex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 4px 12px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font: 600 16px/1.25 Inter, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}
#dd-registration-yandex::before {
  content: "";
  flex: 0 0 24px;
  height: 24px;
  background: url("../img/yandex-id-ru.svg") no-repeat -44px -16px / 260px 56px;
}
