* {
    box-sizing: border-box;
  }

  body {
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
  }

  .container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 850px;
    max-width: 100%;
    min-height: 520px;
    transition: all 0.3s ease-in-out;
  }

  .form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    text-align: center;
    width: 50%;
  }

  .sign-in-container {
    left: 0;
    z-index: 2;
  }

  .sign-up-container {
    left: 0;
    opacity: 0;
    z-index: 1;
  }

  .container.right-panel-active .sign-in-container {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
  }

  .container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
  }

  form {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .logo {
    width: 60px;
    margin-bottom: 20px;
  }

  input {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 14px 16px;
    margin: 10px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.3s;
  }

  input:focus {
    border-color: #6a11cb;
    outline: none;
    background: #fff;
  }

  button {
    border: none;
    padding: 14px 40px;
    background-color: #6a11cb;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 30px;
    margin-top: 12px;
    box-shadow: 0 4px 14px rgba(106, 17, 203, 0.3);
    transition: background-color 0.3s, transform 0.2s;
  }

  button:hover {
    background-color: #5b0eb2;
    transform: translateY(-1px);
  }

  button.ghost {
    background-color: transparent;
    border: 2px solid white;
    color: white;
  }

  .overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
  }

  .overlay {
    background: linear-gradient(135deg, #6a11cb, #72a1f1);
    color: white;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container.right-panel-active .overlay-container {
    transform: translateX(-100%);
  }

  .container.right-panel-active .overlay {
    transform: translateX(50%);
  }

  .overlay-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transition: transform 0.6s ease-in-out;
  }

  .overlay-left {
    transform: translateX(-20%);
    left: 0;
  }

  .overlay-right {
    right: 0;
    transform: translateX(0);
  }

  h2 {
    font-weight: 600;
    font-size: 26px;
    color: #333;
  }

  h3 {
    font-weight: 400;
    font-size: 18px;
    color: #f1f1f1;
    margin-bottom: 16px;
  }

  /* Password toggle styles */
  .password-wrapper {
    position: relative;
    width: 100%;
  }

  .password-wrapper input {
    padding-right: 40px;
  }

  .toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    color: #666;
  }

  /* Developer info */
  .developer-info {
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 14px;
    color: #555;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .container {
      width: 95%;
      min-height: 600px;
    }

    .form-container, .overlay-panel {
      width: 100%;
    }

    .overlay-container {
      display: none;
    }

    .sign-up-container {
      opacity: 1 !important;
      z-index: 2 !important;
      transform: translateX(0) !important;
    }

    .sign-in-container {
      z-index: 1 !important;
    }

    .container.right-panel-active .sign-in-container {
      display: none;
    }
  }