@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: hsl(284, 33%, 96%);
    background: linear-gradient(to right, hsl(284, 33%, 92%), hsl(284, 33%, 98%));
    display: flex;
    flex-direction: column; /* Allow stacking of elements */
}

.home {
    background-color: hsl(284, 33%, 46%);
    padding: 15px 30px; /* Reduced padding */
    display: flex;
    justify-content:center; /* Align items to the start */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width */
}

.home ul {
    display: flex; /* Align items horizontally */
    list-style: none; /* Remove bullet points */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

.home li {
    margin: 0 20px; /* Space between links */
}

.home a {
    color: hsl(0, 0%, 100%);
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px; /* Add padding for better touch target */
    border-radius: 5px; /* Rounded corners */
    transition: color 0.3s ease, background-color 0.3s ease;
}

.home a:hover {
    color: hsl(284, 33%, 60%);
    background-color: hsl(284, 33%, 90%);
}

.container {
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
    transition: transform 0.3s ease-in-out;
    margin: 20px auto; /* Center the container and add margin above */
}

.container p {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.5px;
    margin: 20px 0;
    color: hsl(0, 0%, 100%);
}

/* Remaining styles unchanged */




.container span{
    font-size: 12px;
    color: hsl(284, 33%, 40%);
}

.container a{
    color: hsl(284, 33%, 46%);
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
    transition: color 0.3s ease;
}

.container a:hover{
    color: hsl(284, 33%, 60%);
}

.container button{
    background-color: hsl(284, 33%, 48%);
    color: white;
    font-size: 13px;
    padding: 12px 50px;
    border: 1px solid transparent;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.container button:hover{
    background-color: hsl(284, 33%, 60%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.container button.hidden{
    background-color: transparent;
    border-color: hsl(284, 33%, 80%);
}

.container form{
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
}

.container input{
    background-color: hsl(284, 33%, 96%);
    border: none;
    margin: 10px 0;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 25px;
    width: 100%;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.container input:focus{
    background-color: hsl(284, 33%, 99%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-container{
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.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;
    }
}

.social-icons{
    margin: 20px 0;
}

.social-icons a{
    border: 1px solid hsl(284, 33%, 70%);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover{
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.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: hsl(284, 33%, 46%);
    height: 100%;
    background: linear-gradient(to right, hsl(284, 33%, 60%), hsl(284, 33%, 46%));
    color: white;
    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-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%);
}

/* Light shadow effect on "Hello!" */
h1{
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

