* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100vh;
}

/* ===== Container Layout ===== */
.login-form-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #ffffff;
  position: relative;
  transition: transform 0.8s ease-in-out;
}

.login-info,
.form-wrapper {
  width: 50%;
  transition: transform 0.8s ease-in-out;
  position: relative;
  height: 100%;
}

/* Slide panels when signup mode is active */
.signup-mode .form-wrapper {
  transform: translateX(100%);
}

.signup-mode .login-info {
  transform: translateX(-100%);
}

/* Reset panels in login mode */
.login-form-container:not(.signup-mode) .form-wrapper {
  transform: translateX(0);
}

.login-form-container:not(.signup-mode) .login-info {
  transform: translateX(0);
}

/* ===== Forms (fade only) ===== */
.form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.form-box {
  width: 100%;
  max-width: 600px;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s; /* fade with delay */
  pointer-events: none; /* disable hidden form */
}

/* Show login by default */
.login-box {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s; /* no delay initially */
}

/* Show signup when in signup mode */
.signup-mode .form-box.signup-box {
  opacity: 1;
  pointer-events: auto;
}

/* Hide login when signup is active */
.signup-mode .login-box {
  opacity: 0;
  pointer-events: none;
}

/* ===== Logo ===== */
.motorlytix-logo {
  position: absolute;
  top: 50px;
  left: 32px;
}

/* ===== Login Form Inner (Fixed) ===== */
.form-box .login-form, .form-box .signup-box {
  width: 100%;
  max-width: 500px;
  padding: 0;           /* use form-box padding instead */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;       /* center inside form-box */
}

.form-box .login-form h2 {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  text-align: center;
}

.form-box .login-form .login-description, .signup-box p {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  color: #595959;
  margin-bottom: 20px;
}

/* ===== Form Groups ===== */
.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 16px;
  color: #000;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.user_name {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

/* ===== Error Styling ===== */
.form-group.has-error input {
  border-color: #ff4d4f;
}

.form-group.has-error .error-message {
  color: #ff4d4f;
  font-size: 14px;
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.form-group.has-error .error-message a {
  color: #000;
  text-decoration: underline;
}

/* ===== Actions & Links ===== */
.form-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.remember-me input[type="checkbox"] {
  margin-right: 5px;
}

.forgot-password {
  color: #1971d4;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background-color: #1971d4;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.register-link {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  color: #8c8c8c;
}

.register-link a {
  color: #1971d4;
  text-decoration: none;
  font-size: 14px;
}

/* ===== Info (Right Side) ===== */
.login-info {
  flex: 1;
  background: url("../images/login-side.png") no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: white;
}

/* ===== Footer ===== */
.login-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;        /* span across form-wrapper */
  width: 100%;     /* full width of form-wrapper */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  box-sizing: border-box;
}

.login-footer span {
  font-size: 14px;
  color: #8C8C8C;
}

.contact-info {
  display: flex;
  align-items: center;
  color: #8c8c8c;
}

.contact-info i {
  margin-right: 8px;
  font-size: 14px;
}

.contact-info a {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.contact-info a:hover {
  color: #555;
}

.forgot-password-icon{
    width:100%;
    display: grid;
    place-items:center;
}/* ===== Quotes / Carousel ===== */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin-bottom: 0;
  overflow: hidden;
}

.carousel {
  min-height: max-content;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.quote-container {
  display: none;
  background-color: #FFFFFF33;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.quote-container.active {
  display: block;
}

.quote-container blockquote {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  margin: 0;
}

.quote-container p {
  display: block;
  margin-top: 40px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 1);
}

.quote-container .name {
  font-size: 24px;
  font-weight: 500;
}

.prev, .next {
  position: fixed;
  width: 24px;
  top: 90%;
  transform: translateY(-50%);
  color: white;
  border: none;
  padding: 20px 40px 0 0;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  border-radius: 50%;
}

.prev {
  right: 100px;
}

.next {
  right: 65px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .login-form-container {
    flex-direction: column;
  }

  .login-info {
    order: -1;
    width: 100%;
    background-size: cover;
  }

  .form-wrapper {
    width: 100%;
  }

  .form-box .login-form {
    padding: 30px;
    width: 100%;
  }

  .login-footer {
    width: 100%;
    position: relative;
    justify-content: center;
  }
}
