
body {
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
    flex-direction: column;
    /* height: 100vh; */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__logo img {
    width: 70px;
    height: auto;
    /* border-radius: 8px; */
}

.toggle-left {
    transform: translateX(-200%);
}

.container.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}

.container.active .toggle-right {
    transform: translateX(200%);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav__logo img {
        width: 60px;
    }

    .nav__links {
        display: none; /* Hide links on small screens */
    }

    .menu-icon {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .language-toggle {
        width: 120px;
        height: 40px;
    }

    .language-btn {
        font-size: 14px;
        padding: 8px;
    }
}
@media (min-width: 320px) and (max-width: 600px) {
  header{
    padding-left: 10px;
  }
  nav {
      padding: 0.5rem; /* Reduced padding for smaller screens */
      flex-direction: row; /* Keep items in a row */
      align-items: center; /* Center align items vertically */
      justify-content: space-between; /* Space between logo and links */
  }
  .nav__logo{
    margin-right: auto;
  }
  .nav__logo img {
      width: 50px; /* Smaller logo size for mobile */
  }

  .nav__links {
      display: none; /* Hide links on small screens */
  }

  .menu-icon {
      display: block; /* Show menu icon */
      font-size: 1.8rem; /* Larger icon */
      cursor: pointer;
  }

  .language-toggle {
      width: 130px; /* Adjusted width for mobile */
      height: 40px; /* Adjusted height for better alignment */
  }

  .language-btn {
      font-size: 12px; /* Slightly smaller font size */
      padding: 8px; /* Adjusted padding for buttons */
  }
}

.container {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
    margin-bottom: 10px;
}

.container p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin:0;
    text-align: center;
}

.container span {
    font-size: 12px;
    text-align: center;
}

.container a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
    text-align: center;
}

.container button {
    background-color: #388e3c; /* Green */
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}

.container button.hidden {
    background-color: transparent;
    border-color: #fff;
}

.container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container input {
    background-color: #f1f8e9; /* Light Green */
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.form-container h1.sign-head {
    font-size: 28px;             
}



.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.active .sign-in {
    transform: translateX(100%);
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}
.toggle-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
.toggle-logo img {
    width: 90px;
    height: auto;
  }


.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 150px 0 0 100px;
    z-index: 1000;
}

.container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
}

.toggle {
    background-color: #388e3c; /* Green */
    height: 100%;
    background: linear-gradient(to right, #66bb6a, #388e3c);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-panel h1.message {
    font-size: 28px;         
}



.mobile-container {
    display: none;
}

/* Responsive Styles */

/* Mobile devices (320px - 480px) */
@media (max-width: 550px) {
    /* General Mobile Container */
    .mobile-container {
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        flex-direction: column; /* Stack content vertically */
        height: 80vh; /* Increased viewport height for better layout */
        width: 100vw; /* Full viewport width */
        background: #f8f9fa; /* Light background for better readability */
        padding: 20px;
        box-sizing: border-box; /* Include padding in dimensions */
        font-family: 'Arial', sans-serif; /* Clean font for mobile */
    }

    /* Header Section */
    .mobile-header {
        margin-bottom: 30px;
        text-align: center;
    }

    .mobile-logo {
        width: 120px; /* Increased logo size */
        height: auto;
        margin: 0 auto 20px;
        display: block;
    }

    .mobile-header h1 {
        font-size: 2.5rem; /* Larger font for better readability */
        color: #333;
        margin: 10px 0;
        font-weight: bold;
    }

    .mobile-header h2 {
        font-size: 1.8rem; /* Slightly smaller for secondary header */
        color: #555;
        margin: 10px 0;
        font-weight: 500;
    }

    /* Input Styles */
    .mobile-input {
        width: 100%;
        max-width: 450px;
        padding: 15px; /* More padding for better touch interaction */
        margin: 15px 0;
        border: 1px solid #ccc; /* Subtle border for inputs */
        border-radius: 8px;
        font-size: 1.2rem;
        background: #fff;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Button Styles */
    .mobile-btn {
        width: 100%;
        max-width: 450px;
        padding: 15px; /* Increased padding */
        margin-top: 15px;
        background: #388e3c; /* Bootstrap primary color */
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 1.2rem;
        font-weight: bold;
        cursor: pointer;
        text-align: center;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        transition: background 0.3s;
    }

    .mobile-btn:hover {
        background: #0056b3; /* Darker shade for hover */
    }

    /* Switch Link Styles */
    .mobile-switch {
        margin-top: 20px;
        font-size: 1.2rem;
        color: #555;
        text-align: center;
    }

    .switch-btn {
        background: none;
        border: none;
        color: #007bff; /* Consistent with button color */
        font-size: 1.2rem;
        text-decoration: underline;
        cursor: pointer;
        transition: color 0.3s;
    }

    .switch-btn:hover {
        color: #0056b3; /* Darker shade for hover */
    }

    /* Hide Desktop-Specific Containers */
    .container {
        display: none;
    }
    .sign-in {
        width: 100% !important;
    }

}



        /* Tablets (481px - 768px) */
        @media (min-width: 551px) and (max-width: 768px) {
            .container {
                width: 85%;
                padding: 20px;
                border-radius: 25px;
            }

            .container p, .container span, .container a {
                font-size: 13px;
                text-align: center;
            }
            .form-container h1.sign-head {
                font-size: 20px;             
            }

            .container button {
                font-size: 11px;
                padding: 9px 40px;
            }
            .toggle-panel h1.message {
                font-size: 20px;         
            }
            
            .mobile-container {
                display: none;
            }
        }

/* Small Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 80%;
        padding: 25px;
        border-radius: 30px;
    }

    .toggle-container {
        border-radius: 120px 0 0 100px;
    }

    .container p, .container span, .container a {
        font-size: 14px;
    }

    .container button {
        font-size: 12px;
        padding: 10px 45px;
    }

    .form-container h1.sign-head {
        font-size: 24px;             
    }
    .toggle-panel h1.message {
        font-size: 24px;         
    }
    
    .mobile-container {
        display: none;
    }
}

/* Large Screens (1025px and above) */
@media (min-width: 1025px) {
    .container {
        width: 768px;
        padding: 30px;
        border-radius: 30px;
    }

    .container p, .container span, .container a {
        font-size: 14px;
    }

    .container button {
        font-size: 12px;
        padding: 10px 45px;
    }
    .form-container h1.sign-head {
        font-size: 28px;             
    }
    .toggle-panel h1.message {
        font-size: 28px;         
    }
    
    .mobile-container {
        display: none;
    }
}