@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; /* Declare the range of weights */
  font-style: normal; /* Declare the font style */
}
body {
  font-family: Outfit !important;
  font-weight: 500; /* Regular weight */
  font-size: 20px;
  background-color: #f2f1f1;
}
a {
  color: #ec1e24 !important ;
  text-decoration: none !important;
}

.main-container {
  margin-top: 10vh;
}

@media screen and (min-width: 768px) and (max-height: 850px) {
  .main-container {
    margin: 0px;
  }

  .main-container .left-side-image {
    height: 99svh;
    float: right;
  }

  .main-container .login-box .close-icon {
    top: 0px;
  }
}

@media screen and (max-width: 768px) {
  .main-container {
    margin-block: 10vh;
  }
  .main-container .login-box {
    height: auto !important;
  }
  .main-container .login-area {
    margin: 0px;
  }
  .main-container .login-box .close-icon {
    right: 0px;
    top: 0px;
  }
}

.left-side-image {
  max-width: 100%;
  padding: 8px;
  opacity: 0;
  animation: slideFromLeft 1s cubic-bezier(0.25, 1, 0.5, 1.1) 0.3s forwards;
}

.login-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.login-box {
  /* min-width: 430px; */
  height: 645px;
  position: relative;
  flex-grow: 0.5;
}

.login-box .title {
  font-family: "Outfit";
  font-size: 48px;
  font-weight: 500;
  line-height: 48px;
  opacity: 0;
  animation: slideFromRight 1s cubic-bezier(0.25, 1, 0.5, 1.1) 0.3s forwards;
}

.login-box .title span {
  color: #ec1e24;
}

.signup-form {
  margin-top: 40px;
  opacity: 0;
  animation: slideFromBottom 0.7s ease-out 0.3s forwards;
}

.signup-form .form-control {
  background-color: #f5f7fa;
  border: 2px solid transparent;
  height: 48px;
  border-radius: 8px;
  transition: all 0.5s ease-in-out;
  position: relative;
}

.signup-form .form-group {
  margin-block: 5px;
  position: relative;
}

.form-group::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ec1e24;
  transition: width 0.4s ease;
  z-index: 2;
}

.signup-form .form-control:hover {
  background-color: #f8f9fa;
  border-color: rgba(236, 30, 36, 0.08);
}

.signup-form .form-control:focus {
  outline: none;
  box-shadow: none;
  border-color: rgba(236, 30, 36, 0.8); /* Reduced color intensity */
  background-color: #ffffff;
}

.signup-form .form-control:focus-visible {
  outline: none;
}

.signup-form label {
  padding: 10px 0px;
  color: #121212;
  transition: color 0.5s ease;
}

.signup-form .form-control::placeholder {
  color: #6b6b6b !important;
  opacity: 1;
  font-size: 14px;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.signup-form .form-control:focus::placeholder {
  opacity: 0.5;
}

.form-group:focus-within label {
  color: rgba(236, 30, 36, 0.8);
}

.signup-form input {
  background-color: #f5f7fa;
  border: 0;
  height: 48px;
}

::placeholder {
  color: #6b6b6b !important;
  opacity: 1; /* Firefox */
  font-size: 14px;
  font-weight: 400;
}

.remember-group {
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.remember-group input[type="checkbox"] {
  accent-color: #ec1e24;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
}

.remember-group:hover {
  cursor: pointer;
}

.remember-forgot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  align-content: stretch;
  justify-content: space-between;
}

.forgot-link {
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: color 0.3s ease;
}

.forgot-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #ec1e24;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1.3);
}

.forgot-link:hover::after {
  width: 100%;
}

.primary-btn {
  width: 100%;
  margin-top: 22px;
  background-color: #ec1e24;
  border: 0;
  height: 48px;
  border-radius: 12px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(236, 30, 36, 0.3);
}

.primary-btn:hover::before {
  left: 100%;
}

.primary-btn:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 2px 10px rgba(236, 30, 36, 0.2);
}

.signin-row {
  margin-top: 4vh;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.signin-row a {
  position: relative;
}

.signin-row a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #ec1e24;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1.3);
}

.signin-row a:hover::after {
  width: 100%;
}

.password-box {
  position: relative;
}

.password-box img {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .left-side-image {
    display: none;
  }
  .login-area {
    margin-top: 100px;
  }
}

.close-icon {
  position: absolute;
  right: -100px;
  top: -100px;
  cursor: pointer;
  transition: transform 0.8s ease-in-out;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.close-icon:hover {
  transform: scale(1.2) rotate(180deg);
}

/* @media only screen and (min-width: 767px) and (max-width: 1300px) {
  .close-icon {
    position: absolute;
    right: 50px;
    top: 10px;
  }
} */
