
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica;
}


body {
    min-height: 100vh;
    background-color: #f5f9ff;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    margin: 0;
    display: flex;
}

.image-section {
    width: 50%;
    position: relative;
}
.image-wrapper {
    width: 100%;
    height: 100%;
}
.image-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}
.language{
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px;
}

.content-container {
    position: absolute;
    top: 0px;
    left: 0px;
}
@media screen and (max-width: 60rem) {
    .container {
        width: 100%;
        margin: 0;
    }
    .content-container {
        width: 100%;
    }
}

.form-section {
    position: relative;
    width: 50%;
    background-color: white;
    padding: 2.5rem 1rem;
    display: flex;
    align-items: center;
}

.form-wrapper {
    width: 75%;
    margin: 0 auto;
}

.back-container {
    height: 3rem;
    margin-bottom: 2.2rem;
}

.form-wrapper > h2 {
    margin-bottom: 0.1rem;
}
.form-wrapper > p {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}


.grid {
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    justify-content: center;
    align-content: center;

    gap: 4px;
    grid-auto-flow: column;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}
.form-group span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--problem);
}
.form-group input {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem;
    border: 1px solid black;
    border-radius: 0.3rem;
}
.form-group input:focus {
    border: 2px solid var(--primary);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.remember-me {
    display: grid;
    grid-template-columns: 1rem auto;
    gap: 0.6rem;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    place-content: center;
}

.remember-me input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.3rem;
    border: 1px solid var(--text-light);
    border-radius: 2px;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    background-color: white;
    transform: scale(0);
    transform-origin: bottom left;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}
.remember-me input:checked {
    background: var(--primary-gradient);
}

.remember-me label {
    color: var(--text-dark);
    user-select: none;
}
.remember-forgot a {
    color: var(--primary);
}
.remember-forgot a:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

.login-btn,
.second-btn {
    display: block;
    width: 100%;
    text-align: center;
    border: 0px black solid;

    font-weight: 500;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
}

.login-btn {
    color: white;
    cursor: pointer;
    background: var(--primary-gradient);
    font-size: 20px;

}
.login-btn:hover {
    opacity: 0.9;
    background: var(--hover-gradient);
}

.or-divider {
    width: 100%;
    font-weight: 600;
    color: var(--text-dark);
    margin-block: 1.5rem;
    text-align: center;
    position: relative;
}
.or-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 1px;
    width: 45%;
    background-color: var(--text-dark);
}
.or-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    height: 1px;
    width: 45%;
    background-color: var(--text-dark);
}

.second-btn {
    border: 2px solid var(--primary-lighter);
}
.second-btn object{
    width: 1.5rem;
    height: 1.5rem;
}

@media screen and (max-width: 50rem) {
    .container {
        max-width: 80%;
        flex-direction: column;
        margin-inline: 0;
    }

    .image-section,
    .form-section {
        width: 100%;
    }

    .image-section {
        height: 25vh;
    }
    .content-container {
        display: flex;
    }


    .form-section {
        flex: 1;
        padding: 1rem 1rem;
    }
    .logo-container {
        margin-bottom: 1rem;
    }
    .form-wrapper > h2 {
        font-size: 1.25rem;
    }
    .form-wrapper > p {
        margin-bottom: 1rem;
    }
    .form-wrapper .second-btn {
        font-size: 0.875rem;
    }
    .or-divider {
        font-weight: 500;
        margin-block: 0.6rem;
    }
}

@media screen and (max-width: 36.25rem) {
    .container {
        max-width: 100%;
    }
    .form-wrapper {
        width: 100%;
    }
}