body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: #7b57f2;
  background-image: url("images/loginb.avif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: flex;
  width: 80%;
  max-width: 1200px;
  height: 550px;
  /* height: 75vh; */
  /* min-height: 600px; */
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.login-left {
  flex: 1;
  min-width: 50%;
  background-image: url("images/avatar2.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
}

.login-right {
  flex: 1;
  padding: 50px 40px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.login-right h1 {
  font-size: 36px;
  color: #2a2d54;
  font-weight: 700;
  margin-bottom: 20px;
}

.login-right form {
  display: flex;
  flex-direction: column;
}

.login-right input[type="email"],
.login-right input[type="password"] {
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  display: flex;
}

.login-right input[type="text"] {
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  width: 100%;
  display: flex;
  align-items: center;
}

.login-right button {
  background-color: #2a2d54;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-right button:hover {
  background-color: #4e507a;
}

.login-right .extra-options {
  font-size: 15px;
  margin-top: 10px;
  text-align: center;
  color: #666666;
}

.login-right .extra-options a {
  color: #007bff;
  text-decoration: none;
}

.login-right .back-button {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

.login-right .back-button:hover {
  color: #4e507a;
}

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

  .login-left {
    display: none; /* Hide left section on smaller screens */
  }

  .login-right {
    padding: 20px;
  }
}

.password-field-container {
  position: relative; /* Allows absolute positioning of the button */
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center items vertically */
}

.password-field-container input[type="password"] {
  flex: 1;
  padding: 15px 15px 15px 15px; /* Padding adjusted for space */
  border: 2px solid #ddd; /* Same as other inputs */
  border-radius: 10px; /* Match other input styles */
  font-size: 16px; /* Consistent font size */
}

#togglePassword {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #2a2d54;
  font-size: 20px;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  padding-bottom: 17px;
}

/* Optional: Add hover effect to the toggle button */
#togglePassword:hover {
  color: #007bff; /* Change color on hover */
}

.email-label,
.password-label {
  margin-bottom: 5px;
}

.login-btn {
  margin-top: 20px;
}

/* login error */

.login-error {
  color: #d9534f;
  background: #f9d6d5;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 0;
  font-size: 14px;
  display: none;
}

.input-error {
  border-color: #d9534f !important;
}

.input-error {
  border-color: red !important;
}
/* #loginError {
  color: red;
  font-size: 14px;
  margin-bottom: 0;
  display: none;
} */

/* animation for login */

@keyframes fadeSlideInStrong {
  from {
    opacity: 0;
    transform: translateY(40px); /* Was 20px */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-load {
  animation: fadeSlideInStrong 0.7s ease-out forwards; /* Was 0.4s */
}

/* forgot password and the animation */

.fade-slide-in {
  animation: fadeSlideIn 0.4s ease forwards;
}

.fade-slide-out {
  animation: fadeSlideOut 0.4s ease forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* loader */

.loader-container {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
}

.loader-in-transition {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  z-index: 3000;
  pointer-events: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

.loader-in-transition.show {
  visibility: visible;
  opacity: 1;
}
.loader-in-transition::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300vmax;
  height: 300vmax;
  background: #111;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 1;
  opacity: 1;
}

.loader-in-transition.show::after {
  animation: expandCircleInward 1s ease-in-out forwards;
}

@keyframes expandCircleInward {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.basketball-svg {
  width: 200px;
  height: 200px;
  z-index: 2; /* make sure it stays above the shrinking black circle */
}

.seam {
  fill: none;
  stroke: orange;
  stroke-width: 2.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: seamFill 1.8s ease-in-out forwards infinite;
}

@keyframes seamFill {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.basketball-svg {
  width: 200px;
  height: 200px;
  animation: fillBasketball 2s ease-in-out forwards;
  stroke: orange;
  fill: transparent;
  stroke-width: 3px;
}

@keyframes fillBasketball {
  0% {
    stroke-dasharray: 0, 100;
    fill: transparent;
  }
  50% {
    stroke-dasharray: 100, 0;
    fill: transparent;
  }
  100% {
    stroke-dasharray: 100, 0;
    fill: orange;
  }
}

.basketball-line {
  stroke-linecap: round;
  fill: none;
  stroke: orange;
  /* stroke-width: 2.5; */
  stroke-width: 4;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.basketball-line.animate {
  animation: drawBasketball 3s cubic-bezier(0.7, 0.4, 0.1, 1) forwards;
}

@keyframes drawBasketball {
  to {
    stroke-dashoffset: 0;
  }
}

.loader-container {
  pointer-events: auto; /* allow blocking interaction */
}
.loader-container * {
  pointer-events: none; /* prevent inner SVG or content from being clickable */
}
