@import url("https://fonts.googleapis.com/css?family=Montserrat:400,800");

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  /* background: #1A202C; */
  background-image: url("/Membersathi_frontend/User/assets/user-background.png");
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  min-height: 100vh;
  margin: 20px 0 0;
  color: white;
  overflow: hidden; /* Prevent scrolling */
}

h1 {
  font-weight: bold;
  margin: 0;
  color: white;
}

p {
  font-size: 14px;
  font-weight: 100;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
  color: #e2e8f0;
}

a {
  color: #48bb78;
  font-size: 14px;
  text-decoration: none;
  margin: 15px 0;
}

a:hover {
  text-decoration: underline;
  
}

.go-back{
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 20px;
  border-color: #e53e3e;
  border-style: solid;
}

button {
  margin-top: 0.4rem;
  border-radius: 20px;
  border: 1px solid var(--primary-color);
  background-color: #e53e3e;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  cursor: pointer;
  position: relative;
}

button:hover {
  background-color: #db550d;
}

button:active {
  transform: scale(0.95);
}

button:focus {
  outline: none;
}

button.loading {
  pointer-events: none; /* Disable button during loading */
  color: transparent; /* Hide button text */
}

button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Form Styles */
form {
  background-color: #2d3748;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  width: 400px;
  max-width: 100%;
  text-align: center;
}

input {
  background-color: #4a5568;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  color: white;
  border-radius: 5px;
}

input::placeholder {
  color: #a0aec0;
}

.message {
  margin-top: 20px;
  color: #48bb78; /* Green success message */
  font-size: 14px;
}

.error {
  margin-top: 20px;
  color: #e53e3e; /* Red error message */
  font-size: 14px;
}

/* Login Page Specific Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  /* background-color: #2D3748; */
  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: 768px;
  max-width: 100%;
  min-height: 480px;
  margin-bottom: 100px;
  margin: 0 auto; /* Center the container and remove extra margins */
}
/* Add this to your existing CSS file */
.login-logo {
  width: 30%; /* Adjust the size as needed */
  margin-bottom: 0px;
  display: block; /* Ensure the image is centered */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}
.form-container {
  position: relative;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in-container {
  left: 0;
  /* width: 50%; */
  z-index: 2;
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.overlay {
  background: #1a202c;
  background: linear-gradient(to right, #1a202c, #2d3748);
  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;
}

.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-right {
  right: 0;
  transform: translateX(0);
}

/* OTP Verification Page Specific Styles */
.step {
  display: none; /* Hide all steps by default */
}

.step.active {
  display: block; /* Show the active step */
}

/* Reset Password Page Specific Styles */
.input-container {
  position: relative;
  width: 100%;
  margin: 8px 0;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #a0aec0; /* Light gray icon color */
}

.toggle-password:hover {
  color: #48bb78; /* Green icon color on hover */
}
/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    width: 100%;
    min-height: auto;
    margin-bottom: 20px;
    margin: 0 auto; /* Ensure no horizontal scrolling */
  }

  .form-container {
    width: 100%;
  }

  .overlay-container {
    display: none; /* Hide the overlay container on smaller screens */
  }

  .login-logo {
    width: 60%; /* Adjust logo size for smaller screens */
    height: auto;
  }

  form {
    padding: 40px;
    /* Reduce padding for smaller screens */
    /* Make the form take up more width */
  }

  button {
    padding: 10px 30px; /* Adjust button size for smaller screens */
  }

  body {
    background-image: url("/Membersathi_frontend/User/assets/user-background.png");
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    min-height: 100vh;
    margin: 0; /* Remove top margin for smaller screens */
    color: white;
    overflow: hidden; /* Prevent scrolling */
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px; /* Adjust heading size for very small screens */
  }

  input {
    padding: 10px 12px; /* Adjust input padding for smaller screens */
  }

  .login-logo {
    width: 30%; /* Increase logo size for very small screens */
  }
}


/* Add loading spinner style */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
      transform: rotate(0turn);
  }

  to {
      transform: rotate(1turn);
  }
}

.error-message {
  color: red;
  margin-top: 10px;
  text-align: center;


}
