/*
 * RedCol theme for Snikket
 */

/* ---------- page ---------- */

html,
body {
    min-height: 100%;
}

body#login {
    margin: 0;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: #f5f7fa;

    background:
        radial-gradient(
            900px circle at 15% 10%,
            rgba(58, 92, 155, 0.20),
            transparent 45%
        ),
        radial-gradient(
            800px circle at 90% 90%,
            rgba(120, 38, 54, 0.16),
            transparent 45%
        ),
        #0b0f14 !important;
}


/* ---------- vertical centering ---------- */

body#login #mwrap {
    min-height: calc(100vh - 70px);

    display: flex;
    align-items: center;
    justify-content: center;
}

body#login #mwrap > .filler {
    display: none;
}

body#login main {
    width: 100%;
    max-width: 560px;

    margin: 0 auto;
    padding: 32px 20px;
}


/* ---------- login card ---------- */

body#login .form.layout-expanded {
    box-sizing: border-box;

    width: 100%;
    margin: 0;

    padding: 42px 44px 38px;

    background: rgba(17, 22, 29, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}


/* ---------- title ---------- */

body#login .form-title {
    position: relative;

    margin: 0 0 14px;
    padding: 0;

    color: #ffffff;

    font-size: 29px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.025em;

    /*
     * Убираем возможное штатное оформление/фон
     * заголовка Snikket.
     */
    background: none !important;
}


/* собственный логотип над заголовком */

body#login .form-title::before {
    content: "";

    display: block;

    width: 52px;
    height: 52px;

    margin-bottom: 22px;

    background:
        url("/static/img/redcol-logo.svg")
        center / contain
        no-repeat;
}


/* ---------- description ---------- */

body#login .form-desc {
    margin: 0 0 34px;

    color: #9da9b7;

    font-size: 15px;
    line-height: 1.6;
}


/* ---------- form ---------- */

body#login #login-form {
    width: 100%;
}

body#login .f-ebox {
    margin-bottom: 18px;
}


/* ---------- inputs ---------- */

body#login .f-ebox input {
    box-sizing: border-box;

    width: 100%;
    height: 50px;

    margin: 0;
    padding: 0 15px;

    color: #f5f7fa !important;
    background: #0c1117 !important;

    border: 1px solid #29313b !important;
    border-radius: 9px !important;

    box-shadow: none !important;
    outline: none !important;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 120ms ease,
        box-shadow 120ms ease,
        background 120ms ease;
}

body#login .f-ebox input:hover {
    border-color: #3a4654 !important;
}

body#login .f-ebox input:focus {
    background: #0e141b !important;

    border-color: #e14c52 !important;

    box-shadow:
        0 0 0 3px rgba(225, 76, 82, 0.14)
        !important;
}

body#login .f-ebox input::placeholder {
    color: #667281;
    opacity: 1;
}


/* Chrome autofill */

body#login input:-webkit-autofill,
body#login input:-webkit-autofill:hover,
body#login input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f5f7fa;

    -webkit-box-shadow:
        0 0 0 1000px #0c1117 inset;

    transition:
        background-color 9999s ease-out;
}


/* ---------- button ---------- */

body#login .f-bbox {
    display: flex;
    justify-content: flex-end;

    margin-top: 26px;
}

body#login button.primary {
    min-height: 44px;

    padding: 0 21px !important;

    color: #ffffff !important;
    background: #d7444a !important;

    border: 1px solid #e2565c !important;
    border-radius: 9px !important;

    box-shadow:
        0 6px 18px rgba(215, 68, 74, 0.20)
        !important;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 120ms ease,
        border-color 120ms ease,
        transform 80ms ease,
        box-shadow 120ms ease;
}

body#login button.primary:hover {
    background: #e24c52 !important;
    border-color: #ee6268 !important;

    box-shadow:
        0 8px 24px rgba(215, 68, 74, 0.28)
        !important;
}

body#login button.primary:active {
    transform: translateY(1px);
}

body#login button.primary .icon {
    margin-right: 7px;
}


/* ---------- error message ---------- */

body#login .box.alert {
    margin-bottom: 22px;
    padding: 14px 16px;

    color: #ffdadd;
    background: rgba(185, 43, 53, 0.14);

    border: 1px solid rgba(231, 76, 87, 0.38);
    border-radius: 9px;
}

body#login .box.alert header {
    color: #ff858b;
    font-weight: 600;
}


/* ---------- footer ---------- */

body#login footer {
    box-sizing: border-box;

    width: 100%;
    padding: 20px;

    color: #586372;

    font-size: 12px;
    text-align: center;
}

body#login footer ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

body#login footer li {
    display: inline;
}

body#login footer li + li::before {
    content: " · ";
}

body#login footer a {
    color: #778494;
}

body#login footer a:hover {
    color: #aab3bd;
}


/* ---------- responsive ---------- */

@media (max-width: 620px) {

    body#login main {
        padding: 18px;
    }

    body#login .form.layout-expanded {
        padding: 30px 24px;
        border-radius: 14px;
    }

    body#login .form-title {
        font-size: 25px;
    }

    body#login .f-bbox {
        display: block;
    }

    body#login button.primary {
        width: 100%;
    }
}