:root {
  --pf-c-form__label-text--FontWeight: 400;
  --pf-c-form__label--FontSize: 14px;
  --pf-global--link--Color: rgb(17, 37, 56);
  --pf-global--link--Color--hover: #556a7e;
}

::placeholder {
  font-size: var(--pf-c-form__label--FontSize);
}

* {
  -webkit-font-smoothing: antialiased;
  transition: .15s ease-in-out all;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.66666667;
  color: #363636;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow-x: hidden;
}

/* --- LAYOUT IMPLEMENTATIE --- */

/* De background image komt op de body */
.login-pf body {
  background: url("../img/groen-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* De container die alles omvat */
.login-page-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  justify-content: flex-end; 
  align-items: stretch;
}

/* Het witte vlak waar het formulier in zit - DESKTOP (standaard) */
.login-pf-page {
  width: 33vw; 
  min-width: 450px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

/* De kaart zelf binnen het witte vlak */
.login-pf-page .card-pf {
  width: 100%;
  max-width: 400px;
  background-color: transparent;
  box-shadow: none;
  border: none;
  margin-top: 0;
  padding: 20px !important;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* TABLET: 769px - 992px */
@media screen and (max-width: 992px) {
  .login-pf-page {
    width: 50vw !important;
    min-width: 400px !important;
  }
}

/* MOBIEL: tot 768px */
@media screen and (max-width: 768px) {
  .login-pf body {
    background-position: left center; 
  }

  .login-page-container {
    justify-content: center !important;
  }

  .login-pf-page {
    width: 100vw !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 100vh !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }
}

/* --- OVERIGE STYLING --- */

.pf-c-button.pf-m-primary {
  color: var(--pf-c-button--m-primary--Color);
  background-color: var(--pf-global--palette--black-900);
}

.btn-lg {
  padding: 8px 10px;
}

.card-pf,
.pf-c-form-control,
.pf-c-button {
  border-radius: 4px;
}

.kc-social-links {
  flex-direction: column;
}

.pf-c-button {
  font-weight: 600;
}

.pf-c-form-control {
  border-color: var(--pf-global--BorderColor--300);
  margin: 2px !important;
}

.pf-c-form__label {
  padding-bottom: 8px;
}

/* Text inputs - alleen voor text, password, email, etc. */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  height: 42px;
  border: 1px solid black;
  border-radius: 0px;
  font-size: 16px;
  padding-left: 10px;
  font-weight: 600;
}

/* Checkbox styling */
input[type="checkbox"] {
  width: auto;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}

/* Remember me checkbox container */
#kc-form-options .checkbox {
  display: flex;
  align-items: center;
}

#kc-form-options .checkbox label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #363636;
  margin: 0;
}

input[type="submit"]:hover {
  background-color: #02AD5B;
  color: #fff;
  border: none;
}

/* Error message styling */
#input-error, 
.pf-c-form__helper-text.pf-m-error {
  color: #d40d0d;
  font-size: 12pt;
  margin-top: 5px;
  display: block;
}

/* --- FIX VOOR SHOW PASSWORD KNOP --- */

.pf-c-input-group {
  display: flex;
  width: 100%;
  position: relative;
}

.pf-c-input-group .pf-c-form-control {
  flex: 1;
  z-index: 1;
}

.pf-c-button.pf-m-control {
  height: 42px;
  border-radius: 0px;
  border: 1px solid black;
  border-left: none;
  background-color: white;
  color: #363636;
  width: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pf-c-button.pf-m-control:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

/* Fix voor show/hide password iconen - zonder PatternFly */
.pf-c-button.pf-m-control {
  position: relative;
}

/* Verberg eventuele lege/kapotte iconen */
.pf-c-button.pf-m-control svg,
.pf-c-button.pf-m-control i {
  display: none !important;
}

/* Toon oog-icoon via CSS (eye icon als SVG data URI) */
.pf-c-button.pf-m-control::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23363636' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
