* { 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;
    }
}

.auth-page--legacy-login {
    align-items: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(255,255,255,.055), transparent 42%),
        linear-gradient(180deg, #1b1b1b 0%, #151515 45%, #121212 100%);
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.auth-page--legacy-login .logo,
.auth-page--legacy-login .wrfoot {
    display: none;
}

.auth-page--legacy-login .wrapper {
    max-width: calc(100vw - 32px);
    width: 940px;
}

.legacy-login-form {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(285px, 340px) minmax(190px, 1fr);
    min-height: 520px;
    overflow: visible;
    padding: 58px 0 48px;
}

.legacy-login-brand,
.legacy-login-main,
.legacy-login-register {
    min-height: 330px;
}

.legacy-login-brand {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 0 28px;
}

.legacy-brand-logo {
    background: url('/img/blogo.png') center 0 / 174px 97px no-repeat;
    display: block;
    filter: drop-shadow(0 0 7px rgba(255,255,255,.16));
    height: 46px;
    margin: auto;
    max-width: 100%;
    width: 174px;
}

.legacy-login-main {
    border-left: 1px solid #303030;
    border-right: 1px solid #303030;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 44px;
}

.legacy-login-copy {
    margin-bottom: 18px;
}

.legacy-login-copy h1 {
    color: #bdbdbd;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 1px 2px #000;
}

.legacy-login-copy p {
    color: #b6b6b6;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    max-width: 250px;
    text-shadow: 0 1px 2px #000;
}

.legacy-login-form .alert {
    border-radius: 2px;
    font-size: 12px;
    margin: 0 0 12px;
    padding: 9px 10px;
}

.legacy-login-form .field-wrap {
    margin-top: 13px;
}

.legacy-login-form .input {
    background: linear-gradient(180deg, #ffffff 0%, #eeeeee 50%, #fafafa 100%);
    border: 1px solid #777;
    border-radius: 2px;
    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.32),
        0 1px 0 rgba(255,255,255,.08);
    color: #575757;
    font-size: 14px;
    font-weight: 700;
    height: 38px;
    padding: 0 14px 0 48px;
}

.legacy-login-form .input:hover,
.legacy-login-form .input:focus {
    background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 52%, #ffffff 100%);
    border-color: #a3a3a3;
}

.legacy-login-form .input:focus {
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.2),
        0 0 0 2px rgba(255,255,255,.08);
}

.legacy-login-form .user-icon,
.legacy-login-form .pass-icon,
.legacy-login-form .mail-icon {
    background-color: #d7d7d7;
    background-size: 15px 15px;
    border-left: 0;
    border-radius: 1px 0 0 1px;
    border-right: 1px solid #a8a8a8;
    height: 36px;
    left: 1px !important;
    right: auto !important;
    top: 1px;
    width: 37px;
}

.legacy-login-form .mail-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='1.5'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
    background-size: 18px 18px;
}

.legacy-login-form .legacy-select {
    padding-left: 14px;
}

.legacy-login-form .remember-row {
    color: #747474;
    font-size: 11px;
    gap: 6px;
    margin-top: 10px;
}

.legacy-login-terms {
    color: #686868;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 8px;
    text-shadow: 0 1px 1px #000;
}

.legacy-login-terms a {
    color: #8f8f8f;
    text-decoration: underline;
}

.legacy-option-row,
.legacy-check-row,
.legacy-select-row {
    color: #8f8f8f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 1px #000;
}

.legacy-option-row {
    background: rgba(255,255,255,.04);
    border: 1px solid #292929;
    border-radius: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 6px;
}

.legacy-choice,
.legacy-check-row {
    align-items: center;
    display: flex;
    gap: 7px;
}

.legacy-choice {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    border: 1px solid #353535;
    border-radius: 3px;
    color: #d5d5d5;
    cursor: pointer;
    flex: 1 1 112px;
    min-height: 32px;
    padding: 7px 10px;
}

.legacy-choice input[type='radio'],
.legacy-check-row input[type='checkbox'] {
    appearance: none;
    background: #f2f2f2;
    border: 1px solid #777;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.32), 0 1px 0 rgba(255,255,255,.07);
    display: inline-block;
    flex: 0 0 auto;
    height: 15px;
    margin: 0;
    width: 15px;
}

.legacy-choice input[type='radio'] {
    border-radius: 50%;
}

.legacy-choice input[type='radio']:checked {
    background:
        radial-gradient(circle, #ffbf30 0 36%, transparent 40%),
        #f5f5f5;
    border-color: #f0ad22;
}

.legacy-check-row {
    background: rgba(255,255,255,.035);
    border: 1px solid #2b2b2b;
    border-radius: 3px;
    color: #d5d5d5;
    padding: 9px 10px;
}

.legacy-check-row input[type='checkbox'] {
    border-radius: 2px;
}

.legacy-check-row input[type='checkbox']:checked {
    background:
        linear-gradient(135deg, transparent 0 47%, #111 48% 58%, transparent 59%),
        linear-gradient(45deg, transparent 0 42%, #111 43% 55%, transparent 56%),
        #ffbf30;
    border-color: #f0ad22;
}

.legacy-check-row,
.legacy-select-row,
.legacy-human-check {
    margin-top: 13px;
}

.legacy-select-row label {
    display: block;
    margin-bottom: 7px;
}

.legacy-human-check {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    border: 1px solid #303030;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.35);
    padding: 10px;
}

.legacy-human-check-title {
    color: #cfcfcf;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 1px 1px #000;
}

.legacy-human-check-widget {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 65px;
    overflow: hidden;
}

.legacy-invite-steps {
    color: #b8b8b8;
    display: grid;
    font-size: 12px;
    gap: 7px;
    line-height: 1.45;
    margin: 10px 0 0 17px;
    padding: 0;
}

.legacy-help-link {
    color: #f2c85f;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    text-shadow: 0 1px 1px #000;
}

.legacy-login-form .button,
.legacy-login-register .secondary-button {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 43%),
        linear-gradient(180deg, #2d2f33 0%, #161719 100%);
    border: 1px solid #050505;
    border-radius: 3px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.16),
        0 1px 2px rgba(0,0,0,.75);
    color: #dedede;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    line-height: 40px;
    padding: 0 18px;
    text-shadow: 0 1px 1px #000;
    text-transform: lowercase;
}

.legacy-login-form .button {
    margin: 36px auto 0;
    width: 198px;
}

.legacy-login-form .button:hover,
.legacy-login-register .secondary-button:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.02) 45%),
        linear-gradient(180deg, #393c41 0%, #191a1d 100%);
    text-decoration: none;
}

.legacy-login-links {
    display: grid;
    gap: 9px;
    justify-items: center;
    margin-top: 34px;
}

.legacy-login-links a {
    color: #efefef;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
}

.legacy-language-links {
    align-items: center;
    color: #7d7d7d;
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 7px;
    justify-content: center;
    margin-top: 22px;
}

.legacy-language-links a {
    color: #cfcfcf;
    font-weight: 700;
}

.legacy-login-register {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 26px;
    justify-content: center;
    padding: 0 42px;
    text-align: center;
}

.legacy-login-register p {
    color: #b8b8b8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 2px #000;
}

.legacy-login-register .secondary-button {
    width: 198px;
}

.legacy-register-form {
    grid-template-columns: minmax(190px, 1fr) minmax(330px, 410px) minmax(190px, 1fr);
    min-height: 650px;
    padding: 44px 0;
}

.legacy-register-form .button,
.legacy-recovery-form .button {
    margin-top: 24px;
}

.legacy-recovery-form {
    grid-template-columns: minmax(190px, 1fr) minmax(330px, 410px) minmax(190px, 1fr);
    min-height: 470px;
}

@media (max-width: 760px) {
    .auth-page--legacy-login {
        align-items: flex-start;
        padding: 28px 0;
    }

    .auth-page--legacy-login .wrapper {
        width: calc(100vw - 28px);
    }

    .legacy-login-form {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 28px 0 34px;
    }

    .legacy-login-brand,
    .legacy-login-main,
    .legacy-login-register {
        min-height: 0;
    }

    .legacy-login-brand {
        padding: 0 24px 28px;
    }

    .legacy-brand-logo {
        background-size: 156px 87px;
        height: 42px;
        width: 156px;
    }

    .legacy-login-main {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid #303030;
        padding: 28px 24px 0;
    }

    .legacy-login-copy p {
        max-width: none;
    }

    .legacy-login-register {
        border-top: 1px solid #303030;
        gap: 16px;
        margin-top: 28px;
        padding: 26px 24px 0;
    }

    .legacy-login-form .button,
    .legacy-login-register .secondary-button {
        width: min(100%, 220px);
    }
}
