* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--background);
}

.login-wrapper {
  width: 1200px;
  /* height: 700px; */
  margin: 1rem;
  /* padding: 3rem; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  background-color: white;
  overflow: hidden;
  animation: slideIn 0.7s ease-out forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-left-side {
  height: 100%;
  background: linear-gradient(
    136deg,
    rgba(187, 168, 150, 1) 0%,
    rgba(187, 168, 150, 1) 6.667%,
    rgba(173, 164, 149, 1) 6.667%,
    rgba(173, 164, 149, 1) 13.333%,
    rgba(158, 158, 146, 1) 13.333%,
    rgba(158, 158, 146, 1) 20%,
    rgba(142, 151, 142, 1) 20%,
    rgba(142, 151, 142, 1) 26.667%,
    rgba(127, 143, 137, 1) 26.667%,
    rgba(127, 143, 137, 1) 33.333%,
    rgba(112, 135, 131, 1) 33.333%,
    rgba(112, 135, 131, 1) 40%,
    rgba(100, 126, 125, 1) 40%,
    rgba(100, 126, 125, 1) 46.667%,
    rgba(89, 116, 117, 1) 46.667%,
    rgba(89, 116, 117, 1) 53.333%,
    rgba(82, 107, 109, 1) 53.333%,
    rgba(82, 107, 109, 1) 60%,
    rgba(78, 97, 101, 1) 60%,
    rgba(78, 97, 101, 1) 66.667%,
    rgba(78, 88, 91, 1) 66.667%,
    rgba(78, 88, 91, 1) 73.333%,
    rgba(81, 79, 82, 1) 73.333%,
    rgba(81, 79, 82, 1) 80%,
    rgba(87, 71, 72, 1) 80%,
    rgba(87, 71, 72, 1) 86.667%,
    rgba(97, 64, 61, 1) 86.667%,
    rgba(97, 64, 61, 1) 93.333%,
    rgba(109, 58, 51, 1) 93.333% 100%
  );
  color: white;
  overflow: hidden;
  /* border-radius: 24px; */
}

.login-left-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  z-index: 1;
  align-items: center;
}

.login-left-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  text-align: center;
}

.login-left-content p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 320px;
  text-align: center;
  margin-bottom: 6rem;
}
.login-left-sub-content {
  display: flex;
  gap: 30px;
}
.login-left-sub-content-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.login-left-sub-content-item svg {
  width: 25px;
  height: 25px;
}
.login-left-sub-content-item span {
  font-size: 12px;
}

.login-tabs {
  background-color: transparent;
  color: var(--primary);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  /* text-transform: uppercase; */
  margin: auto;
  font-size: 14px;
  margin-bottom: 8px;
  /* text-decoration: underline; */
}

.login-tabs-partition {
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
}

.login-tabs-partition span {
  position: relative;
  z-index: 1;
  background-color: #fff;
  width: 30px;
}

.login-tabs-partition::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--primary);
  left: 0;
  top: 50%;
}

.login-right-side {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 2rem 3rem 2rem 6rem;
  position: relative;
}

.login-logo {
  width: 80px;
  height: auto;
  margin: 0 auto 2rem auto;
}

.login-logo img {
  height: auto;
  width: 100%;
}

.login-header {
  margin-bottom: 2rem;
}

.login-header h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 4px;
  font-weight: 400;
  letter-spacing: 0.9px;
}

.login-header p {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0;
}

.login-form-group {
  padding-bottom: 22px;
  position: relative;
  margin-bottom: 8px;
}

.login-form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 16px;
  width: 22px;
  height: 22px;
  display: flex;
}

.login-input-icon svg {
  fill: #64748b;
  width: 20px;
  height: 20px;
  margin: auto;
}

.login-password-show {
  position: absolute;
  right: 16px;
  fill: #06283d;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.login-form-group input {
  width: 100%;
  padding: 12px 12px 12px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
  -webkit-text-fill-color: #333 !important;
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

.login-form-group input:focus {
  border-color: #06283d;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(19, 99, 223, 0.1);
  outline: none;
}

/* otp  */
.login-input-otp {
  display: flex;
  gap: 4px;
}

.login-input-otp input {
  width: 100%;
  padding: 12px 12px 12px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
  text-align: center;
}

.login-input-otp input:focus {
  border-color: #06283d;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(19, 99, 223, 0.1);
  outline: none;
}

/* required */
.login-required {
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  color: #ff5630;
  font-size: 12px;
  font-weight: 500;
}

.login-button {
  background-color: var(--primary);
  color: var(--onPrimary);
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.login-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
}

.login-button:hover::after {
  width: 100%;
}

.login-button:active {
  transform: translateY(2px);
}

.login-button:disabled {
  background-color: var(--primaryDisabled);
  color: var(--onPrimaryDisabled);
}

.login-request {
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 0.8rem;
  position: absolute;
  bottom: 0;
  left: 0;
}

.login-version {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

.login-logo-sm {
  width: 80px;
  height: auto;
  margin: 0 auto 2rem auto;
  display: none;
}

.login-logo-sm img {
  height: auto;
  width: 100%;
}

/* loader animation */
.login-loader {
  position: relative;
}

.login-loader::before {
  content: "";
  position: absolute;
  bottom: 0;
  height: 5px;
  width: 50%;
  background: linear-gradient(90deg, #00c6ff, #0072ff, #00c6ff);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
  0% {
    left: -50%;
    background-position: 0% 0;
  }
  100% {
    left: 100%;
    background-position: 200% 0;
  }
}

/* Container sliding in from left */
.login-bottom-to-top-animation {
  animation: loginBottomToTopAnimation 0.2s ease-out 0.2s both;
}

/* Keyframes for left slide-in */
@keyframes loginBottomToTopAnimation {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* media querry */

@media (max-width: 1200px) {
  .login-container {
    align-items: normal;
  }

  .login-wrapper {
    box-shadow: none;
    /* min-height: 700px; */
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }
}
@media (max-width: 1050px) {
  .login-right-side {
    padding: 1rem 2rem 1rem 3rem;
  }
}

@media (max-width: 820px) {
  .login-container {
    background: linear-gradient(
      136deg,
      rgba(187, 168, 150, 1) 0%,
      rgba(187, 168, 150, 1) 6.667%,
      rgba(173, 164, 149, 1) 6.667%,
      rgba(173, 164, 149, 1) 13.333%,
      rgba(158, 158, 146, 1) 13.333%,
      rgba(158, 158, 146, 1) 20%,
      rgba(142, 151, 142, 1) 20%,
      rgba(142, 151, 142, 1) 26.667%,
      rgba(127, 143, 137, 1) 26.667%,
      rgba(127, 143, 137, 1) 33.333%,
      rgba(112, 135, 131, 1) 33.333%,
      rgba(112, 135, 131, 1) 40%,
      rgba(100, 126, 125, 1) 40%,
      rgba(100, 126, 125, 1) 46.667%,
      rgba(89, 116, 117, 1) 46.667%,
      rgba(89, 116, 117, 1) 53.333%,
      rgba(82, 107, 109, 1) 53.333%,
      rgba(82, 107, 109, 1) 60%,
      rgba(78, 97, 101, 1) 60%,
      rgba(78, 97, 101, 1) 66.667%,
      rgba(78, 88, 91, 1) 66.667%,
      rgba(78, 88, 91, 1) 73.333%,
      rgba(81, 79, 82, 1) 73.333%,
      rgba(81, 79, 82, 1) 80%,
      rgba(87, 71, 72, 1) 80%,
      rgba(87, 71, 72, 1) 86.667%,
      rgba(97, 64, 61, 1) 86.667%,
      rgba(97, 64, 61, 1) 93.333%,
      rgba(109, 58, 51, 1) 93.333% 100%
    );
    align-items: center;
  }

  .login-wrapper {
    grid-template-columns: 1fr;
    min-height: 600px;
    height: auto;
    max-width: 500px;
    background-color: transparent;
    padding: 3rem;
  }

  .login-left-side {
    display: none;
  }

  .login-header {
    display: none;
  }

  .login-mobile-logo {
    display: flex;
  }

  .login-right-side {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background-color: var(--secondBackground);
  }

  .login-logo-sm {
    display: block;
  }
}

@media (max-width: 450px) {
  .login-container {
    background: var(--secondBackground);
  }

  .login-right-side {
    border: none;
  }

  .login-wrapper {
    padding: 0;
  }
}

/* Login Modal   */

.login-modal {
  max-width: 400px !important; /* or any custom width */
  width: 100% !important;
}

.login-modal .modal-content {
  background-color: var(--secondBackground);
}

.login-modal .modal-body {
  padding: 4rem 3rem;
}

.modal-login-logo {
  width: 60px;
  height: auto;
  margin: 0 auto 2rem auto;
}

.modal-login-logo img {
  height: auto;
  width: 100%;
}

.login-modal h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 200;
  margin-bottom: 24px;
  color: var(--onTertiary);
}

.modal-login-form-contols-container {
  position: relative;
  margin-bottom: 28px;
}

.login-modal .modal-login-form-contols {
  position: relative;
  display: flex;
}

.login-modal .modal-login-form-contols .icon {
  position: absolute;
  display: flex;
  height: 100%;
  margin-left: 8px;
}

.login-modal .modal-login-form-contols .icon svg {
  width: 22px;
  height: 22px;
  margin: auto 0;
  fill: var(--onTertiary);
}

.login-modal input {
  border: none;
  border-bottom: 1px solid var(--primary);
  border-radius: 0px;
  padding: 12px 12px 12px 40px;
  font-size: 16px;
  background-color: transparent;
  color: var(--onTertiary);
}

.login-modal input::placeholder {
  color: var(--placeholder);
}

.login-modal input:focus {
  border: none;
  border-bottom: 1px solid var(--primary);
  color: var(--onTertiary);
  background-color: transparent;
  box-shadow: none;
}

.login-modal button {
  background-color: var(--primary);
  color: var(--onPrimary);
  border: none;
  width: 100%;
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
}

/* Login modal show animation  */
@keyframes loginModalShow {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-modal-trasition.modal.fade.show {
  animation: loginModalShow 0.3s ease-out;
}

.login-modal-required {
  position: absolute;
  top: 100%;
  display: flex;
  justify-content: center;
  width: 100%;
  color: #ff5630;
  font-size: 12px;
  font-weight: 500;
}
