@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.login {
    min-height: 100vh;
    background-color: #F4F7FA;
    display: grid;
    grid-template-rows: 200px 1fr;

    @media screen and (width >= 1024px) {
        grid-template-rows: 1fr;
        grid-template-columns: 500px 1fr;
    }

    @media screen and (width >= 1440px) {
        grid-template-columns: 600px 1fr;
    }

    @media screen and (width >= 1920px) {
        height: 100vh;
        grid-template-columns: 900px 1fr;
    }
    
    .login__left-side {
        margin: 0;
        padding: 0;
        overflow: hidden;
        position: relative;
        
        img {
            width: 100%;
            height: 180%;
            object-fit: cover;

            @media screen and (width >= 1024px) {
                height: 100%;
            }
        }

        &::after {
            content: "";
            display: block;
            position: absolute;
            top: 0;
            width: 100%;
            height: 100vh;
            z-index: 1000;
            background: linear-gradient(180deg, rgba(8, 39, 92, 0.00) 37.19%, #08275C 100%);
        }
    }

    .login__right-side {
        margin-top: -100px;
        display: flex;
        flex-direction: column;
        gap: 60px;
        z-index: 1;
        position: relative;

        @media screen and (width >= 1024px) {
            margin-top: 0;
            gap: 0;
        }

        .login__right-side__form {
            padding-left: 15px;
            padding-right: 15px;

            @media screen and (width >= 1024px) {
                margin-top: auto;
                margin-bottom: auto;
                padding-left: 30px;
                padding-right: 30px;
            }
            
            @media screen and (width >= 1280px) {
                margin-left: auto;
                margin-right: auto;
                width: 620px;
            }
            
            .login__right-side__form__content {
                border-radius: 4px;
                border: 1px solid #EAEAEA;
                background-color: #FFF;
                box-shadow: 0px 0px 8px 0px rgba(136, 136, 136, 0.18);
                padding: 20px;
                display: flex;
                flex-direction: column;
                gap: 24px;

                .login__right-side__form__content__logo {
                    display: block;
                    margin-left: auto;
                    margin-right: auto;
                    width: 130px;
                    height: 75px;
                }

                .login__right-side__form__content__title {
                    color: #1A2F42;
                    font-family: 'Roboto';
                    font-size: 18px;
                    font-style: normal;
                    font-weight: 700;
                    letter-spacing: 0.2px;
                    margin: 0;

                    @media screen and (width >= 1024px) {
                        font-size: 20px;
                    }
                    
                    &:after {
                        content: "";
                        display: block;
                        background-color: #FEC60D;
                        width: 48px;
                        height: 4px;
                        margin-top: 12px;
                    }
                }

                .login__right-side__form__content__subtitle {
                    color: #4B5C71;
                    font-family: 'Roboto';
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 400;
                    letter-spacing: 0.28px;
                    margin-bottom: 0;
                }

                .login__right-side__form__content__form {
                    display: flex;
                    flex-direction: column;
                    gap: 24px;

                    .login__right-side__form__content__form__input-group {
                        color: #1A2F42;
                        font-family: 'Roboto';
                        font-size: 16px;
                        font-style: normal;
                        font-weight: 700;
                        letter-spacing: 0.5px;
                        margin: 0;

                        input {
                            overflow: hidden;
                            color: #1A2F42;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            font-family: 'Roboto';
                            font-size: 16px;
                            font-style: normal;
                            font-weight: 400;
                            letter-spacing: 0.5px;
                            margin-top: 5px;
                            padding: 12px 16px;
                            border-radius: 4px;
                            border: 1px solid #9FB2C2;

                            &::placeholder {
                                color: #4B5C71;
                            }
                        }
                    }

                    .login__right-side__form__content__form__footer {
                        display: flex;
                        flex-direction: column;
                        gap: 32px;
                        margin-top: 12px;

                        @media screen and (width >= 1024px) {
                            flex-direction: row;
                            justify-content: space-between;
                            align-items: center;
                        }

                        .login__right-side__form__content__form__footer__button {
                            margin: 0;
                            border: none;
                            background-color: #FEC60D;
                            border-radius: 4px;
                            color: #173F8A;
                            text-align: center;
                            font-family: 'Roboto';
                            font-size: 16px;
                            font-style: normal;
                            font-weight: 500;
                            letter-spacing: 0.5px;
                            padding: 12px 16px;
                            cursor: pointer;
                            transition: background-color 0.3s ease;
                            outline: none;
                            
                            @media screen and (width >= 1024px) {
                                &:hover {
                                    background-color: #E3AE00;
                                }
                            }
                        }

                        .login__right-side__form__content__form__footer__forgot-password {
                            display: block;
                            color: #0176DE;
                            font-family: 'Roboto';
                            font-size: 16px;
                            font-style: normal;
                            font-weight: 500;
                            letter-spacing: 0.5px;
                            text-decoration-line: underline;
                            margin-left: auto;
                            margin-right: auto;

                            @media screen and (width >= 1024px) {
                                margin: 0;
                            }
                        }
                    }

                }
            }
        }

        .login__right-side__footer {
            margin-top: auto;
            color: #4B5C71;
            font-family: 'Roboto';
            font-size: 12px;
            font-style: normal;
            font-weight: 400;
            letter-spacing: 0.28px;

            background-color: #FFF;
            padding: 20px 15px;
            display: flex;
            justify-content: center;
            align-items: center;

            @media screen and (width >= 1024px) {
                margin-top: 0;
                font-size: 14px;
            }
        }
    }

    .error-captcha {
        iframe {
            border: 1px solid red;


        }

        &::after {
            content: "Por favor completa el reCAPTCHA";
            display: block;
            margin-top: 10px;
            font-family: 'Roboto';
            font-size: 14px;
            color: red;
        }
    }
}