body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-image: url("../../static/images/loginckgd.png");
  background-color: #f0f0f0;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tooltip {
  visibility: hidden;
  width: 100px;
  background-color: #27a7d2;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  left: 45%; /* Aligns tooltip to the left */
  bottom: 30%; /* Aligns tooltip to the left */
  opacity: 0;
  transition: opacity 0.3s;
}

label:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.login-container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px 20px 10px;
  text-align: center;
  height: auto;
  position: relative;
  flex-shrink: 0; /* Ensure the login container does not shrink below its content */
}

label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  font-size: 14px;
}

.link-icon {
    margin-right: 2px; /* Add space after the icon */
  }

.logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

h2 {
  font-size: 18px;
  margin: 10px 0;
  color: #27A7D2;
}

input[type="text"], input[type="password"], input[type="number"] {
  width: 90%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #27A7D2;
  border-radius: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding-left: 15px;
  padding-right: 15px;
  transition: border-color 0.3s;
}

button {
  background-color: #27A7D2;
  color: white;
  border: none;
  border-radius: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
  letter-spacing: 2px;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus {
  outline-color: #27A7D2;
}

button:hover {
  background-color: #1C7FAB;
  transform: scale(1.05);
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 100px;
  height: 100px;
  margin-left: 20px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}

.small-logo {
  width: 130px;
  height: 130px;
}

.footer-logo {
  width: 100px;
  height: 30px;
}

.footer {
  color: #808080;
  text-align: center;
  position: relative;
  width: 100%;
  margin-top: auto;
}

.separator {
  border-top: 1px solid #808080;
  margin: 10px auto;
  width: 90%;
  border-color: #808080;
}

.footer-links {
  margin: 10px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #808080;
}

.footer-links a {
  text-decoration: none;
  color: #808080;
  margin: 0 10px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icon {
  color: #808080;
  width: 20px;
  height: 20px;
  margin: 0.5px;
}

.social-icon-you {
  width: 25px;
  height: 20px;
  margin: 0.5px;
}

.space {
  height: 10px;
}

.footer-text {
  font-size: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.toggle-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #000000;
  font-size: 14px;
  margin: 0 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin: 0 2px;
  cursor: not-allowed;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #27A7D2;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

.switch input:checked + .slider:before {
  transform: translateX(16px);
}

.switch input:disabled + .slider {
  cursor: not-allowed;
}

.radio-container {
  display: inline-block;
}

.radio-container input[type="radio"] {
  display: none;
}

.radio-container label {
  display: inline-block;
  cursor: pointer;
  padding: 5px 8px;
  border: 2px solid #27A7D2;
  color: black;
  margin-left: 5px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.radio-container label:hover {
  background-color: #d1e8f3; /* Lighter hover background */
}

.radio-container input[type="radio"]:checked + label {
  background-color: #27A7D2;
  color: white;
}

.radio-container input[type="radio"]:checked + label .icon {
  filter: brightness(0) invert(1); /* Change icon color to white when selected */
}

.icon {
  width: 20px;
  height: 20px;
  transition: filter 0.3s;
}

.radio-container input[type="radio"]:checked + label::before {
  content: '\2713';
  display: inline-block;
  margin-right: 1px;
  margin-bottom: 1px;
  font-size: 1.3em;
}

.horizontal-container {
  display: flex;
  gap: 20px;
}

.field-container {
  display: flex;
  flex-direction: column;
}

.password-container {
  flex: 3;
}

.password-container {
  position: relative;
  width: fit-content;
}


/* Password input styles */
.password-container {
  position: relative;
  width: fit-content;
}

.password-container input[type="password"],
.password-container input[type="text"] {
  padding-right: 40px; /* space for eye icon */
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
}

/* Apply blue border only when focused */
.password-container input:focus {
  border: 2px solid #27A7D2;
}

.toggle-eye {
  position: absolute;
  right: 10px;
  top: 55%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 16px;
}


.orgid-container {
  flex: 1;
  padding-right: 25px;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .horizontal-container {
    flex-direction: column;
    gap: 0;
  }

  .orgid-container {
    padding-right: 0;
  }
}

#submit i {
    margin-right: 5px; /* Space between icon and text */
}


@media (max-width: 480px) {
  .login-container {
    padding: 10px;
    width: 95%;
    margin-bottom: 20px; /* Ensure it does not overlap with the footer */
  }

  h2 {
    font-size: 16px;
  }

  button {
    padding: 8px 16px;
  }

  .header img {
    width: 80px;
    height: 80px;
  }

  .footer-logo {
    width: 80px;
    height: 24px;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }

  .social-icon-you {
    width: 22px;
    height: 18px;
  }

  .footer-text {
    font-size: 10px;
  }
}