/* Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Jost", sans-serif;
}

/* Main Container */
.singup-main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to bottom, #000, #5a0202, #860505);
  padding: 20px;
  box-sizing: border-box;
}

/* Form Container */
.main {
  width: 100%;
  max-width: 500px;
  height: 710px;
  overflow: hidden;
  background: url("https://doc-08-2c-docs.googleusercontent.com/docs/securesc/68c90smiglihng9534mvqmq1946dmis5/fo0picsp1nhiucmc0l25s29respgpr4j/1631524275000/03522360960922298374/03522360960922298374/1Sx0jhdpEpnNIydS4rnN4kHSJtU1EyWka?e=view&authuser=0&nonce=gcrocepgbb17m&user=03522360960922298374&hash=tfhgbs86ka6divo3llbvp93mg4csvb38") no-repeat center/cover;
  border-radius: 10px;
  box-shadow: 5px 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* Toggle Checkbox */
#chk {
  display: none;
}

/* Login Form (Default Visible) */
.login {
  position: relative;
  width: 100%;
  height: 85%;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
  transition: all 0.8s ease-in-out;
}

/* Signup Form (Hidden by Default) */
.signup {
  position: relative;
  width: 100%;
  height: 100%;
  background:#5a0202;
  border-radius: 60% / 10%;
  transform: translateY(-180px);
  transition: all 0.8s ease-in-out;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Form Labels */
label {
  color: #860505;
  font-size: 2.3em;
  display: flex;
  justify-content: center;
  margin: 40px 0;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.signup label {
  color: #fff;
  transform: scale(0.6);
  margin: 50px 0;
}

/* Form Inputs */
input {
  width: 60%;
  height: 20px;
  background: #e0dede;
  margin: 15px auto;
  padding: 18px;
  border: none;
  outline: none;
  border-radius: 5px;
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 0.9em;
}

/* Form Buttons */
button {
  width: 60%;
  height: 40px;
  margin: 20px auto;
  color: #fff;
  background: #860505;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  transition: all 0.2s ease-in;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

button:hover {
  background: #6e0404;
  transform: translateY(-2px);
}

/* Forgot Password Link */
.remember-me {
  text-align: center;
font-size: 0.9em;
  margin-top: 10px;
}

.remember-me a {
  color: #860505;
  text-decoration: none;
  transition: all 0.2s ease;
}

.remember-me a:hover {
  text-decoration: underline;
}

/* OTP Verification Section */
.otpverification {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
  margin: 0 auto;
  gap: 10px;
}

#otpSignup {
  flex: 1;
  margin: 0;
}

#verifyOtpSignup {
  width: auto;
  margin: 0;
  padding: 0 15px;
}

/* Toggle Animation States */
#chk:checked ~ .signup {
  transform: translateY(-500px);
  border-radius: 0;
}

#chk:checked ~ .signup label {
  transform: scale(1);
  margin: 0px 0;
}

#chk:checked ~ .login label {
  transform: scale(0.6);
  margin: 50px 0;
}

/* Loading Spinner */
.button-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}


@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Notification Styles */
.toastify-success {
  background: #4caf50;
}

.toastify-error {
  background: #f44336;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .main {
    width: 90%;
  }

  input,
  button,
  .otpverification {
    width: 80%;
  }
}

@media screen and (max-width: 480px) {
  .main {
    width: 95%;
  }

  label {
    font-size: 1.8em;
    margin: 30px 0;
  }

  input,
  button {
    width: 85%;
    padding: 15px;
  }

  .otpverification {
    width: 85%;
    flex-direction: column;
    gap: 5px;
  }

  #verifyOtpSignup {
    width: 85%;
    margin-top: 5px;
  }

  #chk:checked ~ .signup {
    transform: translateY(-480px);
  }
}

/* Accessibility Focus Styles */
input:focus,
button:focus {
  outline: 2px solid #860505;
  outline-offset: 2px;
}

/* Disabled Button State */
button:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
}
/* Blinking animation */
@keyframes blinkRed {
  0% {
    color: red;
    opacity: 1;
  }
  50% {
    color: red;
    opacity: 0.3;
  }
  100% {
    color: red;
    opacity: 1;
  }
}

/* Apply blinking only to signup label */
.signup label {
  animation: blinkRed 1s infinite;
  color: red !important;
  transform: scale(1) !important;
  margin: 11px 0 !important;
}

/* Arrow styling */
.arrow-icon {
  transition: transform 0.3s ease;
  margin-left: 8px;
}

/* When signup is visible (i.e., #chk is checked), rotate the arrow UP */
#chk:checked ~ .signup .signup-toggle-label .arrow-icon {
  transform: rotate(180deg);
}
