@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import "_responsive";

/* GENERAL */
html,body {
    font-family: "Roboto", serif;
    font-size: 14px;
    padding: 0;
    margin: 0;
    color: #494949;
    background: #FFF;
}
a:hover { text-decoration: none;  }
img { max-width: 100%;  }

#header {
    background: #FCFCFD;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 12px;
}

#main {
    padding: 50px 20px;
    padding-bottom: 100px;
    .box {
        background: #FFF;
        box-shadow: 0 11px 34px 0 #78788029;
        padding: 40px 80px;
        border-radius: 30px;
        max-width: 640px;
        margin: 0 auto;
        @include respond-down(sm) {
            box-shadow: none;
            padding: 0 20px;
        }
        .logo {
            text-align: center;
        }
        .title {
            margin-top: 20px;
            margin-bottom: 40px;
            text-align: center;
            h3 {
                font-weight: 700;
                font-size: 30px;
                color: #000;
            }
        }
        form.form1 {
            label {
                display: block;
                position: relative;
                margin-bottom: 0;
                &.ppp { display: none; }
                .img {
                    position: absolute;
                    right: 10px;
                    top: 16px;
                    img { width: 28px; }
                }
                &.has-error {
                    input {
                        background: #FFF2F4;
                        border: 1px solid #E30000;
                    }
                    .label-txt {
                        color: #E30000;
                    }
                    .errmsg {
                        font-size: 14px;
                        color: #eb3942;
                        margin-top: 5px;
                    }
                }
                .label-txt {
                    position: absolute;
                    top: 17px;
                    left: 15px;
                    transition: ease .1s;
                    margin-bottom: 0;
                    font-size: 16px;
                    color: #6e6e73;
                    font-weight: 400;
                    &.label-active {
                        top: 9px;
                        font-size: 12px;
                    }
                }
                input {
                    width: 100%;
                    background: transparent;
                    padding-left: 15px;
                    padding-right: 10px;
                    padding-top: 30px;
                    padding-bottom: 13px;
                    border: 1px solid #86868b;
                    outline: none;
                    height: 56px;
                    color: #494949;
                    font-size: 16px;
                    padding-right: 53px;
                    &:focus {
                        outline: 2px solid #FFF;
                    }
                    &#username { border-radius: 12px 12px 12px 12px; }
                    &#password { border-radius: 0 0 12px 12px; margin-top: -1px; }
                    &:focus {
                        border-color: #0071e3;
                        outline: 2px solid #0071e3;
                    }
                }
            }
        }
        .error {
            max-width: 300px;
            position: relative;
            background: #FAE9A3;
            padding: 10px 20px;
            border: 1px solid #DBC157;
            margin: 0 auto;
            margin-top: 10px;
            border-radius: 5px;
            display: none;
            p {
                text-align: center;
                margin-bottom: 0;
                font-weight: 500;
            }
        }
        form.form2 {
            .has-error {
                input {
                    background: #FFF2F4;
                    border: 1px solid #E30000 !important;
                    &:focus {
                        box-shadow: none !important;
                        outline: 0 !important;
                    }
                }
                .errmsg {
                    font-size: 12px;
                    color: #E30000;
                    margin-top: 5px;
                }
            }
            .form-group {
                max-width: 295px;
                margin: 0 auto;
            }
            .inputs {
                text-align: center;
                display: flex;
                justify-content: space-between;
                input {
                    display: inline-block;
                    height: 42px;
                    width: 42px;
                    border: 1px solid #86868b;
                    border-radius: 8px;
                    margin-right: 5px;
                    text-align: center;
                    font-size: 16px;
                    @include respond-down(xs) {
                        height: 32px;
                        width: 32px;
                    }
                    &:last-child { margin-right: 0; }
                    &:focus {
                        border-color: #0071e3;
                        outline: 1px solid #0071e3;
                        box-shadow: none;
                    }
                }
            }
        }
        .dddd {
            .loader { display: none; }
            &.w8 {
                .loader {
                    display: block;
                    font-size: 13px;
                    img { margin-right: 5px; }
                }
                ul {
                    display: none;
                }
            }
        }
        p.txt {
            font-size: 18px;
            text-align: center;
        }
        p.txt2 {
            font-size: 14px;
            text-align: center;
            color: #000;
        }
        .help {
            display: flex;
            justify-content: space-between;
            div {
                width: 50%;
                text-align: center;
                img {
                    width: 40px;
                    height: 40px;
                }
                p {
                    margin-bottom: 0;
                    color: #0000008f;
                    font-size: 14px;
                    margin-top: 6px;
                }
            }
        }
        .remember {
            text-align: center;
            margin-bottom: 30px;
            span {
                position: relative;
                font-size: 16px;
                text-align: center;
                padding-left: 25px;
                &:before {
                    content: '';
                    border: 1px solid #86868b;
                    border-radius: 3px;
                    width: 16px;
                    height: 16px;
                    position: absolute;
                    left: 0;
                    top: 2px;
                }
            }
        }
        .links {
            padding: 0;
            margin: 0;
            text-align: center;
            li {
                list-style-type: none;
                font-size: 14px;
                color: #06c;
                cursor: pointer;
                margin-bottom: 5px;
                &:last-child { margin-bottom: 0; }
                &:hover { text-decoration: underline; }
            }
        }
    }
}

#footer {
    background: #F2F2F7;
    padding: 30px 0;
    .container {
        display: flex;
        justify-content: space-between;
        @include respond-down(sm) {
            display: block;
        }
    }
    p {
        margin-bottom: 0;
        font-size: 12px;
        color: #0000008f;
    }
    ul {
        padding: 0;
        margin: 0;
        @include respond-down(sm) { margin-bottom: 10px; }
        li {
            list-style-type: none;
            display: inline-block;
            color: #0000008f;
            position: relative;
            font-size: 12px;
            padding-right: 7px;
            margin-right: 7px;
            cursor: pointer;
            &:after {
                content: '';
                height: 17px;
                width: 1px;
                background: #78788029;
                position: absolute;
                right: -2px;
                top: 0;
            }
            &:last-child {
                padding-right: 0;
                margin-right: 0;
                &:after { display: none; }
            }
        }
    }
}