@import 'colors';
@import 'mixins';
@import 'variables';

.hc-login-container {
    // font
    font-size: 16px;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;

    // background
    // background-image: url(../assets/login_bg.jpg);

    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    @include media-breakpoint-down(sm) {
        background-image: none !important;
    }
    //

    // position
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.hc-login {
    @include media-breakpoint-up(sm) {
        width: 400px;
        padding: 30px 40px;
        box-shadow: 0 0 13px rgba($black, 0.25);
        border-radius: 5px;
        margin-bottom: 50px;
        background: #f1f3f6;
    }

    fieldset {
        border: 0;
    }

    label {
        font-size: 1rem;
        color: $slate-gray-500;
        font-weight: normal;
        margin-top: 20px;
    }

    .login-input {
        width: 100%;
        height: 40px;
        padding: 0px 10px;
        margin-bottom: 20px;
        margin-top: 5px;
        box-sizing: border-box;
        border-color: $slate-gray-200;
        border-image: none;
        border-style: solid;
        font-family: inherit;
        font-size: inherit;
        line-height: inherit;
    }

    .hc-form-field {
        display: block;
    }

    a {
        color: $blue;
        text-decoration: none;
    }

    .privacy {
        line-height: 1rem;
        color: $slate-gray-400;
        padding: 0 30px;
        text-align: center;
        font-size: 12px;
    }

    .new-to-catalyst {
        position: relative;
        overflow: hidden;
        text-align: center;
        color: $slate-gray-400;
        margin: 40px 0 20px;
        > span {
            padding: 5px;
        }
        &:before,
        &:after {
            position: absolute;
            top: 51%;
            overflow: hidden;
            width: 50%;
            height: 2px;
            content: '\a0';
            background-color: $slate-gray-300;
        }
        &:before {
            margin-left: -50%;
            text-align: right;
        }
    }

    .forgot-password {
        float: right;
        font-size: 0.75rem;
        margin-top: 5px;
    }

    .logo {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        margin-bottom: 30px;
        padding-top: 10px;
    }

    .new-account {
        text-align: center;
        display: block;
        font-weight: 600;
    }

    .login-button {
        width: 100%;
        height: 40px;
        font-family: inherit;
        font-size: inherit;
        line-height: inherit;
        background-color: $primary-action;
        font-weight: 600;
        color: $white;
        border-radius: 10px;
        border: none;
        margin-top: 0.75rem;
        margin-bottom: 10px;
        &:hover {
            background-color: shade($primary-action, 10%);
        }
        &:active {
            background-color: shade($primary-action, 20%);
        }
    }
}

.hc-login-footer {
    @include media-breakpoint-down(sm) {
        display: none;
    }
    & > ul {
        margin: 0;
        list-style-type: none;
        -webkit-padding-start: 0;
        & > li {
            display: inline;
        }
        & > li:not(:last-child):after {
            content: '|';
            color: $white;
        }
    }

    a {
        padding: 15px;
        color: $white;
        text-decoration: none;
        font-size: 0.75rem;
    }
}
