.t8-auth-wrapper {
    position: relative;
    isolation: isolate;
}

.t8-auth-ambience {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.t8-auth-card {
    position: relative;
    z-index: 2;
}

.t8-auth-cloud {
    position: absolute;
    width: clamp(90px, 12vw, 164px);
    height: 42px;
    border-radius: 50%;
    opacity: 0.72;
    filter: blur(1px);
    background: radial-gradient(ellipse at 50% 70%, rgba(255,255,255,.98) 0 45%, transparent 72%);
    animation: t8-cloud-drift 14s ease-in-out infinite;
}

.t8-auth-cloud::before,
.t8-auth-cloud::after {
    position: absolute;
    content: "";
    background: rgba(255,255,255,.9);
    border-radius: 50%;
}

.t8-auth-cloud::before { width: 46%; height: 80%; left: 18%; top: 2%; }
.t8-auth-cloud::after { width: 37%; height: 67%; right: 15%; top: 16%; }
.t8-auth-cloud-one { top: 18%; left: 9%; }
.t8-auth-cloud-two { top: 30%; right: 12%; animation-duration: 15s; animation-direction: reverse; }
.t8-auth-cloud-three { right: 8%; bottom: 14%; animation-duration: 13s; }

@keyframes t8-cloud-drift {
    0%, 100% { transform: translateX(-30px); }
    50% { transform: translateX(30px); }
}

.t8-auth-branch {
    position: absolute;
    top: -18px;
    left: -20px;
    width: clamp(170px, 25vw, 310px);
    height: clamp(115px, 18vw, 205px);
    transform-origin: 8% 5%;
    animation: t8-branch-sway 5.2s ease-in-out infinite alternate;
}

.t8-auth-branch::before,
.t8-auth-branch::after {
    position: absolute;
    content: "";
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(90deg, #68402c, #976344 65%, transparent);
    transform-origin: left center;
}

.t8-auth-branch::before { width: 92%; left: 0; top: 24%; transform: rotate(17deg); }
.t8-auth-branch::after { width: 60%; left: 27%; top: 25%; transform: rotate(43deg); }
.t8-auth-branch i {
    position: absolute;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 50% 50% 44% 50%;
    background: radial-gradient(circle at 35% 35%, #fff2f3 0 18%, #f2a5b5 52%, #df718d 100%);
    box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}
.t8-auth-branch i:nth-child(1) { left: 20%; top: 4%; }
.t8-auth-branch i:nth-child(2) { left: 36%; top: 19%; }
.t8-auth-branch i:nth-child(3) { left: 49%; top: 2%; }
.t8-auth-branch i:nth-child(4) { left: 63%; top: 25%; }
.t8-auth-branch i:nth-child(5) { left: 76%; top: 12%; }
.t8-auth-branch i:nth-child(6) { left: 31%; top: 52%; }
.t8-auth-branch-right {
    left: auto;
    right: -20px;
    transform: scaleX(-1);
    transform-origin: 92% 5%;
    animation-name: t8-branch-sway-right;
    animation-duration: 5.8s;
}

@keyframes t8-branch-sway {
    from { rotate: -1deg; }
    to { rotate: 1deg; }
}

@keyframes t8-branch-sway-right {
    from { transform: scaleX(-1) rotate(-1deg); }
    to { transform: scaleX(-1) rotate(1deg); }
}

.t8-auth-mascot {
    position: absolute;
    left: 0;
    bottom: clamp(12px, 2.5vh, 28px);
    width: var(--t8-auth-mascot-width, min(clamp(339px, 47.5vw, 523px), calc(100vh - 40px)));
    aspect-ratio: 1;
    animation: t8-mascot-bob 3.4s ease-in-out infinite;
}

.t8-auth-mascot-art {
    position: absolute;
    width: 94%;
    aspect-ratio: 703 / 652;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: t8-noodle-pulse 3.4s ease-in-out infinite;
}

.t8-auth-mascot-art img {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
}

.t8-auth-mascot-body { inset: 0; width: 100%; height: 100% !important; object-fit: fill !important; }
.t8-auth-mascot-eye-left { left: 23.5%; top: 55%; width: 25%; }
.t8-auth-mascot-eye-right { left: 52.7%; top: 57.6%; width: 23%; }
.t8-auth-mascot-eye { transform-origin: center center; animation: t8-mascot-blink 5.4s infinite; }
.t8-auth-mascot-eye-right { animation-delay: .08s; }
.t8-auth-mascot-mouth {
    left: 36.5%;
    top: 71%;
    width: 24%;
    transform-origin: center;
    animation: t8-mouth-breath 4.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes t8-mascot-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -2px; }
}

@keyframes t8-noodle-pulse {
    0%, 100% { scale: 1; }
    50% { scale: 1.012; }
}

@keyframes t8-mascot-blink {
    0%, 43%, 47%, 100% { scale: 1 1; }
    45% { scale: 1 .04; }
}

@keyframes t8-mouth-breath {
    0%, 100% { scale: 1 1; }
    50% { scale: 1.12 .94; }
}

.t8-auth-steam {
    position: absolute;
    z-index: 2;
    left: 24%;
    top: -20%;
    width: 52%;
    height: 38%;
}

.t8-auth-steam i {
    position: absolute;
    bottom: 0;
    width: 16%;
    height: 46%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,255,255,1), rgba(255,255,255,.34) 62%, transparent 100%);
    filter: blur(clamp(3px, .35vw, 5px));
    opacity: 0;
    animation: t8-steam-rise 4s ease-in-out infinite;
}

.t8-auth-steam i:nth-child(1) { left: 5%; animation-delay: 0s; }
.t8-auth-steam i:nth-child(2) { left: 24%; animation-delay: .7s; animation-duration: 4.2s; }
.t8-auth-steam i:nth-child(3) { left: 43%; animation-delay: 1.4s; animation-duration: 3.8s; }
.t8-auth-steam i:nth-child(4) { left: 62%; animation-delay: 2.1s; animation-duration: 4.4s; }
.t8-auth-steam i:nth-child(5) { left: 81%; animation-delay: 2.8s; }

@keyframes t8-steam-rise {
    0% { opacity: 0; transform: translate3d(0, 35%, 0) scale(.75, .8); }
    15% { opacity: .48; }
    40% { opacity: .72; }
    65% { opacity: .55; }
    100% { opacity: 0; transform: translate3d(12%, -180%, 0) scale(1.4, 1.2); }
}

.t8-auth-petal {
    position: absolute;
    top: var(--petal-top);
    left: var(--petal-left);
    width: var(--petal-size);
    height: calc(var(--petal-size) * 1.35);
    border-radius: 85% 10% 75% 45%;
    background: linear-gradient(145deg, rgba(255,229,235,.96), rgba(226,103,137,.78));
    opacity: 0;
    animation: t8-petal-fall var(--petal-duration) ease-in-out forwards;
}

@keyframes t8-petal-fall {
    0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
    10% { opacity: .82; }
    25% { transform: translate3d(var(--petal-x-one), 25vh, 0) rotate(var(--petal-rotation-one)); }
    50% { transform: translate3d(var(--petal-x-two), 50vh, 0) rotate(var(--petal-rotation-two)); }
    75% { transform: translate3d(var(--petal-x-three), 75vh, 0) rotate(var(--petal-rotation-three)); opacity: .58; }
    100% { opacity: 0; transform: translate3d(var(--petal-x-four), 105vh, 0) rotate(var(--petal-rotation-four)); }
}

@media (max-width: 640px) {
    .t8-auth-cloud-three { display: none; }
    .t8-auth-branch { width: 35vw; height: 110px; }
    .t8-auth-branch i { width: 11px; height: 11px; }
    .t8-auth-mascot { width: var(--t8-auth-mascot-width, min(clamp(229px, 59.5vw, 329px), calc(100vh - 24px))); left: 0; bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .t8-auth-ambience *,
    .t8-auth-ambience *::before,
    .t8-auth-ambience *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}