* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--background);
}

.login-wrapper {
  width: 1000px;
  /* 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-tabs {
  background-color: transparent;
  color: #a30e0e;
  border: 1px dashed #a30e0e;
  padding: 4px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  /* text-transform: uppercase; */
  margin: auto;
  font-size: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  /* text-decoration: underline; */
}

.login-tabs svg {
  width: 16px;
  height: 16px;
}
.login-tabs:hover {
  color: #a30e0e;
  background-color: #e8b5b57a;
  transform: translateX(-3px);
}

.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;
  background: linear-gradient(135deg, #343a40, #dc261b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.9px;
}

.login-header p {
  color: #6c757d;
  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: #a30e0e;
  color: #fff;
  border: 2px solid #c00000;
  padding: 14px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(192, 0, 0, 0.3);
}

.login-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.15);
  transition: width 0.3s ease;
}

.login-button:hover {
  background-color: #a00000;
  border-color: #a00000;
  box-shadow: 0 6px 12px rgba(160, 0, 0, 0.4);
}

.login-button:hover::after {
  width: 100%;
}

.login-button:active {
  transform: translateY(2px);
}

.login-button:disabled {
  background-color: #e0e0e0;
  border-color: #c0c0c0;
  color: #888;
  box-shadow: none;
}

.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; */
    width: 100%;
    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 {
    align-items: center;
    background: url("../images/Login-page-image-2.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    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 #e9e9e9;
    border-radius: 26px;
    box-shadow: 0px 2px 15px -10px rgb(0 0 0);
    background: rgb(255 255 255 / 26%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
  }

  .login-logo-sm {
    display: block;
  }
}

@media (max-width: 450px) {
  .login-container {
    background: var(--secondBackground);
  }

  .login-right-side {
    border: none;
    box-shadow: 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;
}

.login-modal h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 200;
  margin-bottom: 24px;
  color: var(--onTertiary);
}

.login-modal .modal-login-form-contols {
  position: relative;
  margin-bottom: 28px;
  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;
}

:root {
  --background: #f5f5f5;

  --secondBackground: #ffffff;
  --secondBackground-rgb: 255, 255, 255;
  --secondBackgroundDisabled: #ebebeb;
  --onSecondBackground: #2b484f;
  --secondBackgroundHover: #f1f5f9;
  --onSecondBackgroundHover: #35565d;
  --secondBackgroundShadow: rgba(0, 0, 0, 0.1);

  --primary: #3e6770;
  --onPrimary: #ffffff;
  --primaryHover: #35575f;
  --onPrimaryHover: #f1f5f9;
  --primaryDisabled: #a0b3b7;
  --onPrimaryDisabled: #e0e0e0;

  --secondary: #90b5a5;
  --onSecondary: #ffffff;
  --secondaryActive: #3e6770;
  --secondaryInactive: #ffffff;
  --secondaryHover: #6d9989;
  --onSecondaryHover: #ffffff;

  --tertiary: #e1e8ea;
  --tertiaryActive: #cfd8db;
  --onTertiary: #3e6770;
  --tertiaryHover: #eef2f3;
  --onTertiaryHover: #2e4f56;

  --accent: #3b82f6;
  --onAccent: #ffffff;

  --border: #e9e9e9;

  --error: #ff5630;
  --errorOn: #ffe8e0;
  --errorHover: #e0431e;
  --errorOnHover: #ffd6c7;

  --success: #36b37e;
  --successOn: #e3fcef;

  --warning: #f97316;
  --warningOn: #fff7ed;
  --warningHover: #ea580c;
  --warningOnHover: #fed7aa;

  --pending: #f59e0b;
  --pendingOn: #fef3c7;
  --pendingHover: #d97706;
  --pendingOnHover: #fde68a;

  --placeholder: #94a3b8;
  --placeholderHover: #64748b;

  --shimmer-bg: #f6f7f8;
  --shimmer-skeleton: #e2e5e7;
  --shimmer-highlight: rgba(255, 255, 255, 0.6);

  --footer-bg: #333;
  --footer-color: #fff;
}

.login-left-side {
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.login-left-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1;
}

.circular-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.circular-background {
  position: relative;
  width: 280px;
  height: 280px;
  background: linear-gradient(150deg, #dccbcb, #ee5a52);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.car-image {
  width: 24rem;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}
