* {
  box-sizing: border-box;
}

body {
  background: #f6f5f7;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  height: 100vh;
  margin: -20px 0 50px;
}

h1 {
  font-weight: bold;
  margin: 0;
}

p {
  font-size: 14px;
  font-weight: 100;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}

span {
  font-size: 12px;
}

a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
  margin: 15px 0;
}

button {
  border-radius: 20px;
  border: 1px solid #3a52ac;
  background-color: #3a52ac;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  cursor: pointer;
  margin-top: 10px;
}

button:active {
  transform: scale(0.95);
}

button:focus {
  outline: none;
}

form {
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 30px;
  height: 100%;
  text-align: center;
}

input {
  background-color: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
}

.container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 
              0 10px 10px rgba(0,0,0,0.22);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 768px;
  min-height: 480px;
  margin: 20px;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  transition: all 0.6s ease-in-out;
}

.verify-container {
  left: 0;
  z-index: 2;
}

.verification-container {
  left: 0;
  opacity: 0;
  z-index: 1;
}

.container.right-panel-active .verification-container {
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

@keyframes show {
  0%, 49.99% {
    opacity: 0;
    z-index: 1;
  }
  50%, 100% {
    opacity: 1;
    z-index: 5;
  }
}

.overlay-container {
  display: none;
}

/* Loading Animation Styles */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
background-color: rgba(240, 242, 245, 0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#loading-overlay:not(.hidden) {
  opacity: 1;
}

#load {
  width: 100%;
  max-width: 600px;
  height: 36px;
  overflow: visible;
  user-select: none;
  cursor: default;
  display: flex;
  justify-content: center;
}

#load div {
  position: absolute;
  width: 40px; /* Increased from 20px */
  height: 60px; /* Increased from 36px */
  opacity: 0;
  font-family: Helvetica, Arial, sans-serif;
  animation: move 2s linear infinite;
  transform: rotate(180deg);
  color: #3a52ac; /* Changed to match your theme color */
  font-size: 50px; /* Increased from 30px */
  font-weight: bold; /* Added bold */
}

#load div:nth-child(2) { animation-delay: 0.2s; }
#load div:nth-child(3) { animation-delay: 0.4s; }
#load div:nth-child(4) { animation-delay: 0.6s; }
#load div:nth-child(5) { animation-delay: 0.8s; }
#load div:nth-child(6) { animation-delay: 1s; }
#load div:nth-child(7) { animation-delay: 1.2s; }

@keyframes move {
  0% { left: 0; opacity: 0; }
  35% { left: 38%; transform: rotate(0deg); opacity: 1; } /* Adjusted from 41% */
  65% { left: 62%; transform: rotate(0deg); opacity: 1; } /* Adjusted from 59% */
  100% { left: 100%; transform: rotate(-180deg); opacity: 0; }
}

/* Resend OTP Styles */
.resend-otp {
  margin-top: 15px;
  font-size: 12px;
}

#resendTimer {
  margin-top: 5px;
}

#resendOtpLink {
  color: #3498db;
  cursor: pointer;
}

#resendOtpLink:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* Desktop styles */
@media (min-width: 768px) {
  .container {
    margin: -20px 0 50px;
  }

  .form-container {
    width: 50%;
  }

  .verify-container {
    left: 0;
    width: 50%;
  }

  .container.right-panel-active .verify-container {
    transform: translateX(100%);
  }

  .verification-container {
    left: 0;
    width: 50%;
  }

  .container.right-panel-active .verification-container {
    transform: translateX(100%);
  }

  .overlay-container {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
  }

  .container.right-panel-active .overlay-container {
    transform: translateX(-100%);
  }

  .overlay {
    background: #3a52ac;
    background: -webkit-linear-gradient(to right, #3f6ed4, #3a52ac);
    background: linear-gradient(to right, #3f6ed4, #3a52ac);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
  }

  .container.right-panel-active .overlay {
    transform: translateX(50%);
  }

  .overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
  }

  .overlay-left {
    transform: translateX(-20%);
  }

  .container.right-panel-active .overlay-left {
    transform: translateX(0);
  }

  .overlay-right {
    right: 0;
    transform: translateX(0);
  }

  .container.right-panel-active .overlay-right {
    transform: translateX(20%);
  }
}

h1 {
  font-weight: bold;
  margin: 0;
}

.logo-container {
  margin-bottom: 20px;
  text-align: center;
}

.form-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 10px;
}



.bottom-logo {
  max-width: 120px;  /* Even smaller size */
  height: auto;
  margin-bottom: 5px;
}



/* Adjust the form padding to accommodate logos */
.form-container form {
  padding: 20px 30px;
}

/* Adjust the overlay panel padding */
.overlay-panel {
  padding: 20px 40px !important;
}

/* For mobile view */
@media (max-width: 767px) {
  .form-logo {
    max-width: 120px;
  }
  
  .bottom-logo {
    max-width: 100px;
  }
}

/* Loading Logo Styles */
.loading-logo-container {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  z-index: 10000;
}

.loading-logo {
  max-width: 150px; /* Adjust this to your preferred size */
  height: auto;
  margin-bottom: 20px;
}

/* Adjust the loading animation position */
#load {
  width: 100%;
  max-width: 800px; /* Increased from 600px */
  height: 60px; /* Increased from 36px */
  overflow: visible;
  user-select: none;
  cursor: default;
  display: flex;
  justify-content: center;
  margin-top: 40px; /* Added some margin */
}

/* For mobile devices */
@media (max-width: 767px) {
  .loading-logo {
    max-width: 120px;
  }
  
  #load {
    top: 20px;
  }
}


