/* Use a crisp SVG triangle instead of the parent theme's text glyph. */
button#kc-current-locale-link::after,
button#kc-current-country-link::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 6px;
  margin-left: 8px;
  vertical-align: middle;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Keep the title first in the DOM and visually centered above a compact hint. */
.v-form-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}
.v-form-heading #kc-page-title {
  width: 100%;
  margin: 0 0 6px;
  text-align: center;
}
.v-form-heading > .subtitle {
  float: none;
  width: 100%;
  padding: 0;
  margin: 0;
  min-height: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--v-auth-muted);
  text-align: center;
}

.login-pf-page .v-required-header {
  margin-bottom: 24px;
}

#kc-locale-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
#kc-locale {
  position: static;
  width: 100%;
}
#kc-locale-wrapper > div {
  position: relative;
  min-width: 0;
}
#kc-country-dropdown {
  max-width: 65%;
}
#kc-current-locale-link,
#kc-current-country-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--v-auth-muted);
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  box-shadow: none;
}
#kc-current-country-link {
  text-align: left;
  overflow-wrap: anywhere;
}
#kc-current-country-link::after {
  flex-shrink: 0;
}
#country-switch {
  right: 0;
  left: auto;
  width: max-content;
  min-width: 180px;
  max-width: min(280px, 80vw);
  max-height: 280px;
  overflow-y: auto;
}
#country-switch[hidden] {
  display: none !important;
}
#kc-locale #country-switch button {
  width: 100%;
  white-space: normal;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  border: 0;
  background: transparent;
  color: var(--v-auth-accent);
  padding: 7px 12px;
}
#kc-locale #country-switch button:focus-visible,
#kc-locale #country-switch button:hover {
  background: var(--v-auth-subtle);
  outline: none;
}
#country-switch [aria-checked='true'] {
  font-weight: 700 !important;
}
.v-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
[data-password-toggle] {
  min-width: 44px;
  min-height: 48px;
  border: 0;
  text-decoration: none;
  box-shadow: none;
}
[data-password-toggle]::before,
[data-password-toggle]::after {
  content: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
[data-password-toggle]:focus-visible,
#kc-current-country-link:focus-visible {
  outline: 2px solid var(--v-auth-accent);
  outline-offset: 2px;
}
.v-eye-slash {
  display: none;
}
[aria-pressed='true'] .v-eye-slash {
  display: inline;
}

#kc-locale #country-switch:not([hidden]) {
  display: block;
}

[data-password-toggle] .v-icon {
  color: #849189;
}
.login-pf-page .pf-c-input-group > input.pf-c-form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#language-switch1 a,
#language-switch1 a:hover,
#language-switch1 a:focus {
  text-decoration: none;
}

#kc-locale #kc-current-country-link,
#kc-locale #kc-current-locale-link,
#kc-locale #country-switch button,
#kc-locale #language-switch1 a {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
}

.v-policy-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--v-auth-muted);
}
.login-pf-page .v-policy-footer a {
  color: var(--v-auth-muted);
}
.v-legal-confirmation label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
}
.v-legal-confirmation input[type='checkbox'] {
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: var(--v-auth-accent);
}

.login-pf-page .v-legal-confirmation label {
  margin-bottom: 0;
  min-height: 44px;
}

#kc-locale #language-switch1[hidden] {
  display: none !important;
}
#kc-locale #language-switch1:not([hidden]) {
  display: block;
}

.login-pf-page .v-code-resend { border: 0; background: transparent; color: var(--v-muted, #849189); padding: 10px 0; font: inherit; cursor: pointer; text-decoration: none; }
.login-pf-page .v-code-hint { color: var(--v-muted, #849189); font-size: 13px; line-height: 1.5; margin: 0 0 12px; }

.login-pf-page #kc-error-message .instruction {
  color: var(--v-auth-text);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.login-pf-page #kc-error-message #backToApplication {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
