* {
    box-sizing: border-box;
}

.login-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 20px;
    min-height: calc(100vh - 40px);
}

.cover-container {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
        width: 75%;
        max-width: 100%;
        height: auto;
    }
}

.form-container {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;

    .container {
        max-width: 456px;
        width: 100%;
    }

    form>* {
        margin: 12px;
    }

    form {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        h2 {
            font-size: 30px;
            font-weight: 700;
            text-align: center;
            line-height: 1.2;
        }

        .ssg-logo {
            max-width: 150px;
            height: auto;
        }

        .input-wrapper {
            width: 100%;
            height: fit-content;
            padding: 0 16px 0 26px;
            border: 0.5px solid #AAAAAA;
            border-radius: 8px;
            background: #F6F6F6;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease-in-out;

            &:focus-within {
                border: 1px solid #002147f1;
            }

            img {
                width: 20px;
                height: 20px;
                flex-shrink: 0;
            }

            input {
                padding: 16px 5px;
                border: 0px;
                width: 100%;
                background: transparent;
                font-size: 14px;
                font-weight: 400;
                min-width: 0;
            }

            input:focus {
                outline: none;
                border: none;
            }
        }

        .remember-password {
            margin: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;

            div {
                display: flex;
                align-items: center;
                gap: 5px;
            }

            label {
                color: #6C757D;
                font-size: 14px;
                font-weight: 400;
                white-space: nowrap;
            }

            a {
                font-size: 14px;
                text-decoration: none;
                font-weight: 700;
                color: black;
                white-space: nowrap;
            }
        }

        button {
            width: 100%;
            color: white;
            font-size: 16px;
            font-weight: 700;
            padding: 16px;
            border: 0px;
            border-radius: 8px;
            margin: 40px 0 0 0;
            background: #002147;
            cursor: pointer;

            &:hover {
                background-color: #000000;
            }
        }
    }

    .continue-text {
        width: 100%;
        margin: 24px 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;

        p {
            margin: 0;
            color: #6C757D;
            font-size: 12px;
            font-weight: 400;
            white-space: nowrap;
        }

        div {
            flex: 1;
            border: 0px solid #55555580;
            border-width: 1px 0 0 0;
            min-width: 20px;
        }
    }

    .social-login-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;

        .mo-openid-app-icons {
            display: block;
            width: 100%;
            padding: 0;
            margin: 0;

            p {
                display: none;
            }

            a {
                width: 100% !important;
                display: flex;
                align-items: center;
                gap: 8px;
                font-family: "Poppins";
                background: white;
                justify-content: center;
                border: 1px solid #DDDDDD;
                border-radius: 8px;
                padding: 8px 0;
                transition: all 0.2s ease-in-out;
                font-size: 15px;

                img {
                    width: 32px;
                }

                &:hover {
                    background-color: #000000;
                    cursor: pointer;
                    color: white;
                }
            }
        }
    }

    .to-register {
        font-size: 14px;
        font-weight: 400;
        color: #6C757D;
        text-align: center;
        margin-top: 20px;

        a {
            font-size: 14px;
            font-weight: 700;
            color: black;
            text-decoration: none;
        }
    }
}

.social-link,
button {
    transition: all 0.2s ease-in-out;
}

.social-link:hover,
button:hover {
    transform: scale(1.02);
}

.social-link:active,
button:active {
    transform: scale(0.98);
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .login-container {
        margin: 15px;
    }

    .form-container {
        padding: 15px;

        form {
            h2 {
                font-size: 26px;
            }
        }
    }

    .cover-container {
        img {
            width: 85%;
        }
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: column;
        margin: 10px;
        gap: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cover-container,
    .form-container {
        width: 100%;
    }

    .cover-container {
        order: 2;
        margin-top: 20px;
        display: none;

        img {
            width: 60%;
            max-width: 300px;
        }
    }

    .form-container {
        order: 1;
        padding: 10px;

        .container {
            max-width: 100%;
        }

        form {
            h2 {
                font-size: 24px;
                margin-bottom: 20px;
            }

            .ssg-logo {
                max-width: 120px;
            }

            .remember-password {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;

                div {
                    align-self: flex-start;
                }

                a {
                    align-self: flex-end;
                }
            }
        }

        .continue-text {
            margin: 20px 0;

            p {
                font-size: 11px;
            }
        }
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .login-container {
        margin: 5px;
    }

    .form-container {
        padding: 5px;

        form {
            >* {
                margin: 8px;
            }

            h2 {
                font-size: 22px;
            }

            .ssg-logo {
                max-width: 100px;
            }

            .input-wrapper {
                padding: 0 12px 0 20px;

                input {
                    padding: 14px 5px;
                    font-size: 13px;
                }

                img {
                    width: 18px;
                    height: 18px;
                }
            }

            button {
                padding: 14px;
                font-size: 15px;
                margin: 30px 0 0 0;
            }
        }

        .continue-text {
            p {
                font-size: 10px;
            }
        }

        .to-register {
            font-size: 13px;

            a {
                font-size: 13px;
            }
        }
    }

    .cover-container {
        display: none;

        img {
            width: 80%;
        }
    }
}

/* Extra Small Mobile Styles */
@media screen and (max-width: 360px) {
    .form-container {
        form {
            h2 {
                font-size: 20px;
            }

            .input-wrapper {
                padding: 0 10px 0 16px;

                input {
                    padding: 12px 5px;
                    font-size: 12px;
                }
            }

            button {
                padding: 12px;
                font-size: 14px;
            }
        }
    }
}