.tf-login-page {
    --tf-ink: #092526;
    --tf-deep: #061f25;
    --tf-deeper: #04171d;
    --tf-teal: #0da595;
    --tf-teal-bright: #3ee3ce;
    --tf-mint: #bdf8e8;
    position: relative;
    max-width: 1220px;
    margin: 1rem auto 2.75rem;
    isolation: isolate;
}

.tf-login-ambient {
    position: absolute;
    inset: -10% -7%;
    z-index: -1;
    overflow: hidden;
    border-radius: 52px;
    pointer-events: none;
}

.tf-login-aurora {
    position: absolute;
    width: 420px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(72px);
    opacity: .22;
}

.tf-login-aurora-one {
    top: -160px;
    left: -80px;
    background: #25e2c5;
}

.tf-login-dots {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image: radial-gradient(rgba(7, 105, 96, .38) .8px, transparent .8px);
    background-size: 19px 19px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 42%, transparent 62%, #000);
            mask-image: linear-gradient(90deg, #000, transparent 42%, transparent 62%, #000);
}

.tf-login-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
    min-height: 670px;
    overflow: hidden;
    border: 1px solid rgba(11, 91, 84, .13);
    border-radius: 34px;
    background: #fff;
    box-shadow:
        0 34px 80px rgba(4, 54, 52, .16),
        0 8px 25px rgba(4, 54, 52, .08);
    animation: tf-shell-enter .8s cubic-bezier(.2, .75, .2, 1) both;
}

.tf-login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 2.1rem clamp(2rem, 4.4vw, 4.4rem) 3.35rem;
    color: #123d39;
    background:
        radial-gradient(circle at 92% 5%, rgba(255, 255, 255, .82), transparent 35%),
        radial-gradient(circle at 8% 88%, rgba(67, 208, 188, .13), transparent 36%),
        linear-gradient(142deg, #f1fbf9 0%, #dff5f0 50%, #eaf9f6 100%);
}

.tf-login-story > *:not(.tf-login-grid):not(.tf-story-orbit) {
    position: relative;
    z-index: 2;
}

.tf-login-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .36;
    background-image:
        linear-gradient(rgba(8, 128, 116, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 128, 116, .12) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
            mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.tf-story-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(8, 142, 129, .14);
    border-radius: 50%;
    pointer-events: none;
}

.tf-story-orbit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0da595;
    box-shadow: 0 0 18px rgba(13, 165, 149, .42);
}

.tf-story-orbit-one {
    right: -175px;
    bottom: -160px;
    width: 440px;
    height: 440px;
    animation: tf-orbit-rotate 18s linear infinite;
}

.tf-story-orbit-two {
    right: -90px;
    bottom: -75px;
    width: 265px;
    height: 265px;
    border-style: dashed;
    animation: tf-orbit-rotate 12s linear infinite reverse;
}

.tf-login-brandline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 130px;
}

.tf-login-page .tf-logo3d-hero {
    flex: 1 1 440px;
    width: min(100%, 500px);
    max-width: 500px;
    margin: 0;
    line-height: 0;
}

.tf-login-page .tf-logo3d-hero iframe {
    display: block;
    width: 100%;
    height: 138px;
    border: 0;
    pointer-events: none;
}

.tf-login-live {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .55rem;
    padding: .52rem .72rem;
    border: 1px solid rgba(13, 165, 149, .16);
    border-radius: 999px;
    color: #39716c;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 8px 24px rgba(20, 112, 104, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.tf-login-live-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #58f1c5;
    box-shadow: 0 0 12px rgba(88, 241, 197, .95);
}

.tf-login-live-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(88, 241, 197, .58);
    border-radius: inherit;
    animation: tf-live-pulse 2.2s ease-out infinite;
}

.tf-login-copy {
    max-width: 650px;
    margin-top: auto;
}

.tf-login-eyebrow {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1rem;
    color: #087f75;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tf-login-eyebrow i {
    font-size: 1rem;
}

.tf-login-copy h1 {
    margin: 0;
    color: #123c39;
    font-size: clamp(2.55rem, 4.25vw, 4.55rem);
    font-weight: 800;
    letter-spacing: -.052em;
    line-height: .99;
}

.tf-login-copy h1 em {
    color: transparent;
    background: linear-gradient(90deg, #087f75, #17ad9e 72%);
    -webkit-background-clip: text;
            background-clip: text;
    font-style: normal;
}

.tf-login-flow {
    display: grid;
    grid-template-columns: auto minmax(35px, 1fr) auto minmax(35px, 1fr) auto;
    align-items: center;
    gap: .85rem;
    margin-top: 2.55rem;
    padding-top: 1.45rem;
    border-top: 1px solid rgba(12, 131, 120, .14);
}

.tf-flow-node {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: .55rem;
}

.tf-flow-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(13, 165, 149, .18);
    border-radius: 12px;
    color: #0b9488;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 7px 20px rgba(13, 120, 110, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.tf-flow-value {
    color: #194d48;
    font-size: .89rem;
    font-weight: 900;
    line-height: 1.1;
}

.tf-flow-label {
    color: #6f9691;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tf-flow-line {
    position: relative;
    display: block;
    height: 1px;
    overflow: visible;
    background: linear-gradient(90deg, rgba(13, 165, 149, .12), rgba(13, 165, 149, .42), rgba(13, 165, 149, .12));
}

.tf-flow-line i {
    position: absolute;
    top: -2px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0da595;
    box-shadow: 0 0 10px rgba(13, 165, 149, .62);
    animation: tf-flow-signal 3s ease-in-out infinite;
}

.tf-flow-line:nth-of-type(2) i {
    animation-delay: -1.5s;
}

.tf-login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: clamp(2.6rem, 4.7vw, 4.6rem) clamp(2.25rem, 4vw, 4.1rem) 2.4rem;
    background:
        radial-gradient(circle at 100% 0, rgba(68, 219, 196, .08), transparent 30%),
        linear-gradient(180deg, #fff, #fbfdfd);
    border-left: 1px solid rgba(13, 128, 118, .08);
}

.tf-login-panel > * {
    position: relative;
    z-index: 1;
}

.tf-login-panel-header {
    margin-bottom: 1.8rem;
}

.tf-login-secure {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.15rem;
    padding: .42rem .66rem;
    border: 1px solid rgba(13, 165, 149, .15);
    border-radius: 999px;
    color: #087a70;
    background: #effbf8;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.tf-login-panel-header h2 {
    margin: 0 0 .45rem;
    color: var(--tf-ink);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.tf-login-panel-header p {
    margin: 0;
    color: #708180;
    font-size: .94rem;
}

.tf-login-form {
    display: grid;
    gap: 1.15rem;
}

.tf-login-validation:empty {
    display: none;
}

.tf-login-field .form-label {
    display: flex;
    align-items: center;
    gap: .48rem;
    margin-bottom: .5rem;
    color: #234442;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .025em;
}

.tf-login-field .form-label i {
    color: var(--tf-teal);
    font-size: .9rem;
}

.tf-login-field .form-control {
    height: 56px;
    border: 1px solid #dbe7e5;
    border-radius: 14px;
    color: #173937;
    background: #f7faf9;
    box-shadow: inset 0 1px 2px rgba(4, 54, 52, .025);
    font-size: .93rem;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}

.tf-login-field .form-control::placeholder {
    color: #9caaa9;
}

.tf-login-field .form-control:hover {
    border-color: #c3d8d5;
    background: #fff;
}

.tf-login-field .form-control:focus {
    border-color: rgba(13, 165, 149, .72);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 165, 149, .1), 0 10px 24px rgba(6, 88, 82, .07);
    transform: translateY(-1px);
}

.tf-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: -.1rem;
}

.tf-login-options .form-check {
    display: flex;
    align-items: center;
    gap: .48rem;
    min-height: auto;
    margin: 0;
    padding: 0;
}

.tf-login-options .form-check-input {
    float: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    border-color: #bdcfcc;
}

.tf-login-options .form-check-input:checked {
    border-color: var(--tf-teal);
    background-color: var(--tf-teal);
}

.tf-login-options .form-check-label,
.tf-session-note {
    color: #72817f;
    font-size: .76rem;
    font-weight: 700;
}

.tf-session-note {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #688b86;
}

.tf-session-note i {
    color: var(--tf-teal);
}

.tf-login-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 57px;
    overflow: hidden;
    margin-top: .35rem;
    padding: 0 1.25rem 0 1.45rem;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(100deg, #087d72, #0fb09f 58%, #22bda9);
    box-shadow: 0 14px 28px rgba(8, 125, 114, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
    font-size: .91rem;
    font-weight: 900;
    letter-spacing: .025em;
    transition: transform .22s ease, box-shadow .22s ease;
}

.tf-login-submit::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -25%;
    width: 18%;
    height: 220%;
    background: rgba(255, 255, 255, .36);
    filter: blur(7px);
    transform: rotate(18deg);
    animation: tf-button-shine 5.4s 1.6s ease-in-out infinite;
}

.tf-login-submit span,
.tf-login-submit i {
    position: relative;
    z-index: 1;
}

.tf-login-submit i {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
    transition: transform .2s ease;
}

.tf-login-submit:hover {
    color: #fff;
    box-shadow: 0 18px 34px rgba(8, 125, 114, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
    transform: translateY(-2px);
}

.tf-login-submit:hover i {
    transform: translateX(3px);
}

.tf-login-submit:focus-visible {
    outline: 3px solid rgba(13, 165, 149, .25);
    outline-offset: 3px;
}

.tf-login-divider {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 1.55rem 0 1rem;
    color: #96a5a3;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tf-login-divider::before,
.tf-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4ecea;
}

.tf-login-register {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .92rem 1rem;
    border: 1px solid #dfeae8;
    border-radius: 14px;
    color: #1f4844;
    background: rgba(247, 251, 250, .78);
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tf-login-register span {
    display: grid;
    gap: .18rem;
}

.tf-login-register strong {
    color: #175b55;
    font-size: .78rem;
    font-weight: 850;
}

.tf-login-register small {
    color: #879694;
    font-size: .66rem;
}

.tf-login-register > i {
    color: var(--tf-teal);
    font-size: 1rem;
    transition: transform .2s ease;
}

.tf-login-register:hover {
    border-color: rgba(13, 165, 149, .28);
    color: #1f4844;
    background: #f4fcfa;
    box-shadow: 0 8px 22px rgba(7, 88, 82, .06);
    transform: translateY(-1px);
}

.tf-login-register:hover > i {
    transform: translate(2px, -2px);
}

.tf-login-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem 1.15rem;
    margin-top: 1.3rem;
    color: #91a09e;
    font-size: .65rem;
    font-weight: 750;
}

.tf-login-trust span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.tf-login-trust i {
    color: #1eaf9f;
}

@keyframes tf-shell-enter {
    from { opacity: 0; transform: translateY(18px) scale(.992); }
    to { opacity: 1; transform: none; }
}

@keyframes tf-orbit-rotate {
    to { transform: rotate(360deg); }
}

@keyframes tf-live-pulse {
    0% { opacity: .8; transform: scale(.55); }
    75%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes tf-flow-signal {
    0% { left: 0; opacity: 0; }
    18% { opacity: 1; }
    82% { opacity: 1; }
    100% { left: calc(100% - 5px); opacity: 0; }
}

@keyframes tf-button-shine {
    0%, 65% { left: -25%; opacity: 0; }
    74% { opacity: .8; }
    90%, 100% { left: 120%; opacity: 0; }
}

@media (max-width: 1080px) {
    .tf-login-shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(370px, .95fr);
    }

    .tf-login-story {
        padding-inline: 2.35rem;
    }

    .tf-login-live {
        position: absolute;
        top: 1.25rem;
        right: 1.4rem;
    }

    .tf-login-page .tf-logo3d-hero {
        max-width: 440px;
    }

    .tf-flow-icon {
        display: none;
    }
}

@media (max-width: 900px) {
    .tf-login-page {
        max-width: 720px;
        margin-top: .5rem;
    }

    .tf-login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 30px;
    }

    .tf-login-story {
        min-height: 520px;
        padding: 1.5rem 2.5rem 2.6rem;
    }

    .tf-login-brandline {
        min-height: 120px;
    }

    .tf-login-page .tf-logo3d-hero {
        max-width: 480px;
    }

    .tf-login-copy h1 {
        font-size: clamp(2.8rem, 8vw, 4.25rem);
    }

    .tf-login-panel {
        padding: 3.2rem clamp(2rem, 8vw, 4.5rem) 2.5rem;
        border-top: 1px solid rgba(13, 128, 118, .08);
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .tf-login-page {
        margin: .15rem auto 1.65rem;
    }

    .tf-login-shell {
        border-radius: 24px;
    }

    .tf-login-story {
        min-height: 445px;
        padding: 1.25rem 1.35rem 2rem;
    }

    .tf-login-brandline {
        min-height: 100px;
    }

    .tf-login-page .tf-logo3d-hero {
        width: 88%;
        max-width: 360px;
    }

    .tf-login-page .tf-logo3d-hero iframe {
        height: 105px;
    }

    .tf-login-live {
        top: .8rem;
        right: .9rem;
        padding: .42rem .55rem;
        font-size: .56rem;
    }

    .tf-login-copy h1 {
        font-size: clamp(2.15rem, 11vw, 3.1rem);
        line-height: 1.02;
    }

    .tf-login-eyebrow {
        margin-bottom: .8rem;
        font-size: .64rem;
        letter-spacing: .12em;
    }

    .tf-login-flow {
        gap: .5rem;
        margin-top: 1.7rem;
        padding-top: 1.15rem;
    }

    .tf-flow-node {
        display: block;
        text-align: center;
    }

    .tf-flow-value,
    .tf-flow-label {
        display: block;
    }

    .tf-flow-value {
        font-size: .74rem;
    }

    .tf-flow-label {
        margin-top: .2rem;
        font-size: .57rem;
    }

    .tf-login-panel {
        padding: 2.5rem 1.35rem 1.8rem;
    }

    .tf-login-panel-header {
        margin-bottom: 1.55rem;
    }

    .tf-login-panel-header h2 {
        font-size: 2rem;
    }

    .tf-login-register {
        padding-inline: .85rem;
    }

    .tf-login-register small {
        display: none;
    }

    .tf-login-trust {
        gap: .55rem .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-login-page *,
    .tf-login-page *::before,
    .tf-login-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
