.login {
  background-color: #f5fff7;
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: stretch;
}

@media (max-width: 992px) {
  .login {
    background: linear-gradient(
      186deg,
      rgba(15, 161, 42, 0.08) 0%,
      rgba(12, 85, 26, 0.08) 100%
    );
  }
}

.login__hero {
  position: relative;
  flex: 0 0 45%;
  max-width: 520px;
  min-height: 100vh;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 992px) {
  .login__hero {
    display: none;
  }
}

.login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    186deg,
    rgba(15, 161, 42, 0.9) 0%,
    rgba(12, 85, 26, 0.9) 100%
  );
  opacity: 0.61;
}

.login__container {
  position: relative;
  flex: 1;
  min-height: 100vh;
  background-color: #fbfbfb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .login__container {
    width: 100%;
    min-height: 100vh;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .login__card {
    max-width: 100%;
  }

  .login__form-group {
    margin-bottom: 24px;
  }

  .login__card {
    width: 100%;
    max-width: 400px;
  }

  .login__input {
    width: 100%;
    height: 48px;
  }

  .password-container {
    width: 100%;
  }

  .login__actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .login__button {
    width: 100%;
  }

  .login__title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 16px;
  }

  .login__subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .login__header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .login__form-group {
    margin-bottom: 16px;
  }

  .login__label {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .login__button-text {
    font-size: 18px;
  }
}

.login__card {
  position: relative;
  width: 100%;
  height: 100%;
}

.login__header {
  position: relative;
  margin-bottom: 72px;
}

.login__title {
  font-family: "Roboto-Regular", Helvetica;
  font-weight: 400;
  color: transparent;
  font-size: 36px;
  letter-spacing: 0.50px;
  line-height: 50px;
  margin: 0 0 72px 0;
}

.login__title-welcome {
  color: #000000;
  letter-spacing: 0.18px;
}

.login__title-brand {
  font-family: "Roboto-Bold", Helvetica;
  font-weight: 700;
  color: #0ea129;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.login__nav {
  position: absolute;
  top: 0;
  right: 0;
}

@media (max-width: 768px) {
  .login__nav {
    position: relative;
    margin-top: 20px;
    text-align: center;
    width: 100%;
  }

  .login__title {
    text-align: center;
  }

  .login__signup-link {
    justify-content: center;
    display: flex;
    gap: 4px;
  }
}

.login__signup-link {
  font-family: "Roboto-Regular", Helvetica;
  font-weight: 400;
  color: transparent;
  font-size: 20px;
  letter-spacing: 0.50px;
  line-height: 24px;
  white-space: nowrap;
  margin: 0;
}

.login__signup-text {
  color: #000000;
  letter-spacing: 0.10px;
}

.login__signup-space {
  color: #0ea129;
  letter-spacing: 0.10px;
}

.login__signup-action {
  font-family: "Roboto-Medium", Helvetica;
  font-weight: 500;
  color: #0ea129;
  letter-spacing: 0.10px;
  text-decoration: none;
  cursor: pointer;
}

.login__signup-action:hover {
  text-decoration: underline;
}

.login__signup-action:focus {
  outline: 2px solid #0ea129;
  outline-offset: 2px;
}

.login__subtitle {
  font-family: "Roboto-Regular", Helvetica;
  font-weight: 400;
  color: #414141;
  font-size: 20px;
  letter-spacing: 0.50px;
  line-height: 24px;
  white-space: nowrap;
  margin: 0 0 48px 0;
}

.login__form {
  margin-bottom: 84px;
}

.login__form-group {
  margin-bottom: 32px;
  position: relative;
}

.login__label {
  display: block;
  font-family: "Roboto-Regular", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: 16px;
  letter-spacing: 0.50px;
  line-height: 24px;
  white-space: nowrap;
  margin-bottom: 10px;
}

.login__input {
  width: 396px;
  height: 70px;
  background-color: #ffffff;
  border-radius: 14px;
  border: 2px solid #ededec;
  padding: 0 20px;
  font-family: "Roboto-Regular", Helvetica;
  font-size: 16px;
  color: #000000;
  transition: border-color 0.2s ease;
}

.login__input:focus {
  outline: none;
  border-color: #0ea129;
}

.login__input:hover {
  border-color: #d0d0d0;
}

.login__input::placeholder {
  color: #999999;
}

.login__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.login__button {
  font-family: "Roboto-Regular", Helvetica;
  font-size: 20px;
  letter-spacing: 0.50px;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

.login__button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #0ea129;
  border-radius: 18px;
  color: #ffffff;
}

.login__button--primary:hover {
  background-color: #0c8a22;
}

.login__button--primary:active {
  background-color: #0a7a1e;
}

.login__button--primary:focus {
  outline: 2px solid #0ea129;
  outline-offset: 2px;
}

.login__button-text {
  font-family: "Roboto-SemiBold", Helvetica;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.50px;
  line-height: 24px;
}

.login__button--secondary {
  font-weight: 400;
  color: #000000;
  padding: 12px 16px;
}

.login__button--secondary:hover {
  color: #0ea129;
}

.login__button--secondary:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
  border-radius: 4px;
}

.login__footer {
  margin-top: 0;
}

.login__signup-link-bottom {
  font-family: "Roboto-Regular", Helvetica;
  font-weight: 400;
  color: transparent;
  font-size: 20px;
  letter-spacing: 0.50px;
  line-height: 24px;
  white-space: nowrap;
  margin: 0;
}

.login__signup-text-bottom {
  color: #000000;
  letter-spacing: 0.10px;
}

#help-text {
  color: red;
  font-size: 14px;
  margin-top: 4px;
}
.password-container {
    position: relative;
    width: 396px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #0ea129;
}

.toggle-password:focus {
    outline: none;
    color: #0ea129;
}

.signin_cancel_button {
  font-family: "Roboto-Regular", Helvetica;
  font-size: 20px;
  letter-spacing: 0.50px;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

.signin_cancel_button {
  font-weight: 400;
  color: red;
  padding: 12px 16px;
}

.signin_cancel_button:hover {
  color: #0ea129;
}

.signin_cancel_button:focus {
  outline: 5px solid red;
  outline-offset: 2px;
  border-radius: 4px;
}

            
.login__form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login__input {
    transition: border-color 0.3s ease;
}

.login__input.error {
    border-color: #dc3545;
}

.login__input.success {
    border-color: #198754;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
    position: absolute;
    bottom: -20px;
    left: 0;
}

.field-error.visible {
    display: block;
}

.login__button--primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background-color: #6c757d;
}

.login__forgot-password {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: #0ea129;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.login__forgot-password:hover {
    text-decoration: underline;
    color: #0d8b24;
}

.login__forgot-password:focus {
    outline: 2px solid #0ea129;
    outline-offset: 2px;
    border-radius: 4px;
    padding: 2px 4px;
}

.login__separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #666;
  margin: 24px 0;
  font-family: "Roboto-Regular", Helvetica;
  font-size: 14px;
  width: 396px; /* Match input width */
}

.login__separator::before,
.login__separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.login__separator::before {
  margin-right: 10px;
}

.login__separator::after {
  margin-left: 10px;
}

.login__button--google,
.login__button--otp {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 40px; /* Pill shape */
  color: #3c4043;
  font-family: "Roboto", arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  padding: 0 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  width: 100%; 
  max-width: 396px; /* Match input width */
}

.login__button--google:hover,
.login__button--otp:hover {
  background-color: #f7f8f8;
  border-color: #d2e3fc;
}

.login__button--google img,
.login__button--otp img,
.login__button--otp i {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}