* {
    box-sizing: border-box;
}

html,
body.tsm-login-v2,
.tsm-auth-shell {
    min-height: 100%;
    margin: 0;
}

body.tsm-login-v2,
body.tsm-login-v2 input,
body.tsm-login-v2 button {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    text-transform: none !important;
}

body.tsm-login-v2 {
    color: #172033;
    background: #f4f6f9;
    -webkit-font-smoothing: antialiased;
}

body.tsm-login-v2 h1,
body.tsm-login-v2 h2,
body.tsm-login-v2 h3,
body.tsm-login-v2 h4,
body.tsm-login-v2 h5,
body.tsm-login-v2 h6 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.tsm-auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, 42%) minmax(480px, 58%);
    min-height: 100vh;
}

.tsm-auth-story {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 100vh;
    padding: 2.2rem 3rem;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(83, 146, 255, .34), transparent 34%),
        radial-gradient(circle at 15% 80%, rgba(44, 191, 198, .17), transparent 36%),
        linear-gradient(145deg, #111827 0%, #14233c 55%, #17345a 100%);
    flex-direction: column;
}

.tsm-auth-story::before,
.tsm-auth-story::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.tsm-auth-story::before {
    top: -210px;
    right: -170px;
    width: 520px;
    height: 520px;
}

.tsm-auth-story::after {
    right: -75px;
    bottom: -215px;
    width: 470px;
    height: 470px;
}

.tsm-auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.05rem;
}

.tsm-auth-logo {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    background: transparent;
}

.tsm-auth-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 1))
        drop-shadow(0 0 1px rgba(255, 255, 255, .92))
        drop-shadow(0 2px 0 rgba(255, 255, 255, .18))
        drop-shadow(0 7px 7px rgba(0, 0, 0, .48));
    transform: translateY(-1px);
}

.tsm-auth-brand > div {
    display: flex;
    flex-direction: column;
}

.tsm-auth-brand strong {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.tsm-auth-brand > div > span {
    margin-top: .15rem;
    color: #8da0bc;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.tsm-auth-story-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: auto 0;
    padding: 4rem 0;
}

.tsm-auth-eyebrow {
    display: inline-flex;
    padding: .38rem .65rem;
    color: #bbd4ff;
    background: rgba(64, 132, 245, .16);
    border: 1px solid rgba(128, 175, 255, .22);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.tsm-auth-story-content h1 {
    max-width: 540px;
    margin: 1.4rem 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.tsm-auth-story-content > p {
    max-width: 510px;
    margin: 0;
    color: #b8c5d8;
    font-size: .92rem;
    line-height: 1.65;
}

.tsm-auth-story-content ul {
    display: grid;
    gap: .8rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.tsm-auth-story-content li {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #dfe7f2;
    font-size: .78rem;
}

.tsm-auth-story-content li i {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #9cc0ff;
    background: rgba(64, 132, 245, .18);
    border-radius: 50%;
    font-size: .6rem;
}

.tsm-auth-story-footer {
    position: relative;
    z-index: 1;
    color: #7f92ae;
    font-size: .67rem;
}

.tsm-auth-main {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #f6f8fb;
    flex-direction: column;
}

.tsm-auth-mobile-brand {
    display: none;
}

.tsm-auth-card {
    width: min(100%, 430px);
    padding: 2.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.tsm-auth-card-head > span {
    color: #2563eb;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tsm-auth-card-head h2 {
    margin: .55rem 0 .4rem;
    color: #172033;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -.03em;
}

.tsm-auth-card-head p {
    margin: 0 0 1.7rem;
    color: #6b7689;
    font-size: .78rem;
}

.tsm-auth-field {
    margin-bottom: 1rem;
}

.tsm-auth-field label,
.tsm-auth-label-row label {
    margin: 0 0 .4rem;
    color: #4c596e;
    font-size: .7rem;
    font-weight: 600;
}

.tsm-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tsm-auth-label-row a {
    margin-bottom: .4rem;
    color: #2563eb;
    font-size: .67rem;
    font-weight: 500;
}

.tsm-auth-input-wrap {
    position: relative;
}

.tsm-auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: .95rem;
    z-index: 2;
    color: #8d99aa;
    font-size: .78rem;
    transform: translateY(-50%);
}

.tsm-login-v2 .tsm-auth-input-wrap .form-control {
    width: 100%;
    height: 3rem;
    padding: .6rem .9rem .6rem 2.65rem;
    color: #263249;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: .55rem;
    box-shadow: none;
    font-size: .78rem;
}

.tsm-login-v2 .tsm-auth-input-wrap .form-control::placeholder {
    color: #a1aaba;
}

.tsm-login-v2 .tsm-auth-input-wrap .form-control:focus {
    border-color: #75a2f3;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.tsm-auth-error {
    display: block;
    margin-top: .35rem;
    color: #c53939;
    font-size: .67rem;
}

.tsm-auth-status {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: 0 0 1.15rem;
    padding: .75rem .85rem;
    color: #176b47;
    background: #edf9f3;
    border: 1px solid #bce8d2;
    border-radius: .55rem;
    font-size: .7rem;
    line-height: 1.45;
}

.tsm-auth-status i {
    margin-top: .12rem;
}

.tsm-auth-submit {
    display: flex;
    width: 100%;
    height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.35rem;
    color: #fff;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: .55rem;
    box-shadow: 0 7px 18px rgba(37, 99, 235, .2);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    transition: background .15s, transform .12s;
}

.tsm-auth-submit:hover {
    background: #1d4ed8;
}

.tsm-auth-submit:active {
    transform: translateY(1px);
}

.tsm-auth-submit:disabled {
    opacity: .62;
    cursor: wait;
}

.tsm-auth-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    color: #6b7689;
    border-top: 1px solid #edf0f4;
    font-size: .7rem;
}

.tsm-auth-signup a {
    color: #2563eb;
    font-weight: 600;
}

.tsm-auth-back {
    display: block;
    margin-top: .85rem;
    color: #6f7c8f;
    font-size: .67rem;
    font-weight: 500;
    text-align: center;
}

.tsm-auth-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: 1.25rem;
    color: #8792a3;
    font-size: .62rem;
}

.tsm-auth-legal a {
    color: #6f7c8f;
}

.tsm-auth-legal a:hover,
.tsm-auth-label-row a:hover,
.tsm-auth-signup a:hover,
.tsm-auth-back:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 980px) {
    .tsm-auth-shell {
        display: block;
    }

    .tsm-auth-story {
        display: none;
    }

    .tsm-auth-main {
        padding: 2rem 1rem;
    }

    .tsm-auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: .7rem;
        margin-bottom: 1.3rem;
    }

    .tsm-auth-mobile-brand img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

    .tsm-auth-mobile-brand strong {
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: .07em;
    }
}

@media (max-width: 520px) {
    .tsm-auth-main {
        justify-content: flex-start;
        padding: 1.25rem .85rem;
    }

    .tsm-auth-card {
        padding: 1.4rem 1.1rem;
        border-radius: .8rem;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    }

    .tsm-auth-card-head h2 {
        font-size: 1.45rem;
    }

    .tsm-auth-signup {
        align-items: flex-start;
        flex-direction: column;
    }

    .tsm-auth-legal {
        flex-wrap: wrap;
    }
}
