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

@property --color-rdg-register-box-title-bg {syntax: "<color>";inherits: true;initial-value: #00bb08;}
@property --color-rdg-register-box-title {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-rdg-register-box-body-bg {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-rdg-register-input-text {syntax: "<color>";inherits: true;initial-value: #F0F0F0;}
@property --color-rdg-register-label {syntax: "<color>";inherits: true;initial-value: #000000;}
@property --color-rdg-register-remember {syntax: "<color>";inherits: true;initial-value: #000000;}
@property --color-rdg-register-link-bg {syntax: "<color>";inherits: true;initial-value: #00bb08;}
@property --color-rdg-register-link {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-rdg-register-box-footer-border {syntax: "<color>";inherits: true;initial-value: #C9C9C9;}
@property --color-rdg-register-box-footer-link {syntax: "<color>";inherits: true;initial-value: #808080;}

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

    @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-register-box-title-bg);
                text-align: center;
                color: var(--color-rdg-register-box-title);
            }

            .box-body {
                background-color: var(--color-rdg-register-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-register-input-text);
                }

                label {
                    color: var(--color-rdg-register-label);
                    padding-bottom: .5rem;
                }

                .remember {
                    margin-left: .5rem;
                    color: var(--color-rdg-register-remember);
                }

                .link {
                    display: flex;
                    justify-content: center;
                    margin: 1.5rem 0;
                    
                    a {
                        color: var(--color-rdg-register-link);
                        width: auto;
                        text-align: center;
                        padding: .5rem 3rem;
                        border-radius: 1.5rem;
                        background-color: var(--color-rdg-register-link-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-register-box-footer-border);
                    padding-top: 1rem;
                    text-align: center;
                    
                    a {
                        color: var(--color-rdg-register-box-footer-link);
                    }
                }
            }
        }
    }
}

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