/* ==========================================================================
   Login scene layer
   Original, hand-built Minecraft-inspired artwork for the login screen.
   The three scenes crossfade every 15 seconds (see login-scene.js).
   ========================================================================== */

html,
body {
    overflow-x: hidden;
}

.login-scenes {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #070d18;
    pointer-events: none;
}

.login-scene {
    position: absolute;
    inset: -2.5%;
    opacity: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.03);
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.login-scene.is-active {
    opacity: 1;
}

.login-scene--overworld {
    background-image: url('/assets/login/overworld.svg');
}

.login-scene--nether {
    background-image: url('/assets/login/nether.svg');
}

.login-scene--end {
    background-image: url('/assets/login/end.svg');
}

.login-scenes::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 22% 44%, rgba(4, 9, 18, 0.02) 0%, rgba(4, 9, 18, 0.12) 64%, rgba(4, 9, 18, 0.22) 100%),
        linear-gradient(90deg, rgba(5, 10, 20, 0.20) 0%, rgba(5, 10, 20, 0.08) 38%, rgba(5, 10, 20, 0.32) 72%, rgba(5, 10, 20, 0.54) 100%);
}

.login-shell {
    position: relative;
    z-index: 1;
}

.login-hero {
    background:
        linear-gradient(180deg, rgba(7, 13, 26, 0.20) 0%, rgba(7, 13, 26, 0.44) 52%, rgba(7, 13, 26, 0.70) 100%);
    border-right-color: rgba(160, 180, 220, 0.14);
}

.hero-brand {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-brand .panel-logo {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.26);
}

.hero-body .hero-eyebrow {
    margin: 0 0 14px;
    color: #a9c0ff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-body {
    max-width: 640px;
}

.hero-body .hero-slogan {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    max-width: 720px;
    color: #f5f8ff;
    font-size: clamp(1.8rem, 3.1vw, 2.9rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.035em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.54), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-slogan > span {
    display: block;
}

.hero-slogan .hero-slogan-accent {
    color: #c2d3ff;
}

.hero-body .hero-tagline {
    margin: 18px 0 0;
    max-width: 560px;
    color: #c7d3e8;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.8;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-tagline strong {
    color: #ffffff;
    font-weight: 700;
}

.hero-body .hero-points {
    margin: 28px 0 0;
    max-width: 520px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(7, 13, 26, 0.40);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-points li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.hero-points li:last-child {
    border-bottom: none;
}

.hero-points span {
    color: #aab6d4;
}

.hero-points strong {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #9aa8c3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.login-scene-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dbe5f7;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.login-scene-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-scene-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.30);
    transition: width 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.login-scene-dot.is-active {
    width: 14px;
    background: #a9c0ff;
    box-shadow: 0 0 11px rgba(107, 147, 255, 0.72);
}

.login-panel {
    background:
        linear-gradient(180deg, rgba(7, 13, 26, 0.30) 0%, rgba(7, 13, 26, 0.56) 100%);
}

.login-container {
    max-width: 420px;
}

.login-card.login-card-scene {
    padding: clamp(26px, 2.5vw, 36px) clamp(22px, 2.4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(10, 17, 32, 0.80) 0%, rgba(10, 17, 32, 0.66) 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.login-card.login-card-scene::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(169, 192, 255, 0.58), transparent);
}

.login-card.login-card-scene .login-title {
    color: #f2f5fb;
}

.login-card.login-card-scene .login-lead {
    color: #93a2bd;
}

.login-card.login-card-scene .form-control:-webkit-autofill,
.login-card.login-card-scene .form-control:-webkit-autofill:hover,
.login-card.login-card-scene .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #111c31 inset;
    box-shadow: 0 0 0 1000px #111c31 inset;
}

#mobile-pc-banner {
    max-width: none;
    background: rgba(8, 14, 26, 0.46);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.login-footer {
    color: #98a7c1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.login-footer a {
    color: #b5c3db;
}

/* Fallback for browsers without backdrop-filter. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .login-card.login-card-scene {
        background: rgba(10, 17, 32, 0.94);
    }

    .hero-body .hero-points {
        background: rgba(7, 13, 26, 0.68);
    }

    #mobile-pc-banner {
        background: rgba(8, 14, 26, 0.86);
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .login-scenes::after {
        background:
            radial-gradient(ellipse at 50% 10%, rgba(4, 9, 18, 0.02) 0%, rgba(4, 9, 18, 0.22) 70%, rgba(4, 9, 18, 0.34) 100%),
            linear-gradient(180deg, rgba(5, 10, 20, 0.16) 0%, rgba(5, 10, 20, 0.38) 58%, rgba(5, 10, 20, 0.62) 100%);
    }

    .login-hero {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 14px;
        padding: 16px 20px 18px;
        border-bottom-color: rgba(160, 180, 220, 0.14);
        background:
            linear-gradient(180deg, rgba(7, 13, 26, 0.34) 0%, rgba(7, 13, 26, 0.62) 100%);
    }

    .login-hero .hero-body {
        display: block;
        max-width: 680px;
    }

    .hero-body .hero-eyebrow {
        margin-bottom: 8px;
        font-size: 0.56rem;
        letter-spacing: 0.18em;
    }

    .hero-body .hero-slogan {
        max-width: none;
        font-size: clamp(1.55rem, 6.4vw, 2.15rem);
        line-height: 1.22;
    }

    .hero-body .hero-tagline {
        margin-top: 10px;
        font-size: 0.76rem;
        line-height: 1.7;
    }

    .hero-points,
    .hero-foot {
        display: none;
    }

    .login-panel {
        align-items: flex-start;
        padding: 24px 20px 48px;
        background:
            linear-gradient(180deg, rgba(7, 13, 26, 0.46) 0%, rgba(7, 13, 26, 0.70) 100%);
    }

    .login-container {
        max-width: 420px;
    }

    .login-card.login-card-scene {
        padding: 24px 20px;
    }
}

@media (max-width: 560px) {
    .login-hero {
        padding: 14px 18px 16px;
    }

    .hero-body .hero-slogan {
        font-size: clamp(1.35rem, 6.2vw, 1.8rem);
    }

    .hero-body .hero-tagline {
        font-size: 0.72rem;
    }

    .login-panel {
        padding: 20px 18px 42px;
    }

    .login-card.login-card-scene {
        padding: 22px 18px;
        border-radius: 14px;
    }

    #mobile-pc-banner {
        font-size: 0.76rem;
        padding: 11px 12px;
    }

    .login-scene-meta {
        font-size: 0.62rem;
    }
}

@media (max-width: 360px) {
    .login-hero {
        padding: 12px 16px 14px;
    }

    .hero-body .hero-slogan {
        font-size: clamp(1.15rem, 5.8vw, 1.35rem);
    }

    .hero-body .hero-tagline {
        font-size: 0.68rem;
    }

    .login-panel {
        padding: 18px 16px 38px;
    }

    .login-card.login-card-scene {
        padding: 20px 16px;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .hero-body .hero-slogan {
        font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    }

    .hero-body .hero-tagline {
        margin-top: 12px;
    }

    .hero-body .hero-points {
        margin-top: 20px;
    }

    .hero-points li {
        padding: 10px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-scene {
        transition: none;
    }

    .login-scene.is-active {
        animation: none;
        transform: none;
    }

    .login-scene-dot {
        transition: none;
    }
}
