body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #fff;
}

.login-container {
  display: flex;
  padding: 20px;
  min-height: 100vh;
}

.left-panel {
  flex: 1;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right-panel {
  flex: 1;
  background: linear-gradient(135deg, #5664e3 0%, #9f58a9 100%);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 16px;
}

.logo-container {
  display: flex;
  justify-content: center;
  width: 400px;
  padding-top: 20px;
}

.bottom-logos-container {
  display: flex;
  margin-top: 70px;
  gap: 20px;
  inline-size: 100%;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.bottom-logo-wrapper {
  display: contents;
}

img.bottom-logo {
  inline-size: 50%;
  max-inline-size: 220px;
}

.bottom-logos-container .bottom-logo:first-child {
  margin-right: 20px;
}

.policy-txt {
  margin-top: 40px;
  text-align: center;
}

.efka-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-hex {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e74c3c 0%, #9b59b6 50%, #3498db 100%);
  margin-bottom: 8px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  float: left;
  margin-right: 10px;
}

.logo-text img {
  height: 90px;
}

.logo-subtitle {
  font-size: 8px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 70px;
  margin-top: -5px;
  clear: both;
}

.welcome-container {
  flex: 1;
  width: 400px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.welcome-container h2 {
  /* margin-bottom: 5px; */
  margin-bottom: 70px; /* replace me with the rule above when form is added */
  margin-top: 50px; /* comment me out when form is added */
  font-size: 26px;
  color: #333;
  align-self: flex-start;
}

.welcome-container p {
  margin-bottom: 20px;
  color: #666;
  font-size: 16px;
  align-self: flex-start;
}

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

.control-label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: #f5f8fa;
}

.input-group {
  display: flex;
  position: relative;
}

.input-group input {
  margin-right: 2px;
}

.show-password-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.eye-icon:before {
  content: '👁️';
}

.helper-text {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

.error-message {
  color: #d9534f;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.form-options {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.remember-me {
  text-align: left;
}

.forgot-password {
  text-align: right;
}

.forgot-password a {
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 15px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #259cd8;
  color: white;
  width: 100%;
}

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

.form-buttons {
  width: 100%;
}

.alternative-login {
  margin-top: 30px;
  text-align: center;
  width: 100%;
}

.taxisnet-login {
  margin: 20px 0;
}

.taxisnet-link {
  display: block;
  color: #3498db;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.alternative-login {
  margin: 0 !important;
  max-inline-size: 400px;
}

.social-providers {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.social-btn {
  background-color: #259cd8;
  color: white;
  margin-top: 10px !important;
}

.social-link {
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
}

.manual-login-toggle {
  margin-top: 10px;
}

.manual-login-toggle .manual-login-btn {
  display: flex;
  justify-content: center;
  margin: 0 !important;
}

.manual-login-form {
  margin-top: 15px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.manual-login-form .form-group {
  margin-bottom: 15px;
}

.manual-login-form .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#toggle-manual-login {
  position: relative;
  text-align: left;
}

#toggle-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

#toggle-icon.rotated {
  transform: translateY(-50%) rotate(180deg);
}

.feature-header {
  margin-bottom: 40px;
}

.feature-header h2 {
  font-size: 26px;
  font-weight: normal;
}

.feature-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-box {
  /* background-color: rgba(255, 255, 255, 0.1); */
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
}

.feature-icon {
  /* width: 50px;
  height: 50px; */
  min-width: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  font-size: 16px;
}

.feature-text p {
  margin: 0;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.checkbox input[type='checkbox'] {
  margin-right: 8px;
}

#kc-form {
  width: 100%;
}

#kc-form-wrapper {
  width: 100%;
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .left-panel {
    max-width: 100%;
    padding: 20px;
    min-block-size: 95%;
  }

  .right-panel {
    display: flex;
    min-block-size: 100%;
  }

  .welcome-container {
    max-width: 100%;
  }

  .bottom-logos-container {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
  }

  .bottom-logos-container .bottom-logos:first-child {
    margin-bottom: 20px;
  }

  .bottom-logos img {
    width: 200px;
  }

  .policy-txt {
    margin-bottom: 40px;
  }
}

/* ============================ input-role-data.ftl ================== */

/* .role-selection-info {
  display: flex;
  width: 100%;
  margin-left: 30px;
} */

/* ======================= overrides ======================== */

.card-pf {
  margin: 0 !important;
  border: none !important;
}

#kc-registration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-start: 10px;
}

.login-pf-page {
  padding: 0 !important;
}

.login-pf-page .card-pf {
  padding: 0 !important;
}

.login-pf-header {
  display: none !important;
}

/* ensure all inputs have same dimensions */
input.form-control,
select.form-control {
  height: 42px !important;
}
