/* Styles reset */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Colors */
    --color-primary: #316EAE;
    --color-primary-dark: #2c5f96;
    --secondary-color: #ecaa00;
    --main-text-color: #000000;
    --sub-text-color: #747373;
    --error-color: #B91C1C;

    /* Font sizes */
    font-size: 10px;
    --section-heading-mobile-fz: 2.2rem;
    --section-heading-desktop-fz: 2.6rem;
    --group-heading-mobile-fz: 1.6rem;
    --group-heading-desktop-fz: 1.8rem;
    --text-mobile-fz: 1.4rem;
    --text-desktop-fz: 1.6rem;

    /* Other */
    --box-shadow: 0 3px 5px #0000000b;
    --classic-border: 2px solid rgba(226, 232, 240, 0.7);
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.image-wrapper,
.form-wrapper {
    flex: 1 1 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.form-wrapper {
    position: relative;
}

.image-wrapper {
    background-color: var(--color-primary);
    color: #fff;
    display: none;
    overflow: hidden;
    position: relative;
}

.image-wrapper::after {
    content: '';
    width: 300px;
    height: 300px;
    background-color: var(--color-primary-dark);
    position: absolute;
    top: -120px;
    right: -120px;
    border-radius: 100%;
}

.image-wrapper::before {
    content: '';
    width: 320px;
    height: 320px;
    background-color: var(--color-primary-dark);
    position: absolute;
    bottom: -80px;
    left: -80px;
    border-radius: 100%;
}

.auth-title {
    font-size: var(--section-heading-mobile-fz);
    letter-spacing: 1px;
    text-align: center;
}

.auth-subtitle {
    font-size: var(--group-heading-mobile-fz);
    margin-bottom: 3.5rem;
    color: var(--sub-text-color);
    text-align: center;
}

.auth-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 90%;
    max-width: 500px;
    gap: 2rem;
}

.auth-input-group {
    width: 100%;
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: var(--gray);
    border: 1px solid #F3F3F3;
    border-radius: .5rem;
    outline: none;
    color: var(--sub-text-color);
    font-size: var(--text-mobile-fz);
    transition: border .3s ease-in-out;
    padding-right: 4.5rem;
}

.auth-input:focus {
    border: 1px solid var(--color-primary);
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    width: 32px;
}

.auth-remember {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.auth-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--sub-text-color);
    border-radius: .3rem;
    outline: none;
    cursor: pointer;
    transition: border .3s ease-in-out;
}

.auth-label {
    font-size: var(--text-mobile-fz);
    color: var(--sub-text-color);
}

.auth-error {
    color: var(--error-color);
    font-size: var(--text-mobile-fz);
    text-align: left;
    width: 100%;
}

.auth-login {
    border-radius: .5rem;
    background-color: var(--color-primary);
    color: #fff;
    padding: 1rem 2rem;
    width: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: var(--text-mobile-fz);
    transition: 0.3s ease-in-out;
}

.auth-login:hover {
    background-color: var(--color-primary-dark);
}

.auth-back {
    position: absolute;
    bottom: 1rem;
    color: var(--color-primary);
    font-weight: bold;
    font-size: var(--text-mobile-fz);
    text-decoration: none;
    width: 100%;
    text-align: center;
}

@media(min-width: 768px) {

    .image-wrapper,
    .form-wrapper {
        flex: 1 1 50%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .auth-image {
        max-width: 500px;
        width: 75%;
    }

    .auth-heading {
        font-size: 3rem;
        margin-bottom: 1rem;
        position: relative;
        z-index: 1;
    }

    .auth-subheading {
        font-size: 1.8rem;
        font-weight: normal;
        margin-bottom: 2rem;
        position: relative;
        z-index: 1;
    }
}

@media(min-width: 1024px) {
    .auth-image {
        width: 50%;
        max-width: 700px;
    }

    .auth-back,
    .auth-input,
    .auth-login,
    .auth-label,
    .auth-error {
        font-size: var(--text-desktop-fz);
    }

    .auth-title {
        font-size: var(--section-heading-desktop-fz);
    }

    .auth-subtitle {
        font-size: var(--group-heading-desktop-fz);
    }

}
