/* OpenDIS Login Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url(images/LoginBackgroundOpenDIS.jpg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.session-page {
  width: 100%;
  max-width: 450px;
}

.login-box {
  border-top: 5px solid #749b50;
  padding: 20px;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  background: white;
  box-shadow: rgb(39 56 73) 0px 20px 30px -10px;
}

/* Header Styling */
header {
  position: relative;
  margin-bottom: 20px;
}

#kc-locale {
  text-align: right;
  margin-bottom: 15px;
}

#kc-locale-wrapper {
  font-size: 13px;
}

.dropdown-toggle {
  color: #333;
  text-decoration: none;
  font-size: 13px;
}

.dropdown-toggle:hover {
  text-decoration: underline;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 5px 0;
  margin-top: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  list-style: none;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  font-size: 13px;
}

.dropdown-menu li a {
  display: block;
  padding: 5px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

#kc-page-title {
  text-align: center;
  margin-top: 10px;
}

#kc-page-title h1 {
  margin-bottom: 15px;
}

.logo {
  max-width: 200px;
  height: auto;
}

#kc-page-title h4 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  text-align: left;
}

#kc-page-title p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  text-align: left;
}

/* Form Styling */
#kc-content {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label-group {
  margin-bottom: 8px;
}

.form-double-label-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.form-double-label-group span a {
  font-size: 13px;
  color: #749b50;
  text-decoration: none;
  cursor: default;
}

.form-double-label-group span a:hover {
  text-decoration: none;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d1d1d1;
  border-radius: 3px;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  outline: none;
  border-color: #749b50;
  box-shadow: 0 0 0 3px rgba(116, 155, 80, 0.1);
}

.form-control::placeholder {
  color: #999;
}

/* Checkbox Styling */
.checkbox {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

/* Button Styling */
.btn {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  text-align: center;
}

.btn-primary {
  background-color: #749b50;
  color: white;
}

.btn-primary:hover {
  background-color: #648742;
}

.btn-primary:active {
  background-color: #577538;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Social Login Styling */
#kc-social-providers {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.social-logins {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-logins li {
  margin-bottom: 10px;
}

.zocial {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.15s ease-in-out;
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #d1d1d1;
  cursor: pointer;
}

.zocial:hover {
  background-color: #e8e8e8;
}

.zocial span {
  display: block;
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-box {
    padding: 15px;
  }
  
  .logo {
    max-width: 150px;
  }
  
  #kc-page-title h4 {
    font-size: 20px;
  }
  
  .form-double-label-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-double-label-group span {
    margin-top: 5px;
  }
}

/* Extra styling voor betere UI */
#kc-form-options {
  margin-top: -5px;
}

#kc-form-buttons {
  margin-top: 25px;
}

input[type="text"]:autofill,
input[type="password"]:autofill {
  background-color: #fff !important;
}
