@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

@property --color-rdg-login-box-title {syntax: "<color>";inherits: true;initial-value: #ffffff;}
@property --color-rdg-login-box-title-bg {syntax: "<color>";inherits: true;initial-value: #00bb08;}
@property --color-rdg-login-box-body-bg {syntax: "<color>";inherits: true;initial-value: #ffffff;}
@property --color-rdg-login-box-body-input {syntax: "<color>";inherits: true;initial-value: #f0f0f0;}
@property --color-rdg-login-box-body-text {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-rdg-login-box-link-a {syntax: "<color>";inherits: true;initial-value: #ffffff;}
@property --color-rdg-login-box-link-a-bg {syntax: "<color>";inherits: true;initial-value: #00bb08;}
@property --color-rdg-login-box-box-footer-border {syntax: "<color>";inherits: true;initial-value: #c9c9c9;}
@property --color-rdg-login-box-box-footer-a {syntax: "<color>";inherits: true;initial-value: #808080;}
@property --color-rdg-login-box-box-list-bg {syntax: "<color>";inherits: true;initial-value: #90ee90;}

.rdg-blocks .rdg-login {
    width: 100%;
    .preview-thumbs {
        background-image: url('../images/rdg-login-template-preview.jpg');
    }

    @include title;

    .body {
        .box {
            width: 100%;

            .box-title {
                padding: .4rem;
                border-top-right-radius: .5rem;
                border-top-left-radius: .5rem;
                background-color: var(--color-rdg-login-box-title-bg);
                text-align: center;
                color: var(--color-rdg-login-box-title);
            }

            .box-body {
                background-color: var(--color-rdg-login-box-body-bg);
                padding: 2rem 2.5rem 1rem 2.5rem;

                @media (max-width: $breakpoint-md) {
                    & {
                        padding: 1rem;
                    }
                }

                label, input[type=text], a {
                    width: 100%;
                    display: block;
                }

                input[type=text] {
                    border-radius: .5rem;
                    margin-bottom: 1.5rem;
                    background-color: var(--color-rdg-login-box-body-input);
                }

                label {
                    color: var(--color-rdg-login-box-body-text);
                    padding-bottom: .5rem;
                }

                .remember {
                    margin-left: .5rem;
                    color: var(--color-rdg-login-box-body-text);
                }

                .link {
                    display: flex;
                    justify-content: center;
                    margin: 1.5rem 0;
                    
                    a {
                        color: var(--color-rdg-login-box-link-a);
                        width: auto;
                        text-align: center;
                        padding: .5rem 3rem;
                        border-radius: 1.5rem;
                        background-color: var(--color-rdg-login-box-link-a-bg);

                        @media (max-width: $breakpoint-md) {
                            & {
                                padding: .5rem 2rem;
                            }
                        }

                        @media (max-width: $breakpoint-sm) {
                            & {
                                padding: .5rem 1rem;
                            }
                        }
                    }
                }

                .box-footer {
                    border-top: 1px solid var(--color-rdg-login-box-box-footer-border);
                    padding-top: 1rem;
                    text-align: center;

                    a {
                        color: var(--color-rdg-login-box-box-footer-a);
                    }
                }
            }
        }

        .box-list {
            width: 50%;
            background-color: var(--color-rdg-login-box-box-list-bg);
        }
    }
}

.acf-block-preview {
    .rdg-login {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
