* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica', Arial, sans-serif;
    background-color: #f0f2f5;
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

.box-1 {
    width: 100%;
    max-width: 550px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;

}

.logo {
    width: 20rem;
    height: 105px;
}

.logo img {
    width: 100%;
    height: 100%;
}

h2 {
    padding-left: 30px;
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    color: #1c1e21;
    width: 500px;


}

.box-2 {
    background-color: #fff;
    width: 100%;
    max-width: 430px;
    max-height: 490px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}


form {
    display: none;
    flex-direction: column;
}

form.active {
    display: flex;
}

input,
select {
    padding: 12px;
    margin: 6px 0;
    font-size: 16px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
}

input:focus {
    border: 1px solid #4c7ec8;
    box-shadow: 0px 0px 2px #1f69d9;
    outline: none;
}

.pass-box {
    display: flex;
    align-items: center;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    justify-content: space-between;
}

.pass-box:focus-within {
    border: 1px solid #4c7ec8;
    box-shadow: 0px 0px 2px #1f69d9;
}

.password {
    border: none;
    outline: none;
    width: 90%;
    margin: 0px;
}

.password:focus {
    border: unset;
    box-shadow: unset;
}

.fa-regular {
    width: 10%;
}

.date {
    width: 20rem;
}

.genders:focus-within {
    border: 1px solid #4c7ec8;
    box-shadow: 0px 0px 2px #1f69d9;
    outline: none;
    accent-color: #1f69d9;
}

.name-fields {
    display: flex;
    gap: 8px;
}

.gender-options {
    display: flex;
    gap: 10px;
}

.gender-options label {
    flex: 1;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    padding: 10px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

button {
    padding: 12px;
    font-size: 17px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
}

.login-btn {
    background-color: #114eaa;
}

.login-btn:hover {
    background-color: #125ab9;
}

.signup-btn {
    background-color: #42b72a;
}

.signup-btn:hover {
    background-color: #36a420;
}

.signup-btn[value="Sign up"],
.login-btn[value="Login"] {
    padding: 12px;
    font-size: 17px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
}

.toggle-link {
    background: none;
    border: none;
    color: #1877f2;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: underline;
}

.extra {
    text-align: center;
    font-size: 14px;
    color: #1877f2;
    margin-top: 8px;
    cursor: pointer;
}

.extra:hover {
    text-decoration: underline;
}

@media (max-width: 1025px) {
    .container {
        flex-direction: column;
    }

    .logo {
        width: 18rem;
    }

    h2 {
        padding: 0px;
        font-size: 1.5rem;
        width: unset;
    }

    .box-1 {
        align-items: center;
        text-align: center;
        padding: unset;
    }

    .box-2 {
        max-width: 400px;
        height: 750px;
        background-color: transparent;
        box-shadow: unset;
        max-height: unset;
        padding: 0px;
    }

    form {
        padding: 20px;
        background-color: white;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }
}

@media (max-width: 780px) {
    .box-2 {
        height: 550px;
        padding-top: 20px;
    }
}

@media (max-width: 650px) {
    .box-1 {
        max-width: 350px;
    }

    .box-2 {
        max-width: 280px;
    }

    .logo {
        width: 15rem;
    }

    h2 {
        font-size: 1.2rem;
        width: unset;
    }
}

@media (max-width: 480px) {
    .name-fields {
        flex-direction: column;
    }

    .box {
        padding: 15px;
    }
}