body { isolation: isolate; }

.auth-scene {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, #193c5b 0%, #48708e 48%, #b8d3dd 100%);
}

.auth-scene__back-mountain,
.auth-scene__mountain,
.auth-scene__hill,
.auth-scene__trees,
.auth-scene__snow {
    position: absolute;
    inset: 0;
}

.auth-scene__back-mountain {
    inset: auto -6% 25%;
    height: 57%;
    background: #68859b;
    clip-path: polygon(0 100%, 0 64%, 18% 22%, 34% 72%, 56% 4%, 77% 69%, 91% 30%, 100% 61%, 100% 100%);
}

.auth-scene__mountain {
    inset: auto -8% 15%;
    height: 47%;
    background: #eaf3f3;
    clip-path: polygon(0 100%, 0 79%, 21% 33%, 36% 76%, 61% 8%, 84% 78%, 100% 52%, 100% 100%);
}

.auth-scene__hill {
    inset: auto -15% -34%;
    width: 130%;
    height: 55%;
    border-radius: 50% 50% 0 0 / 18% 18% 0 0;
    background: linear-gradient(180deg, #fff 0%, #e8f4f3 72%);
}

.auth-scene__trees {
    inset: auto 0 7%;
    display: flex;
    height: 34%;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 4%;
}

.auth-scene__trees span {
    font-size: 40px;
    line-height: 1;
    filter: drop-shadow(0 3px 4px rgb(22 46 36 / 24%));
}

.auth-scene__trees span:nth-child(2) { font-size: 54px; }
.auth-scene__trees span:nth-child(3) { transform: translateY(12px); }
.auth-scene__trees span:nth-child(4) { font-size: 48px; transform: translateY(6px); }

.auth-scene__snow span {
    position: absolute;
    top: -12%;
    color: #fff;
    font-size: 14px;
    opacity: .9;
    text-shadow: 0 0 5px #b8d3dd;
    animation: signup-snowfall 9s linear infinite;
}

.auth-scene__snow span:nth-child(1) { left: 7%; animation-delay: -1s; }
.auth-scene__snow span:nth-child(2) { left: 18%; animation-delay: -5s; }
.auth-scene__snow span:nth-child(3) { left: 31%; animation-delay: -3s; }
.auth-scene__snow span:nth-child(4) { left: 47%; animation-delay: -7s; }
.auth-scene__snow span:nth-child(5) { left: 63%; animation-delay: -2s; }
.auth-scene__snow span:nth-child(6) { left: 76%; animation-delay: -6s; }
.auth-scene__snow span:nth-child(7) { left: 88%; animation-delay: -4s; }
.auth-scene__snow span:nth-child(8) { left: 96%; animation-delay: -8s; }

@keyframes signup-snowfall {
    to { transform: translateY(115vh) rotate(40deg); }
}

.auth-card {
    position: relative;
    z-index: 1;
    box-shadow: 0 18px 48px rgb(17 39 53 / 24%);
}

.auth-intro {
    max-width: 34ch;
    margin: 14px auto 0 !important;
    line-height: 1.5;
}

.auth-card .btn {
    min-height: 58px;
    padding: 18px 26px;
    font-size: 18px;
}

.faction-card {
    min-height: 84px;
    padding: 16px;
}

.faction-card input {
    width: 24px;
    height: 24px;
}

@media (max-width: 480px) {
    .auth-card .btn { min-height: 60px; padding: 17px 20px; }
    .faction-card { min-height: 76px; padding: 14px 12px; }
    .auth-scene__trees span { font-size: 30px; }
    .auth-scene__trees span:nth-child(2) { font-size: 42px; }
    .auth-scene__trees span:nth-child(4) { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-scene__snow span { animation: none; }
}
