:root {
  --primary-color: #74C842;
  --custom-black: #1d1d1d;
  --text-light: #ffffff;
  --font-family: "Roboto", sans-serif;
  --custom-gray: #919191;
}


* {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

.wrapper {
  position: relative;
  background-image: url("../../static/bottom-image.png");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-area {
  flex-grow: 1;
}

.register {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.register-text,
.register-form {
  display: flex;
}

.register-text {
  flex: 2 1 60%;
  flex-direction: column;
  padding-left: 75px;
  padding-right: 203px;
  padding-top: 7vw;
  padding-bottom: 17vw;
}

.right-content {
  flex: 1 1 40%;
  padding-right: 90px;
  padding-top: 5vw;
}

.header-text,
.body-text {
  margin-bottom: 20px;
}

.header-text h1 {
  font-family: "Roboto", sans-serif;
  font-size: 4.25vw;
  font-weight: 800;
  color: #80e01a;
}

.body-text p {
  font-size: 2vw;
  color: var(--custom-black);
}

.register-form {
  display: flex;
  flex-direction: column;
  background-color: var(--custom-black);
  padding: 25px 40px 40px 40px;
  border-radius: 40px;
}

.input-field {
  display: flex;
  flex-direction: column;
}

.label {
  font-size: 14px;
  color: white;
  margin-top: 15px;
  margin-bottom: 5px;
}

.label::after {
  content: " *";
  color: var(--primary-color);
}

.inp {
  border: none;
  border-bottom: 2px solid var(--custom-gray);
  background-color: var(--custom-black) !important;
  color: var(--text-light) !important;
  -webkit-text-fill-color: white !important;
  -webkit-box-shadow: 0 0 0 30px #1d1d1d inset;
  margin-top: 5px;
  padding-bottom: 9px;
  line-height: 22px;
  width: 100%;
}

input:focus {
  outline: none;
}
.error-message {
  color: red;
  display: none; /* Hidden by default */
}

.input-field.error .error-message {
  display: block; /* Show when there's an error */
}

 ::placeholder {
  -webkit-text-fill-color: gray !important;
  opacity: 1; 
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--custom-gray);
}

.password-container .inp {
  border: none;
}

.toggle-password {
  color: white;
  position: absolute;
  right: 10px;
  cursor: pointer;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-button {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  margin-top: 15px;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  position: relative;
  background-color: #73c742;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #5fac34;
  color: var(--text-light);
}

.redirect-login {
  color: var(--primary-color);
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
}

.forgot-password {
  color: var(--primary-color);
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
  text-decoration: none;
}

.forgot-password a {
  color: var(--primary-color);
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}


a {
  color: var(--primary-color);
}

/* .otp-form{
  display: flex;
  flex-direction: row;
  background-color: var(--custom-black);
  padding: 25px 40px 40px 40px;
  border-radius: 40px;
} */

.otp-form {
  background-color: var(--custom-black);
  padding: 25px 40px 40px 40px;
  border-radius: 40px;
}

.inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.input {
  background-color: #222;
  color: #fff;
  border: 2px solid #555;
  border-radius: 4px;
  text-align: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  transition: border-color 0.3s ease-in-out;
}

.input:focus {
  outline: none;
  border-color: var(--primary-color);
}

h1 {
  color: var(--primary-color);
  margin-bottom: 1vw;
}

h4 {
  color: #fff;
  margin-bottom: 1vw;
}

.email-sent-notice {
  font-size: 14px;
  color: var(--custom-gray);
  text-align: center;
  margin-top: 5px;
  margin-bottom: 5px;
}

.email-id {
  color: var(--primary-color);
  font-weight: bold;
}

#otp-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--custom-black);
  color: var(--text-light);
  font-family: var(--font-family);
  padding-top: 10px;
}

#otp-text {
  color: var(--custom-gray);
  margin-bottom: 5px;
  font-size: 14px;
  text-align: center;
}

.resend-otp {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#timer {
  font-size: 12px;
  color: var(--custom-gray);
}

#resendButton {
  background: none;
  border: none;
  color: var(--primary-color);
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-family);
  text-decoration: none;
  font-size: 12px;
}

#resendButton:disabled {
  color: var(--custom-gray);
  cursor: not-allowed;
  text-decoration: none;
}

#resendButton:not(:disabled):hover,
#resendButton:not(:disabled):focus {
  text-decoration: none;
}

.error-toast,
.success-toast, 
.warning-toast {
  position: fixed;
  bottom: 12px;
  right: 32px;
  z-index: 9999;
  color: #fff;
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: growIn 0.5s ease-out, fadeOut 5s 4.5s forwards;
  display: flex;
  align-items: center;
}

.error-toast {
  background-color: #f34747;
  /* Red for error */
}

.warning-toast {
  background-color: #9aa51e;
  /* Red for error */
}

.success-toast {
  background-color: #58f347;
  /* Green for success */
}

@keyframes growIn {
  from {
    transform: translateY(100%) scale(0.5);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    display: none;
  }
}