* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { color: #fff; background: #6bb4f2; }

body {
    background-color: #333;
    color: #fff;
    font-family: 'PT Sans Caption', sans-serif;
    font-size: 14px;
    margin: 0;
    min-height: 100vh;
}

a { color: #fff; text-decoration: none; }
a:hover { text-decoration: underline; }

.auth-page {
    min-height: 100vh;
    padding: 30px 0 40px;
}

.logo {
    display: block;
    width: 241px;
    height: 60px;
    margin: 0 auto 24px;
    background: url('/img/blogo.png') 0 -6px/241px no-repeat;
}

.wrapper {
    width: 350px;
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    position: relative;
}

.login-form {
    width: 100%;
    background: #f3f3f3;
    border: 1px solid #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    position: relative;
    overflow: hidden;
}

.header { padding: 40px 30px 30px; }

.auth-kicker,
.field-label,
.field-icon,
.status-panel,
.field-action {
    display: none;
}

.header h1 {
    color: #414848;
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 rgba(255,255,255,1);
}

.header span {
    color: #678889;
    display: block;
    font-size: 12px;
    line-height: 16px;
}

.content { padding: 0 30px 25px; }

.field-wrap {
    position: relative;
    margin-top: 25px;
}

.field-group {
    margin-top: 25px;
}

.field-group .field-wrap {
    margin-top: 0;
}

.input {
    width: 100%;
    padding: 15px 60px 15px 25px;
    background: #fff;
    border: 1px solid #cdd7db;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.25);
    color: #414848;
    font-family: inherit;
    font-size: 14px;
    margin-top: 0;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.input:hover,
.input:focus {
    background: #f8fbfc;
    border-color: #9eb5bf;
}

.input:focus {
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.18), 0 0 0 2px rgba(107,180,242,.18);
}

.user-icon, .pass-icon, .mail-icon {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 1px;
    right: 1px;
    border-radius: 0 5px 5px 0;
    border-left: 1px solid #666;
    background-color: rgba(65,72,72,.75);
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.user-icon { background-image: url('/tsi/usr.png'); }
.pass-icon { background-image: url('/tsi/pass.png'); }
.mail-icon { background-image: url('/tsi/mail.png'); }

.remember-row {
    color: #414848;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
}

.remember-row input[type='checkbox'] {
    margin: 0;
}

.remember-copy small {
    display: none;
}

.alert {
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 12px 14px;
}

.alert-error { background: #f8d7da; color: #842029; }
.alert-success { background: #d1e7dd; color: #0f5132; }

.footer {
    background: #d4dedf;
    border-top: 1px solid #fff;
    box-shadow: inset 0 1px 0 rgba(0,0,0,.15);
    min-height: 120px;
    padding: 24px 30px 34px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px 16px;
}

.compact-footer {
    min-height: 110px;
}

.footer > *:not(.footer-brand) {
    position: relative;
    z-index: 2;
}

.reglink {
    color: #9ba2a4;
    font-size: 18px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 220px;
}

.reglink a {
    color: #333;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

.secondary-button {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #b8c4c8;
    border-radius: 5px;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
    text-shadow: none;
}

.secondary-button:hover {
    background: #fff;
    text-decoration: none;
}

.button {
    background: #3A4757;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ccc;
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    padding: 11px 25px;
    position: relative;
    z-index: 2;
    min-width: 92px;
}

.button:hover { background: #5F6C78; }

.button:disabled {
    cursor: wait;
}

.button-loader {
    display: none;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: auth-spin .8s linear infinite;
}

.login-form.is-submitting .button-loader {
    display: inline-block;
}

.footer-brand {
    bottom: -1px;
    height: 125px;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: auto;
    opacity: .23;
    pointer-events: none;
    z-index: 1;
}

.wrfoot {
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
}

.left-foot, .right-foot { font-size: 13px; }

.dashboard-content {
    color: #414848;
    display: grid;
    gap: 10px;
    padding-bottom: 30px;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 420px) {
    .wrapper,
    .login-form {
        width: 100%;
    }

    .header {
        padding: 32px 24px 24px;
    }

    .content {
        padding: 0 24px 22px;
    }

    .footer {
        padding: 22px 24px 28px;
    }

    .reglink {
        max-width: 100%;
        font-size: 17px;
    }

    .button {
        margin-left: auto;
    }

    .footer-brand {
        height: 105px;
    }

    .wrfoot {
        flex-direction: column;
        align-items: flex-start;
    }
}
