/* =========================================================
   MBBOT - Medieval Login Theme
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at 50% 25%, rgba(120, 90, 45, 0.18), transparent 35%),
        linear-gradient(
            180deg,
            #11151c 0%,
            #202731 42%,
            #171a1d 70%,
            #0d0f12 100%
        );

    font-family: Georgia, "Times New Roman", serif;
    color: #eee4ce;
    font-weight: normal;
    font-style: normal;
    text-decoration: none;

    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================================
   Main area
   ========================================================= */

.content {
    width: 100%;
    min-height: 100vh;
}

.front-panel-anchor {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-height: 100vh;

    padding: 30px 15px;

    position: relative;
}

/* subtle medieval atmosphere */
.front-panel-anchor::before {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at center,
            transparent 25%,
            rgba(0, 0, 0, 0.35) 100%
        );

    z-index: 0;
}

/* =========================================================
   Login panel
   ========================================================= */

.front-panel {
    position: relative;
    z-index: 1;

    width: 380px;
    min-width: 280px;

    min-height: 500px;

    margin: auto;
    padding: 0 32px 25px;

    background:
        linear-gradient(
            145deg,
            rgba(48, 39, 29, 0.98),
            rgba(27, 24, 22, 0.98)
        );

    color: #eee4ce;

    border: 1px solid #80683f;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.75),
        inset 0 0 0 1px rgba(210, 176, 105, 0.12),
        inset 0 0 35px rgba(0, 0, 0, 0.5);

    text-align: center;
    list-style-type: none;

    font-size: 13px;
}

/* golden decorative frame */
.front-panel::before {
    content: "";

    position: absolute;
    inset: 7px;

    border: 1px solid rgba(177, 143, 75, 0.38);

    pointer-events: none;
}

/* =========================================================
   Top banner
   ========================================================= */

.front-panel .banner {
    display: flex;
    flex-direction: row;

    position: relative;
    z-index: 2;

    margin: 0 -32px 18px;

    min-height: 42px;

    background:
        linear-gradient(
            180deg,
            #403525,
            #241e18
        );

    border-bottom: 1px solid #765f37;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.45);
}

.front-panel .banner > a {
    flex: 50%;

    color: #cdb071;
    text-decoration: none;

    margin: auto;
    padding: 13px 5px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;

    transition: 0.2s;
}

.front-panel .banner > a:hover {
    color: #f3d58b;
    background-color: rgba(180, 145, 73, 0.08);
}

/* =========================================================
   MBBOT logo
   ========================================================= */

.ashes-logo {
    width: 96px;
    height: 96px;

    margin: 20px auto 12px;

    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;

    border-radius: 50%;

    border: 2px solid #80683f;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.65),
        0 0 0 4px rgba(120, 94, 47, 0.12);
}

/* =========================================================
   Login form
   ========================================================= */

.front-panel > form {
    margin: 0;
}

.input-field-container {
    width: 100%;
}

.input-field-container li {
    list-style: none;
}

/* =========================================================
   Inputs
   ========================================================= */

.input-field {
    display: block;

    width: 100%;

    border-radius: 3px;

    margin: 8px 0;

    border: 1px solid #574a38;

    background:
        linear-gradient(
            180deg,
            #18191b,
            #101113
        );

    color: #eee4ce;

    padding: 12px 14px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;

    outline: none;

    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.55);

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.input-field::placeholder {
    color: #817a6d;
}

.input-field:focus {
    border-color: #b39455;

    box-shadow:
        0 0 0 1px rgba(179, 148, 85, 0.18),
        inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   Remember password
   ========================================================= */

.remember-password {
    text-align: center;

    margin: 12px auto;

    color: #aaa08e;

    font-size: 12px;
}

.remember-password input {
    vertical-align: middle;
    margin-right: 6px;
}

.checkbox {
    margin: auto;

    text-align: left;

    margin-left: 15%;
    margin-right: 15%;
}

/* =========================================================
   Login button
   ========================================================= */

.signin-signout {
    display: block;

    width: 100%;
    height: 42px;

    margin: 18px 0 12px;

    text-decoration: none;

    background:
        linear-gradient(
            180deg,
            #9c7940,
            #60451f
        );

    border-radius: 3px;

    color: #fff3d0;

    border: 1px solid #c09a55;

    cursor: pointer;

    outline: none;
    overflow: hidden;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: bold;

    letter-spacing: 1px;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.8);

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.45),
        inset 0 1px rgba(255, 238, 190, 0.25);

    transition:
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
}

.signin-signout:hover {
    background:
        linear-gradient(
            180deg,
            #b08c4c,
            #765626
        );

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.55),
        0 0 10px rgba(191, 151, 76, 0.18);
}

.signin-signout:active {
    transform: translateY(1px);
}

/* =========================================================
   Login error/info
   ========================================================= */

.login-info-banner {
    min-height: 20px;

    color: #d87862;

    padding: 6px;

    font-size: 12px;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
    padding-top: 10px;
    padding-bottom: 2%;
}

.footer > * > a {
    color: #b89a5b;

    text-decoration: none;

    margin: auto;

    transition: 0.2s;
}

.footer > * > a:hover {
    color: #e0c27e;
}

/* =========================================================
   Token question
   ========================================================= */

.token-question-hover > p {
    margin: auto;

    color: #eee4ce;

    background-color: #29251f;

    padding: 5px;

    text-align: center;

    border: solid 1px #665536;
}

/* =========================================================
   Existing application elements
   ========================================================= */

.item-container {
    border: red solid 1px;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: row;
}

.item {
    border: blue solid 1px;

    width: 100%;

    margin: auto;
}

.item .header {
    text-align: center;
}

.item-icon {
    margin: auto;
    margin-top: 10%;
    margin-bottom: 10%;

    width: 35%;
}

.item-icon img {
    width: 100%;
}

.item button {
    border: red solid;

    width: 50%;

    margin: 25%;
}

.sidebar {
    width: 250px;

    border: red solid;

    flex-shrink: 3;

    text-align: center;
}

.sidebar .logo {
    width: 64px;
    margin: auto;
}

.sidebar .logo img {
    width: 64px;
    height: 64px;
}

.overview {
    display: flex;
    flex-direction: row;

    margin: 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 500px) {

    .front-panel-anchor {
        padding: 15px 10px;
    }

    .front-panel {
        width: 100%;
        max-width: 380px;

        padding-left: 24px;
        padding-right: 24px;
    }

    .front-panel .banner {
        margin-left: -24px;
        margin-right: -24px;
    }

    .ashes-logo {
        width: 84px;
        height: 84px;
    }
}