/* styles.css */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(145deg, #012B76, #012B76 35%, #9ED5C0 75%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.login-card {
  background-color: #ffffff;
  width: 350px;
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.logo img {
  width: 120px;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 14px;
  color: #7a7a7a;
  margin-bottom: 5px;
}

.input-box {
  position: relative;
}

.input-box input {
  width: 90%;
  padding: 10px 15px;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background-color: #f9f9f9;
}

.input-box .show-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #7a7a7a;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* Adds spacing between the SVG and the text */
  background-color: #012B76;
  font-family: 'Montserrat', sans-serif;
  color: whitesmoke;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
}

.login-button:hover {
  background-color: #9ED5C0;
  color: #012B76;
}


.login-button svg {
  display: inline-block;
  vertical-align: middle;
}

.links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.links a {
  font-size: 14px;
  color: #012B76;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.teggl-container {
  left: 35px;
  top: 35px;
  position: fixed;
  z-index: 100000;
}

.logo1 {
  width: 125px;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #012B76, #012B76 35%, #9ED5C0 75%);
  z-index: 9999;
}

.loader {
  --background: linear-gradient(135deg, #9ED5C0, #1e4c9a);
  --shadow: rgb(24 46 110 / 28%);
  --text: #6C7486;
  --page: rgba(255, 255, 255, 0.36);
  --page-fold: rgba(255, 255, 255, 0.52);
  --duration: 3s;
  width: 200px;
  height: 140px;
  position: relative;
}

.loader:before,
.loader:after {
  --r: -6deg;
  content: "";
  position: absolute;
  bottom: 8px;
  width: 120px;
  top: 80%;
  /* box-shadow: 0 16px 12px var(--shadow); */
  transform: rotate(var(--r));
}

.loader:before {
  left: 4px;
}

.loader:after {
  --r: 6deg;
  right: 4px;
}

.loader div {
  width: 400px;
  height: 230px;
  border-radius: 18px;
  position: relative;
  z-index: 1;
  perspective: 600px;
  box-shadow: 0 4px 6px var(--shadow);
  background-image: var(--background);
}

.loader div ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.loader div ul li {
  --r: 180deg;
  --o: 0;
  --c: var(--page);
  position: absolute;
  top: 10px;
  left: 10px;
  transform-origin: 100% 50%;
  color: var(--c);
  opacity: var(--o);
  transform: rotateY(var(--r));
  -webkit-animation: var(--duration) ease infinite;
  animation: var(--duration) ease infinite;
}

.loader div ul li:nth-child(2) {
  --c: var(--page-fold);
  -webkit-animation-name: page-2;
  animation-name: page-2;
}

.loader div ul li:nth-child(3) {
  --c: var(--page-fold);
  -webkit-animation-name: page-3;
  animation-name: page-3;
}

.loader div ul li:nth-child(4) {
  --c: var(--page-fold);
  -webkit-animation-name: page-4;
  animation-name: page-4;
}

.loader div ul li:nth-child(5) {
  --c: var(--page-fold);
  -webkit-animation-name: page-5;
  animation-name: page-5;
}

.loader div ul li svg {
  width: 190px;
  height: 210px;
  display: block;
}

.loader div ul li:first-child {
  --r: 0deg;
  --o: 1;
}

.loader div ul li:last-child {
  --o: 1;
}

.loader span {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: white;
}

@keyframes page-2 {
  0% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  35%,
  100% {
    opacity: 0;
  }

  50%,
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-3 {
  15% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }

  65%,
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-4 {
  30% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  65%,
  100% {
    opacity: 0;
  }

  80%,
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-5 {
  45% {
    transform: rotateY(180deg);
    opacity: 0;
  }

  65% {
    opacity: 1;
  }

  80%,
  100% {
    opacity: 0;
  }

  95%,
  100% {
    transform: rotateY(0deg);
  }
}

.show-password {
  cursor: pointer;
  user-select: none;
}

#error-msg {
  display: none;
  color: #ff2851;
  font-size: 14px;
  margin-top: 10px;
}

#error-msg1 {
  display: none;
  color: #ff2851;
  font-size: 14px;
  margin-top: 10px;
}

.tooltip-container {
  position: relative;
  width: 100%;
  /* Ensures button stays full width */
  display: inline-block;
}

.tooltip-container .login-button {
  width: 100%;
  /* Keep the Google button same width as the other */
}

.info-icon {
  display: inline-block;
  padding: 2px;
  margin-left: 23px;
  margin-top: -5px;
  font-weight: bold;
  color: #ffffff;
  background-color: #012B76;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: default;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(100% - 20px);
  /* Adjust depending on layout */
}

.tooltip-text {
  visibility: hidden;
  background-color: #012B76;
  color: #ffffff;
  text-align: left;
  width: 220px;
  padding: 12px 14px;
  border-radius: 8px;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%) translateX(14px);
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #012B76;
}

.info-icon:hover {
  background-color: #9ED5C0;
  color: #012B76;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.info-icon:hover .tooltip-text,
.tooltip-text:hover {
  visibility: visible;
  opacity: 1;
}