/* Select the divs inside the flex container */
.pf-v5-c-login__main-header > div > div:first-child {
  order: 2; /* Move the first child to the second position */
}

.pf-v5-c-login__main-header > div > div:last-child {
  order: 1; /* Move the last child to the first position */
}

.pf-v5-c-login__main-header {
  display: flex;
  border: none;
  padding: 1rem 0;
}

.pf-v5-c-login {
  min-height: auto;
  display: flex;
  max-width: 100%;
  align-items: start;
}

.pf-v5-c-button:after {
  border: none;
}

.pf-v5-c-login__main-footer-band {
  border: none;
}

.pf-v5-c-login__main-footer-band:first-child {
  margin: 0;
}

#social-google {
  border: solid 2px #193060;
  border-radius: 4px;
  transition: 0.3s;
  background: #fff;
  color: #193060;
  text-decoration: none;
  font-weight: 600;
}

#social-google:hover {
  border: solid 2px #0f1d3a;
  color: #0f1d3a;
}

#social-google:after {
  border: none;
}

#main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4vw;
}

#rc-banner {
  background-color: #193060;
  box-shadow: 0px 3px 11px -1px rgba(0, 0, 0, 0.5);
  height: 10px;
}

.login-pf body .pf-v5-c-login {
  background-position: center;
  height: 100%;
  background-color: #f1e8d7;
  background-image: url("../img/background_pattern.svg");
}

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

.flex-l {
  justify-content: start;
  display: flex;
  flex: 1;
}

#updateProfile {
  margin-bottom: 1rem;
}

:root {
  --keycloak-card-top-color: #193060;
  --pf-v5-c-alert--BorderTopColor: #193060;
}

.pf-v5-c-login .pf-v5-c-login__main {
  display: flex;
  justify-content: space-evenly;
  justify-content: center;
}

.login-pf {
  height: 100%;
  background: none;
}

.pf-v5-c-login__header,
.pf-v5-c-brand {
  margin: 0 !important;
}

.select-auth-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transkribus-logo {
  content: url("../img/transkribus_logo.svg");
  height: 60px;
  width: auto;
  margin: 1em;
}

.readcoop-logo {
  content: url("../img/Logo_Read_2c.svg");
  height: 90px;
  width: auto;
  margin: 1em;
}

.login-pf body {
  background: #fefefe !important;
  height: 100%;
}

.pf-v5-c-data-list__cell {
  margin: 0 !important;
}

.select-auth-box-parent {
  border: solid 1px #193060;
  border-radius: 4px;
  background-color: #f1f2f5;
}

.select-auth-box-parent:hover {
  border: solid 1px #193060;
  border-radius: 4px;
  background-color: #e1e5ea;
}

.select-auth-box-desc {
  padding: 0 !important;
}

.select-auth-box-headline {
  font-weight: 600;
  color: #193060;
}

.pf-v5-c-login .pf-v5-c-button {
  transition: 0.3s;
  background: #193060;
  border: solid 1px #193060;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  --pf-v5-c-button--PaddingRight: 10px;
  --pf-v5-c-button--PaddingLeft: 10px;
}

.pf-v5-c-login .pf-v5-c-button:hover {
  transition: 0.3s;
}

.pf-v5-c-form__label-text {
  color: #172b56;
  font-size: small;
}

.pf-v5-c-form-control input:focus {
  outline: 2px solid #193060;
  outline-offset: 1px;
}

.pf-v5-c-form-control input {
  border-radius: 0.25rem;
  width: 100%;
}

.pf-v5-c-login .pf-v5-c-form-control {
  --pf-v5-c-form-control--after--BorderBottomColor: transparent;
  --pf-v5-c-form-control--after--BorderBottomWidth: 0;
}

.pf-v5-c-form-control {
  display: flex;
  box-shadow: 0px 0px 0px 0px #fff inset, 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  outline: none;
  width: 100%;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #d5d7da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

h1 {
  color: #193060;
  font-weight: 500;
}

/*.rc-link {*/
a {
  color: #193060;
  text-decoration: underline;
  font-weight: 600;
}

.pf-v5-c-login .pf-v5-c-button:hover {
  background: #0f1d3a;
  border: solid 1px #0f1d3a;
}

.pf-v5-c-login .pf-v5-c-button i {
  color: #fff;
}

.pf-v5-c-login__main-body {
  padding: 0; /* 2rem 1rem 2rem*/
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pf-v5-c-form {
  --pf-v5-c-form--GridGap: 1rem;
}

.pf-v5-c-title.pf-m-3xl {
  font-size: var(--pf-v5-c-title--m-2xl--FontSize);
}

.pf-v5-c-login__main {
  flex-direction: column !important;
  padding: 2rem;
  border-radius: 10px !important;
  box-shadow: var(--pf-v5-global--BoxShadow--lg);
  transition: var(--pf-v5-global--Transition);
  border-top: 0;
  max-height: 90vh;
}

#kc-registration {
  font-size: 16px;
}

#kc-info-wrapper {
  background-color: #ffffff;
}

#pf-v5-c-check .checkbox {
  margin-top: 15px;
}

.g-recaptcha {
  text-align: center;
}

.g-recaptcha div {
  display: inline-block;
}
