/*
 * ELO Transport Manager System (TMS)
 *
 * Author: Malovichko Sergey mrSerg161@gmail.com
 * Date: 03.02.19 23:00
 *
 * @link https://tms.elo-group.com
 * @copyright Copyright (c) 2018-2019 ELO
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: Roboto, Helvetica, sans-serif;
    font-size: 1rem;
}

.login {
    display: flex;
    align-items: center;
    margin: 0;
    height: 100%;
}

.login__content {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.login__aside {
    width: 33.333%;
    flex-shrink: 0;
}

.login__aside::after,
.login__aside::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
}

.login__aside::after {
    background: #000;
    z-index: -1;
}

.login__aside::before {
    background-image: url(/img/containers.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0;
    filter: blur(2px) opacity(0.4);
}

.login__main {
    width: 100%;
}

.instruction {
    padding: 0 40px;
    color: #fff;
    position: relative;
    width: 450px;
    margin: 0 auto;
    max-width: 100%;
}

.instruction__title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: normal;
    padding-bottom: 0.8em;
    border-bottom: 1px solid #fff;
}

.instruction__description {
    margin: 0;
    padding-top: 1em;
    font-size: 1rem;
}

.link {
    color: inherit;
    text-decoration: underline;
}

.form {
    width: 450px;
    max-width: 100%;
    margin: 0 auto;
}

.form__error {
    color: #f36;
}

.form__error ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.form__fieldset {
    padding: 0;
    border: 0;
    margin: 0;
}

.form__title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: normal;
    padding: 0;
    padding-bottom: 20px;
    display: block;
    width: 100%;
}

.form__fields {
    padding: 20px 0;
}

.form__footer {
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.field {
    position: relative;
    padding-bottom: 20px;
}

.field + .field {
    padding-top: 10px;
}

.field__label {
    font-size: 0.8rem;
    color: #7a7a7a;
    display: block;
}

.field__input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #ccc;
    transition: all 0.4s ease;
    padding: 10px 5px;
    font-size: 1rem;
}

.field--has-error .field__input {
    border-bottom-color: #f36;
}

.field__input:focus {
    border-color: #2A3F54;
    outline: 0;
}

.field__error {
    color: #f36;
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 0.7rem;
}

.button {
    background: #2A3F54;
    padding: 15px 40px;
    text-transform: uppercase;
    font-size: 1rem;
    border: 0;
    color: #fff;
    transition: background-color 0.4s ease;
    font-family: inherit;
}

.button:hover {
    cursor: pointer;
    background: #1b2835;
}

@media screen and (max-width: 60em) {
    .login {
        align-items: flex-start;
    }

    .login__content {
        flex-direction: column;
    }

    .login__aside {
        width: 100%;
        position: relative;
        min-height: 33.333vh;
        display: flex;
        align-items: center;
    }

    .login__aside::after,
    .login__aside::before {
        width: 100%;
    }

    .instruction {
        padding: 20px;
    }

    .instruction__description {
        font-size: 0.9rem;
    }

    .instruction__title {
        font-size: 1.2rem;
    }

    .form {
        padding: 20px;
    }

    .form__fields {
        padding-top: 0;
    }

    .form__footer {
        justify-content: center;
    }

    .button {
        width: 100%;
    }
}