:root {
    --tt-navy-950: #031a38;
    --tt-navy-900: #06234c;
    --tt-navy-800: #0a3670;
    --tt-blue: #1264e8;
    --tt-blue-dark: #0d51c5;
    --tt-cyan: #00a9c6;
    --tt-teal: #00b1a9;
    --tt-green: #19a75f;
    --tt-gold: #f2b632;
    --tt-ink: #0d2345;
    --tt-copy: #5f7190;
    --tt-line: #d9e3ef;
    --tt-soft: #f7faff;
    --tt-danger: #bd3f4b;
    --tt-shadow: 0 26px 75px rgba(21, 49, 86, .16);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f7faff;
}

body.tt-auth-page {
    position: relative;
    display: grid;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 44px 24px;
    place-items: center;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 16% 17%, rgba(18, 100, 232, .07), transparent 25rem),
        radial-gradient(circle at 87% 82%, rgba(0, 177, 169, .07), transparent 27rem),
        linear-gradient(135deg, #fbfdff, #f4f8fe 56%, #fbfdff);
    color: var(--tt-ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.tt-auth-page::before,
body.tt-auth-page::after {
    content: "";
    position: fixed;
    pointer-events: none;
    opacity: .42;
}

body.tt-auth-page::before {
    inset: 0;
    background-image:
        linear-gradient(90deg, transparent 49.5%, rgba(18,100,232,.025) 50%, transparent 50.5%),
        linear-gradient(transparent 49.5%, rgba(18,100,232,.025) 50%, transparent 50.5%);
    background-size: 72px 72px;
}

body.tt-auth-page::after {
    width: 480px;
    height: 480px;
    right: -280px;
    top: -270px;
    border: 3px dashed rgba(18,100,232,.18);
    border-radius: 50%;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

.tt-doodle {
    position: fixed;
    pointer-events: none;
    color: rgba(18, 100, 232, .08);
    font-family: Georgia, serif;
    font-weight: 700;
    line-height: 1;
}

.tt-doodle-1 { left: 4%; top: 13%; font-size: 74px; transform: rotate(-14deg); }
.tt-doodle-2 { right: 6%; top: 24%; font-size: 58px; }
.tt-doodle-3 { left: 8%; bottom: 9%; font-size: 80px; transform: rotate(9deg); }
.tt-doodle-4 { right: 9%; bottom: 9%; font-size: 91px; }

.tt-auth-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(390px, 47.5%) minmax(450px, 52.5%);
    width: min(1120px, 100%);
    min-height: 760px;
    overflow: hidden;
    border: 1px solid rgba(215, 225, 238, .92);
    border-radius: 27px;
    background: #fff;
    box-shadow: var(--tt-shadow);
}

.tt-auth-story {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 42px 48px 30px;
    overflow: hidden;
    flex-direction: column;
    background:
        radial-gradient(circle at 87% 85%, rgba(0, 177, 169, .23), transparent 17rem),
        radial-gradient(circle at 8% 22%, rgba(18, 100, 232, .22), transparent 21rem),
        linear-gradient(155deg, var(--tt-navy-950), var(--tt-navy-900) 57%, #083765);
    color: #fff;
}

.tt-auth-story::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -146px;
    top: 44%;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
    box-shadow: 0 0 0 43px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.018);
}

.tt-auth-story::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image: radial-gradient(rgba(255,255,255,.8) .75px, transparent .75px);
    background-size: 23px 23px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
    mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.tt-brand-card,
.tt-story-copy,
.tt-learning-art,
.tt-story-proof {
    position: relative;
    z-index: 1;
}

.tt-brand-card {
    width: fit-content;
    max-width: 100%;
    padding: 10px 13px 9px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 30px rgba(0,12,31,.18);
}

.tt-brand-card img {
    display: block;
    width: min(280px, 100%);
    height: auto;
}

.tt-brand-card span {
    display: block;
    margin: 6px 4px 0;
    color: #4b607e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-align: center;
    text-transform: uppercase;
}

.tt-story-copy {
    margin-top: 52px;
}

.tt-story-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
    padding: 7px 11px;
    border: 1px solid rgba(140, 226, 236, .22);
    border-radius: 999px;
    background: rgba(0, 174, 190, .12);
    color: #a8edf1;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.tt-story-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 4.2vw, 58px);
    font-weight: 820;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.tt-story-copy p {
    max-width: 390px;
    margin: 20px 0 0;
    color: rgba(237, 246, 255, .78);
    font-size: 17px;
    line-height: 1.65;
}

.tt-learning-art {
    min-height: 260px;
    margin: auto -10px -7px;
}

.tt-learning-art svg {
    display: block;
    width: 100%;
    max-height: 300px;
}

.tt-story-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(238,247,255,.75);
    font-size: 11px;
    font-weight: 700;
}

.tt-story-proof i {
    margin-right: 5px;
    color: #59e5d0;
}

.tt-auth-actions {
    display: flex;
    min-width: 0;
    padding: 58px 68px 44px;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0, rgba(18,100,232,.035), transparent 17rem),
        #fff;
}

.tt-mobile-brand {
    display: none;
}

.tt-form-panel {
    width: 100%;
    max-width: 490px;
    margin: auto;
    animation: ttPanelIn .35s ease both;
}

@keyframes ttPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tt-form-heading {
    margin-bottom: 31px;
}

.tt-form-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--tt-blue);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.tt-form-heading h2 {
    margin: 0;
    color: var(--tt-ink);
    font-size: clamp(33px, 4vw, 43px);
    font-weight: 820;
    letter-spacing: -.045em;
    line-height: 1.1;
}

.tt-form-heading p {
    margin: 9px 0 0;
    color: var(--tt-copy);
    font-size: 16px;
}

.tt-form {
    display: grid;
    gap: 19px;
}

.tt-field {
    min-width: 0;
}

.tt-field > label {
    display: block;
    margin-bottom: 8px;
    color: var(--tt-ink);
    font-size: 17px;
    font-weight: 760;
}

.tt-input-wrap {
    position: relative;
    display: flex;
    min-height: 57px;
    align-items: center;
    border: 1px solid var(--tt-line);
    border-radius: 12px;
    background: #fbfdff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tt-input-wrap:focus-within {
    border-color: var(--tt-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18, 100, 232, .1);
}

.tt-input-wrap > i {
    flex: 0 0 50px;
    color: #6f82a2;
    font-size: 17px;
    text-align: center;
}

.tt-input-wrap input,
.tt-input-wrap select {
    width: 100%;
    min-width: 0;
    height: 55px;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tt-ink);
    font-size: 14px;
    font-weight: 540;
}

.tt-input-wrap input::placeholder {
    color: #8b99ae;
    opacity: 1;
}

.tt-input-wrap select {
    appearance: none;
    cursor: pointer;
}

.tt-password-toggle {
    display: grid;
    flex: 0 0 47px;
    height: 45px;
    padding: 0;
    place-items: center;
    border: 0;
    outline: 0;
    background: transparent;
    color: #657998;
    cursor: pointer;
}

.tt-password-toggle:hover,
.tt-password-toggle:focus-visible {
    color: var(--tt-blue);
}

.tt-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -2px;
    font-size: 13px;
}

.tt-form-options a,
.tt-text-button {
    color: var(--tt-blue);
    font-weight: 720;
    text-decoration: none;
}

.tt-form-options a:hover,
.tt-text-button:hover {
    color: var(--tt-blue-dark);
    text-decoration: underline;
}

.tt-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #60728f;
    cursor: pointer;
}

.tt-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--tt-blue);
}

.tt-submit-btn {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 58px;
    margin-top: 2px;
    padding: 0 23px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tt-blue), #1d72ef);
    color: #fff;
    font-size: 16px;
    font-weight: 780;
    box-shadow: 0 14px 27px rgba(18, 100, 232, .22);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tt-submit-btn i {
    position: absolute;
    right: 22px;
}

.tt-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 30px rgba(18, 100, 232, .28);
    filter: saturate(1.08);
}

.tt-submit-btn:focus-visible {
    outline: 3px solid rgba(18, 100, 232, .22);
    outline-offset: 3px;
}

.tt-submit-btn:disabled {
    opacity: .68;
    cursor: wait;
    transform: none;
}

.tt-submit-btn.is-loading span {
    opacity: .55;
}

.tt-submit-btn.is-loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ttSpin .7s linear infinite;
}

@keyframes ttSpin {
    to { transform: rotate(360deg); }
}

.tt-switch-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
    padding-top: 25px;
    border-top: 1px solid #e3e9f1;
    color: #667894;
    font-size: 13px;
}

.tt-text-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tt-security-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 34px;
    padding: 15px 16px;
    border: 1px solid #dfebfa;
    border-radius: 12px;
    background: #f7fbff;
}

.tt-security-note > i {
    margin-top: 2px;
    color: var(--tt-blue);
    font-size: 24px;
}

.tt-security-note span {
    display: flex;
    color: #73839a;
    font-size: 10.5px;
    line-height: 1.45;
    flex-direction: column;
}

.tt-security-note strong {
    color: var(--tt-ink);
    font-size: 12px;
}

.tt-form-message {
    display: none;
    margin: -13px 0 18px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #fff0f2;
    color: var(--tt-danger);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.tt-form-message.is-visible:not(:empty) {
    display: block;
}

.tt-form-message.is-success {
    background: #eaf9f1;
    color: #167047;
}

.tt-field-error {
    display: block;
    min-height: 14px;
    margin: 5px 2px 0;
    color: var(--tt-danger);
    font-size: 10.5px;
    font-weight: 650;
}

.tt-register-panel {
    max-width: 540px;
}

.tt-register-panel .tt-form-heading {
    margin-bottom: 22px;
}

.tt-register-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tt-register-form .tt-input-wrap {
    min-height: 50px;
}

.tt-register-form .tt-input-wrap input,
.tt-register-form .tt-input-wrap select {
    height: 48px;
}

.tt-register-form .tt-input-wrap > i {
    flex-basis: 44px;
    font-size: 15px;
}

.tt-span-2 {
    grid-column: span 2;
}

.tt-register-panel .tt-submit-btn {
    min-height: 53px;
}

.tt-register-panel .tt-switch-account {
    margin-top: 23px;
    padding-top: 18px;
}

@media (max-width: 1020px) {
    body.tt-auth-page {
        padding: 25px 18px;
    }

    .tt-auth-shell {
        grid-template-columns: minmax(330px, 43%) minmax(430px, 57%);
        min-height: 720px;
    }

    .tt-auth-story {
        padding: 35px 35px 26px;
    }

    .tt-brand-card img {
        width: 235px;
    }

    .tt-story-copy {
        margin-top: 44px;
    }

    .tt-auth-actions {
        padding: 48px 42px 36px;
    }
}

@media (max-width: 820px) {
    body.tt-auth-page {
        display: block;
        padding: 0;
        background: #fff;
    }

    .tt-doodle {
        display: none;
    }

    .tt-auth-shell {
        display: block;
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

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

    .tt-auth-actions {
        min-height: 100vh;
        padding: 31px 25px 36px;
        justify-content: flex-start;
    }

    .tt-mobile-brand {
        display: block;
        width: fit-content;
        max-width: 100%;
        margin: 0 auto 42px;
        text-align: center;
    }

    .tt-mobile-brand img {
        display: block;
        width: min(260px, 78vw);
        height: auto;
    }

    .tt-mobile-brand span {
        display: block;
        margin-top: 6px;
        color: #667894;
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 1.45px;
        text-transform: uppercase;
    }

    .tt-form-panel {
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .tt-form-heading {
        margin-bottom: 25px;
    }

    .tt-form-heading h2 {
        font-size: 34px;
    }

    .tt-input-wrap {
        min-height: 54px;
    }

    .tt-input-wrap input,
    .tt-input-wrap select {
        height: 52px;
    }

    .tt-register-form {
        grid-template-columns: 1fr;
    }

    .tt-span-2 {
        grid-column: auto;
    }

    .tt-form-options,
    .tt-switch-account {
        align-items: flex-start;
        flex-direction: column;
    }

    .tt-switch-account {
        align-items: center;
    }
}

@media (max-width: 380px) {
    .tt-auth-actions {
        padding-right: 18px;
        padding-left: 18px;
    }

    .tt-form-heading h2 {
        font-size: 31px;
    }

    .tt-security-note {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
