* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

:root {
  --primary-color: #00bf63;
}

header {
  padding: 10px;
  border-bottom: 1px solid #dfdfdf;
  /* box-shadow: 0 0 5px 1px #f0f0f0; */
  position: fixed;
  top: 0;
  width: 100vw;
  background-color: white;
  height: 70px;
  z-index: 1400;
}

/* header img {
  height: 50px;
  margin-left: 20px;
} */

@media (max-width: 768px) {
  header {
    display: flex;
    justify-content: center;
  }
  header img.ms-5.ps-2 {
    margin-left: 0px !important;
    padding-left: 0 !important;
  }

  .login-container ~ div {
    display: block !important;
  }
}

.login-container {
  margin-top: 70px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;

  padding: 20px;
  height: 100%;
}

.form-container {
  flex: 1;
  padding: 2rem;
  margin: 0 3rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: solid #bbb 1px;
  min-height: 70vh;
}

.login-container label {
  font-weight: bold;
  font-size: 13px;
}

.image-container {
  flex: 1;
  background: url("../login.jpg") no-repeat;
  background-position: top;
  background-size: cover;
  border-radius: 10px;
  min-height: 85vh;
}

.my-form > div {
  margin-bottom: 10px;
}

.form-container h2 {
  font-weight: 700;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border: none;
}

.btn-primary:hover {
  background-color: black !important;
  opacity: 0.9;
  transition: background ease-in-out 0.2s;
}

::placeholder {
  color: #bbb !important;
}

@media (max-width: 768px) {
  .image-container {
    display: none;
  }

  .login-container {
    background: url("../mobile-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: block;
    flex-direction: column;
    padding: 3rem 0.5rem;
    border-radius: 0;
    padding-bottom: 2rem !important;
  }

  .form-container {
    padding: 1rem 0.5rem;
    margin: 0;
    background-color: white;
    border-radius: 20px;
    margin-bottom: 1rem !important;
  }

  .form-container h2 {
    margin-bottom: 0.3rem;
  }
  .form-container p {
    margin-top: 0;
    font-weight: bold;
  }
}

/* VERIFY EMAIL PAGE */

.mybox-container {
  flex: 1;
  padding: 2rem;
  margin: 0 3rem;
  border-radius: 10px;
  /* border: solid #bbb 1px; */
  min-height: 70vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.verifybox {
  width: 100%;
  max-width: 450px;
  padding: 1rem;
  border-radius: 10px;
  border: solid #bbb 1px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background-color: #fff;

  /* This ensures it expands with content but stays centered */
  max-height: fit-content;
}

.verifybox > i {
  height: 40px;
  width: 40px;
  background-color: #e9e9e9;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.otp-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.otp-input {
  width: 40px;
  height: 45px;
  text-align: center;
  font-size: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.otp-input:focus {
  border-color: #00bf63;
  box-shadow: 0 0 0 2px rgba(0, 191, 99, 0.2);
}

@media (max-width: 768px) {
  .form-container {
    padding: 1rem 0.5rem;
    margin: 0;
    background-color: white;
    border-radius: 20px;
    margin-bottom: 1rem !important;
  }

  .mybox-container {
    flex: 1;
    padding: 2rem;
    margin: 0 3rem;
    border-radius: 10px;
    /* border: solid #bbb 1px; */
    min-height: 70vh;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin: auto;
  }
}

@media (max-width: 576px) {
  .otp-input {
    width: 40px;
    height: 40px;
  }

  .otp-container {
    gap: 8px;
  }
}

/* //LOGIN PAGE */

.login-small .small:hover {
  color: var(--primary-color) !important;
}

/* TOASE STYLES */

.toast {
  color: #fff;
  padding: 12px 16px;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-bottom: 10px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative; /* Necessary for the line positioning */
}

.toast i {
  font-size: 16px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.show::after {
  content: "";
  position: absolute;
  bottom: 0; /* Position at the bottom of the toast */
  left: 0;
  width: 100%;
  height: 3px; /* Thickness of the line */
  background-color: rgba(255, 255, 255, 0.884);
  animation: lineAnimation 5s linear; /* Duration of line animation */
}

@keyframes lineAnimation {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.toast-success {
  background-color: #28a745;
  color: white;
}

.toast-danger {
  background-color: #dc3545;
  color: white;
}

.toast-info {
  background-color: #17a2b8;
  color: white;
}

.toast-warning {
  background-color: #ffc107;
  color: white;
}
