@import url('https://fonts.googleapis.com/css2?family=Basic&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


* {
    box-sizing: border-box;
}

body {
    background: #d2d0cf;
    font-family: poppins;

}

.nav {
    background-color: transparent;
    z-index: 10;
    position: sticky;
    top: 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.377);
    padding: 10px 0px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    backdrop-filter: blur(5px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3B9C9C;
    color: white;
    font-size: 25px;
    height: 40px;
    width: 40px;
    border-radius: 10px;
}

.logo-name {
    text-align: center;
}

.logo-name h1 {
    font-size: 20px;
    font-weight: 700;
}

.logo-name h3 {
    font-size: 12px;
    font-weight: 400;
}

.nav-options a {
    padding: 0px 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.login {
    display: flex;
    gap: 20px;
}

button {
    padding: 10px 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}


h1 {
    font-weight: bold;
    margin: 0;
}

p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}
.password-error{
    font-weight: 400;
    margin: 10px;
    font-style: italic;
    text-decoration: underline;
}
.login-error{
    font-weight: 400;
    margin: 10px;
    font-style: italic;
    text-decoration: underline;
}

.character{
    font-weight: 400;
    text-align: left;
    width: 100%;
    padding: auto;
    font-style: italic;
    text-decoration: underline;
    font-size: 10px

}
span {
    font-size: 12px;
}

a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}

button {
    border-radius: 20px;
    border: 1px solid #3B9C9C;
    background-color: #3B9C9C;
    /* Primary color from video */
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
}

button.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
}

form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

input {
    background-color: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
}

/* --- Container for the entire component --- */
.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
        0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    margin: auto;
    top: 80px;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

/* --- Form Containers (Login & Sign Up) --- */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.log-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
    /* Ensures it's initially on top */
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    /* Hidden initially */
    z-index: 1;
}

/* --- OVERLAY STYLES (The colored sliding panel) --- */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
    /* Must be on top of forms */
}

.overlay {
    background: #FF416C;
    /* Gradient start */
    background: -webkit-linear-gradient(to right, #3B9C9C, #FF416C);
    background: linear-gradient(to right, #3B9C9C, #FF416C);
    /* Gradient background */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.overlay-left {
    transform: translateX(-20%);
    /* Initial slight offset */
}


/* ---------------------------------------------------------------- */
/* --- TRANSITION ANIMATION CLASSES (added by JavaScript) --- */
/* ---------------------------------------------------------------- */

/* Move the overlay container to the left when active */
.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

/* Move the login form out to the right (50% + 50%) = 100% */
.container.right-panel-active .log-in-container {
    transform: translateX(100%);
}

/* Move the sign up form to the left */
.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    /* Make it visible */
    z-index: 5;
    /* Bring it on top */
    animation: show 0.6s;
}

/* Animation for the sign-up form to fade in */
@keyframes show {

    0%,
    49% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

/* Move the overlay (background) to the left to show the right panel content */
.container.right-panel-active .overlay {
    transform: translateX(50%);
}

/* Adjust the overlay text panels */
.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}
@media (max-width: 900px) {
    .container {
        width: 100%;
        margin-top: 20px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .nav{
        flex-direction: column;
    }
    .container {
        flex-direction: column;
        min-height: 750px;
    }

    .form-container,
    .overlay-container {
        position: relative;
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
    }

    .overlay {
        display: none;
    }

    .sign-up-container,
    .log-in-container {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
    }
}

/* Very Small Screens */
@media (max-width: 400px) {
    .nav{
        flex-direction: column;
    }
    .logo h1 {
        font-size: 1.1rem;
    }

    button {
        font-size: 0.9rem;
    }

    form input {
        font-size: 0.85rem;
    }
}