@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-image: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    min-height: 100vh;
}

.header {
    width: 100%;
    height: 5rem;
    background-color: rgba(255, 255, 255, 0.027);
    position: relative;
    display: flex;
    justify-content: space-between;
    backdrop-filter: blur(9px);
    border-bottom: 1px solid lightgoldenrodyellow;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.header-left {
    display: flex;
    margin-left: 2%;
    gap: 1rem;
}

.header-text {
    align-self: center;
}

.header-text h4 {
    font-weight: 500;
    font-size: 2rem;
    transition: ease-in-out 0.2s;

}

.header-text h4 a:hover {
    color: olive;
    transition: ease-in-out 0.2s;
    text-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.header-text p {
    font-size: 1rem;
    text-align: center;
    color: olive;
}

.header-text h4 a {
    color: black;
    transition: ease-in-out 0.2s;
}

img {
    width: 100%;
    height: 100%;


}

.hamburger {
    display: none;
    /* hidden on desktop */
}

.header-right {
    display: flex;
    margin-right: 2%;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.header-right a:nth-child(5) {
    font-weight: 500;
}

.header-right a {
    color: black;
    font-weight: 400;
    font-size: 1.1rem;
    transition: ease-in-out 0.2s;

}

.header-right a:hover {
    color: olive;
    transition: ease-in-out 0.2s;
    text-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.registration {
    height: 100vh;
}


.container {
    background: #fff;
    width: 450px;
    padding: 1.5rem;
    padding-bottom: 0.5rem;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 20px 35px rgba(0, 0, 1, 0.9);

}

/* Close Button Styling */
.close-btn {
    display: block;
    top: 20px;
    right: 25px;
    font-size: 24px;
    color: #888;
    /* Subtle gray */
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 999;
    justify-self: right;
}

.close-btn:hover {
    color: olive;
    /* Pink to match your brain logo */
}

form {
    margin: 0 1rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 1.3rem;
    margin-bottom: 0.4rem;
}

input {
    color: inherit;
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #757575;
    padding-left: 1.5rem;
    font-size: 15px;
}

.input-group {
    padding: 1% 0;
    position: relative;

}

.input-group i {
    position: absolute;
    color: black;
}

input:focus {
    background-color: transparent;
    outline: transparent;
    border-bottom: 2px solid olive;
}

input::placeholder {
    color: transparent;
}

label {
    color: #757575;
    position: relative;
    left: 1.2em;
    top: -1.3em;
    cursor: auto;
    transition: 0.3s ease all;
}

input:focus~label,
input:not(:placeholder-shown)~label {
    top: -3em;
    color: olive;
    font-size: 15px;
}

.recover {
    text-align: right;
    font-size: 1rem;
    margin-bottom: 1rem;

}

.recover a {
    text-decoration: none;
    color: olive;
}

.recover a:hover {
    color: olive;
    text-decoration: underline;
}

button {
    font-size: 1.1rem;
    padding: 8px 0;
    border-radius: 5px;
    outline: none;
    border: none;
    width: 100%;
    background: olive;
    color: white;
    cursor: pointer;
    transition: 0.9s;

    background: white;
    color: olive;
    border: 2px solid olive;
}

button:hover {
    background: olive;
    color: white;
}

.or {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.icons {
    text-align: center;
}

.icons i {
    color: rgb(125, 125, 235);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    border: 2px solid #dfe9f5;
    margin: 0 15px;
    transition: 1s;
}

.icons i:hover {
    background: #07001f;
    font-size: 1.6rem;
    border: 2px solid rgb(125, 125, 235);
}

.links {
    display: flex;
    justify-content: space-around;
    padding: 0 4rem;
    margin-top: 0.9rem;
    font-weight: bold;
}

#signUpButton,
#signInButton {
    color: olive;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: bold;
}

#signUpButton:hover,
#signInButton:hover {
    text-decoration: underline;
    color: olive;
}

.messageDiv {
    background-color: violet;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    font-size: 1rem;
    opacity: 0;
    animation: fadeOut 7s forwards;
}


/* Responsive */

/* --- Modified Container for Responsiveness --- */

/* --- Mobile Specific Adjustments --- */
@media (max-width: 480px) {
    .header-text h4 {
        font-size: 1.4rem;
        /* Smaller text on small screens */
    }

    .header-text p {
        font-size: 0.8rem;
    }

    .form-title {
        font-size: 1.2rem;
        padding: 0.5rem;
    }

    .links {
        flex-direction: column;
        /* Stack "Already have an account" text */
        align-items: center;
        padding: 0 1rem;
        gap: 5px;
    }

    .links p {
        font-size: 0.9rem;
    }

    #showSignIn,
    #showSignUp,
    #backToLogin {
        font-size: 0.9rem;
        border: none;
        background: transparent;
        text-decoration: underline;
    }

    .container {
        background: #fff;
        width: 90%;
        /* Use percentage for mobile */
        max-width: 450px;
        /* Prevents it from getting too large on desktop */
        padding: 1.5rem;
        padding-bottom: 0.5rem;
        margin: 20px auto;
        /* Centers it and adds vertical spacing */
        border-radius: 10px;
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
        /* Slightly softer shadow */
    }

}

/* Ensure the body doesn't cut off on long forms (like Sign Up) */
body {
    background-image: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    min-height: 100vh;
    /* Changed from height to min-height */
    display: flex;
    flex-direction: column;
}

.registration {
    flex: 1;
    /* Allows the container to push down the page */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}