/* ===== Base / Typography ===== */
:root {
  background: #fff;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
}
h1,
h2,
h3,
.btn {
  font-family: "Montserrat", Arial, sans-serif;
}

h2 {
  text-align: left;
  font: normal normal normal 24px/30px "Open Sans";
  letter-spacing: 0;
  color: #be0021;
  margin-bottom: 20px;
}

/* Spacing overrides */
.mt-5,
.my-5 {
  margin-top: 6rem !important;
}
@media (min-width: 768px) {
  .mt-md-0,
  .my-md-0 {
    margin-top: 0 !important;
  }
}

/* Container width like design */
@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 1170px;
  }
}

/* ===== Header/Footer ===== */
.ak-header {
  background: #f7f8f9;
  color: #373039;
  line-height: 0;
  width: 100%;
  padding: 0;
  max-height: none;
}
.ak-logo {
  height: 45px;
  display: block;
}

.navbar-brand {
  display: inline-block;
  padding-top: 22px;
  padding-bottom: 22px;
  margin-right: 0.9rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

.ak-footer {
  font: 15px/27px "Open Sans";
}
.ak-footer .footer-left .navbar .navbar-nav .nav-link {
  padding-right: 2rem;
}
.ak-footer .footer-left .navbar .navbar-nav .nav-link:first-child {
  padding-left: 0;
}
.ak-footer .footer-left .navbar a {
  font-family: "Montserrat";
  font-size: 13px;
  color: #727583;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
}
.ak-footer .footer-left .navbar a:hover {
  color: #2a2c33;
}

@media (min-width: 768px) {
  .ak-footer .footer-left .navbar .navbar-nav {
    flex-direction: row;
  }
  h2 {
    font: normal normal normal 30px/38px "Open Sans";
    margin-bottom: 40px;
  }
}

/* ===== Page paddings ===== */
.padding-screen .container {
  padding-top: 50px;
  padding-bottom: 100px;
}

/* ===== PatternFly form base fixes ===== */
.pf-v5-c-form__group > .pf-v5-c-form__group-label {
  display: none !important;
} /* Block-Labels aus */
.pf-v5-c-form-control {
  position: relative;
  display: block;
}
.pf-v5-c-form-control::before {
  border: none !important;
} /* alte Ränder weg */
.pf-v5-c-form-control::after {
  border-block-end-color: #2a2c33;
} /* Unterstrich-Farbe */

.pf-v5-c-form__label-text,
.pf-v5-c-form__label > span[aria-hidden="true"] {
  display: inline !important;
  vertical-align: baseline !important;
}

/* ===== Floating Labels (einheitlich) ===== */
.floating-label {
  position: relative;
  display: block;
}

/* Input */
.floating-label input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #666;
  border-radius: 0;
  padding: 12px 0 6px 0;
  font-size: 16px;
  color: #222;
  box-shadow: none;
  outline: 0;
}
.floating-label input:focus {
  border-bottom-color: #c91f2e;
}

/* Label im Feld */
.floating-label label {
  position: absolute;
  left: 0;
  top: 12px;
  color: #999;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.2s ease;
}
.floating-label .pf-v5-c-form__label-text {
  display: inline;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #9aa;
  transform: translateY(0) scale(1);
  transform-origin: left top;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.25s ease;
}

/* ——— Float-Zustand ——— */
/* Fokus oder wenn Inhalt vorhanden */
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 13px;
  color: #000;
}
.floating-label input:focus + label .pf-v5-c-form__label-text,
.floating-label input:not(:placeholder-shown) + label .pf-v5-c-form__label-text {
  transform: translateY(-15px) scale(0.85);
  color: #9aa;
}

/* Autofill (Chrome/Edge/WebKit) */
.floating-label input:-webkit-autofill + label,
.floating-label input:-webkit-autofill:focus + label {
  top: -8px;
  font-size: 13px;
  color: #000;
}
.floating-label input:-webkit-autofill + label .pf-v5-c-form__label-text,
.floating-label input:-webkit-autofill:focus + label .pf-v5-c-form__label-text {
  transform: translateY(-15px) scale(0.85);
  color: #9aa;
}

/* Autofill (Firefox) */
.floating-label input:-moz-autofill + label {
  top: -8px;
  font-size: 13px;
  color: #000;
}
.floating-label input:-moz-autofill + label .pf-v5-c-form__label-text {
  transform: translateY(-15px) scale(0.85);
  color: #9aa;
}

/* Optional: Autofill-Hintergrund neutralisieren (Chrome/Edge) */
.floating-label input:-webkit-autofill {
  -webkit-text-fill-color: inherit;
  caret-color: inherit;
  /* verhindert gelben Autofill-Overlay-Effekt */
  transition: background-color 9999s ease-out 0s;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
}

/* Passwort: Auge rechts im Feld */
.floating-label.pf-v5-c-input-group {
  position: relative;
}
.floating-label.pf-v5-c-input-group .pf-v5-c-input-group__item:last-child {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.floating-label.pf-v5-c-input-group .pf-v5-c-form-control input {
  padding-right: 44px;
}
.floating-label.pf-v5-c-input-group .pf-v5-c-button.pf-m-control {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 8px;
  min-width: auto;
  color: #666;
  margin-top: 22px;
}
.floating-label.pf-v5-c-input-group .pf-v5-c-button.pf-m-control:hover {
  color: #c91f2e;
}

/* ===== Buttons ===== */
.pf-v5-c-button.pf-m-primary,
#kc-social-providers a {
  background-color: #6c6c7a;
  border: 1px solid #6c6c7a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 999px;
  outline: none;
  transition: background-color 0.3s;
}
.pf-v5-c-button.pf-m-primary:hover,
#kc-social-providers a:hover {
  background-color: #2a2c33;
}
.pf-v5-c-button.pf-m-primary:hover{
  border: 1px solid #000;
}
.pf-v5-c-button.pf-m-cancel {
  background-color: transparent;
  border: 1px solid #6c6c7a;
  color: #6c6c7a;
}
.pf-v5-c-button.pf-m-cancel:hover {
  background-color: #6c6c7a;
  border: 1px solid #6c6c7a;
  color: #fff;
}
.pf-v5-c-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: none;
  border-radius: var(--pf-v5-c-button--after--BorderRadius);
}

/* Links im Formular */
main form a {
  color: #2a2c33;
  text-decoration: underline;
}
main form a:hover {
  color: #c91f2e;
  text-decoration: underline;
}

/* Helper / Misc */
.pf-v5-c-form-control__utilities {
  position: absolute;
  right: 0;
}
.forgotpw {
  padding: 40px 0;
}
#kc-form-login .pf-v5-c-helper-text__item-text {
  font-size: 13px;
}

/* ID-Austria Text & Logo */
.idaustria-logo {
  max-width: 200px;
  margin-bottom: 20px;
}
.idaustria-txt {
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .idaustria-logo {
    margin-bottom: 40px;
  }
}

/* ===== Benefits Card (Infokasten) ===== */
.benefits-card {
  background: #f5f6f8;
  border-radius: 24px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-column-gap: 18px;
  align-items: start;
  max-width: 900px;
}
.benefits-icon {
  width: 48px;
  height: 48px;
  color: #c81e2b;
}
.benefits-title {
  grid-column: 2;
  font-size: 15px;
  margin-top: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.benefits-list {
  grid-column: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 0;
  line-height: 1.5;
}
.benefits-list li:first-child {
  margin-top: 0;
}
.benefits-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #c81e2b;
  margin-top: 2px;
}
.registerlink {
  font-size: 13px;
}
.instruction {
  margin: 50px auto;
}
.pf-v5-c-button.pf-m-secondary {
  font-size: 13px;
  color: #2a2c33;
}
#backToApplication {
  color: #2a2c33;
}
