/*
 * Sign-in screens (login, forgot password, reset password).
 *
 * Everything is scoped under .tcs-sign so no authenticated page can be reached by it. Colours are the
 * Porto default skin's: #0088cc primary, #0077b3 its hover.
 *
 * NOTE the background is painted on .tcs-sign, not on body -- theme.css line 8 is
 * `body { background: #fff !important; }`, so a body background would never show.
 */

.tcs-sign {
    -webkit-font-smoothing: antialiased;
    background: #f4f6f9;
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

/* ---------------------------------------------------------------- brand panel */

.tcs-sign__brand {
    align-items: flex-start;
    background: linear-gradient(150deg, #0b9ae0 0%, #0088cc 45%, #00618f 100%);
    color: #fff;
    display: flex;
    flex: 0 0 42%;
    flex-direction: column;
    justify-content: space-between;
    max-width: 42%;
    overflow: hidden;
    padding: 48px 52px;
    position: relative;
}

/* A soft radial highlight so the flat gradient does not read as a solid block. */
.tcs-sign__brand:after {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 55%);
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.tcs-sign__brand > * {
    position: relative;
    z-index: 1;
}

/* The mark is dark red on white, so it needs a light plate to sit on. Made an explicit chip rather
   than leaving the artwork's own white edge to read as a printing error. */
.tcs-sign__logo {
    
    display: inline-block;
    line-height: 0;
    padding: 12px 18px;
}

.tcs-sign__logo img {
    height: 80px;
    width: auto;
}

.tcs-sign__pitch {
    margin: auto 0;
    padding: 40px 0;
}

.tcs-sign__pitch h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin: 0 0 14px;
}

.tcs-sign__pitch h1 strong {
    display: block;
    font-weight: 700;
}

.tcs-sign__pitch p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    max-width: 380px;
}

.tcs-sign__points {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.tcs-sign__points li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-bottom: 10px;
    padding-left: 26px;
    position: relative;
}

.tcs-sign__points li i {
    color: rgba(255, 255, 255, 0.65);
    left: 0;
    position: absolute;
    top: 3px;
}

.tcs-sign__brandfoot {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.tcs-sign__brandfoot a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.tcs-sign__brandfoot a:hover,
.tcs-sign__brandfoot a:focus {
    color: #fff;
    text-decoration: none;
}

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

.tcs-sign__main {
    align-items: center;
    display: flex;
    flex: 1 1 58%;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
}

.tcs-sign__mobilelogo {
    display: none;
    margin-bottom: 26px;
    text-align: center;
}

.tcs-sign__mobilelogo img {
    height: 42px;
    width: auto;
}

.tcs-sign__card {
    background: #fff;
    border: 1px solid #e6eaee;
    border-radius: 10px;
    box-shadow: 0 12px 32px -14px rgba(24, 39, 55, 0.18);
    max-width: 420px;
    padding: 38px 40px 34px;
    width: 100%;
}

.tcs-sign__head {
    margin-bottom: 26px;
}

.tcs-sign__head h2 {
    color: #2b3238;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin: 0 0 6px;
}

.tcs-sign__head p {
    color: #7d858d;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.tcs-sign__legal {
    color: #98a0a8;
    font-size: 11.5px;
    line-height: 1.7;
    margin: 26px 0 0;
    max-width: 420px;
    text-align: center;
}

.tcs-sign__legal a {
    color: #7d858d;
}

/* ---------------------------------------------------------------- fields */

.tcs-sign .form-group {
    margin-bottom: 18px;
}

.tcs-sign .control-label {
    color: #4a5158;
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.tcs-field {
    position: relative;
}

.tcs-field > i {
    color: #aab2ba;
    font-size: 14px;
    left: 15px;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.15s ease;
}

.tcs-sign .form-control {
    background: #fff;
    border: 1px solid #dde2e7;
    border-radius: 6px;
    box-shadow: none;
    color: #2b3238;
    font-size: 14px;
    height: 46px;
    padding: 10px 14px 10px 42px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.tcs-sign .form-control::-webkit-input-placeholder { color: #b2b9c0; }
.tcs-sign .form-control::-moz-placeholder { color: #b2b9c0; opacity: 1; }
.tcs-sign .form-control:-ms-input-placeholder { color: #b2b9c0; }

.tcs-sign .form-control:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.14);
    outline: none;
}

.tcs-field.is-focused > i {
    color: #0088cc;
}

/* Yii's ActiveForm puts .has-error on the form-group and renders .help-block for the message. */
.tcs-sign .has-error .form-control {
    border-color: #e8615c;
}

.tcs-sign .has-error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(232, 97, 92, 0.14);
}

.tcs-sign .has-error .control-label {
    color: #4a5158;
}

.tcs-sign .help-block {
    color: #d9534f;
    font-size: 12px;
    line-height: 1.5;
    margin: 7px 0 0;
}

.tcs-sign .help-block:empty {
    display: none;
    margin: 0;
}

/* Show/hide password */
.tcs-field__reveal {
    background: none;
    border: 0;
    color: #aab2ba;
    font-size: 14px;
    height: 46px;
    padding: 0 14px;
    position: absolute;
    right: 0;
    top: 0;
}

.tcs-field__reveal:hover,
.tcs-field__reveal:focus {
    color: #0088cc;
    outline: none;
}

.tcs-sign .tcs-field--reveal .form-control {
    padding-right: 42px;
}

/* ---------------------------------------------------------------- buttons, links */

.tcs-sign .tcs-btn {
    background: #0088cc;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    height: 46px;
    letter-spacing: 0.3px;
    margin-top: 6px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.tcs-sign .tcs-btn:hover,
.tcs-sign .tcs-btn:focus {
    background: #0077b3;
    box-shadow: 0 6px 14px -6px rgba(0, 119, 179, 0.6);
    color: #fff;
    outline: none;
}

.tcs-sign .tcs-btn:active {
    background: #006699;
    box-shadow: none;
}

.tcs-sign .tcs-btn[disabled] {
    opacity: 0.65;
}

.tcs-sign__labelrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.tcs-sign__labelrow .control-label {
    margin-bottom: 7px;
}

.tcs-link {
    color: #0088cc;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.tcs-link:hover,
.tcs-link:focus {
    color: #0077b3;
    text-decoration: underline;
}

.tcs-sign__foot {
    border-top: 1px solid #eef1f4;
    color: #7d858d;
    font-size: 12.5px;
    margin-top: 26px;
    padding-top: 20px;
    text-align: center;
}

.tcs-sign__foot a {
    font-weight: 600;
}

/* ---------------------------------------------------------------- 2FA steps */

.tcs-step {
    border-top: 1px solid #eef1f4;
    padding-top: 22px;
    position: relative;
}

.tcs-step + .tcs-step {
    margin-top: 22px;
}

.tcs-step__num {
    align-items: center;
    background: #e3f2fb;
    border-radius: 50%;
    color: #0088cc;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 14px;
    width: 36px;
}

.tcs-step__title {
    color: #2b3238;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.tcs-step__text {
    color: #7d858d;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.tcs-step__text strong {
    color: #4a5158;
}

.tcs-step__num ~ .tcs-step__title,
.tcs-step__num ~ .tcs-step__text {
    margin-left: 50px;
}

.tcs-sign .tcs-step .tcs-btn {
    margin-top: 0;
}

.tcs-sign .tcs-btn > i {
    font-size: 16px;
    margin-right: 6px;
}

.tcs-sign .form-control.tcs-code {
    padding-left: 14px;
}

.tcs-sign .form-control.tcs-code[inputmode="numeric"] {
    font-size: 18px;
    letter-spacing: 3px;
}

/* ---------------------------------------------------------------- alerts */

.tcs-alert {
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 12px 14px 12px 40px;
    position: relative;
}

.tcs-alert > i {
    left: 15px;
    position: absolute;
    top: 14px;
}

.tcs-alert--success {
    background: #eefaf3;
    border-color: #c8ecd9;
    color: #21764c;
}

.tcs-alert--error {
    background: #fdf0ef;
    border-color: #f6d3d1;
    color: #a8342f;
}

.tcs-alert--info {
    background: #eef7fc;
    border-color: #cbe6f5;
    color: #1b6d96;
}

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

@media (max-width: 991px) {
    .tcs-sign__brand {
        display: none;
    }

    .tcs-sign__main {
        flex: 1 1 100%;
    }

    .tcs-sign__mobilelogo {
        display: block;
    }
}

@media (max-width: 480px) {
    .tcs-sign__card {
        border-left: 0;
        border-radius: 8px;
        border-right: 0;
        padding: 28px 22px 24px;
    }

    .tcs-sign__main {
        padding: 26px 12px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .tcs-sign__brand {
        flex-basis: 38%;
        max-width: 38%;
        padding: 40px 36px;
    }

    .tcs-sign__pitch {
    margin: auto 0;
    padding: 40px 0;
}

.tcs-sign__pitch h1 {
        font-size: 26px;
    }
}
