﻿:root {
    --bg: #060816;
    --bg-soft: rgba(14, 20, 45, 0.86);
    --surface: rgba(10, 14, 33, 0.78);
    --surface-strong: rgba(15, 22, 48, 0.92);
    --border: rgba(114, 159, 255, 0.24);
    --border-strong: rgba(114, 240, 255, 0.42);
    --text-primary: #f5f8ff;
    --text-secondary: rgba(227, 236, 255, 0.72);
    --text-tertiary: rgba(188, 203, 235, 0.56);
    --accent: #5cf6ff;
    --accent-strong: #4b79ff;
    --accent-warm: #6ee7b7;
    --danger: #ff8ca1;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
    --font-display: "Bahnschrift", "Segoe UI", "Microsoft YaHei", sans-serif;
    --font-body: "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-primary);
    background:
        radial-gradient(circle at 12% 18%, rgba(92, 246, 255, 0.2), transparent 30%),
        radial-gradient(circle at 88% 22%, rgba(75, 121, 255, 0.22), transparent 34%),
        linear-gradient(135deg, #050711 0%, #091124 42%, #03050e 100%);
    overflow-x: hidden;
}

.login-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.scene-grid,
.scene-scan,
.scene-orb {
    position: absolute;
}

.scene-grid {
    inset: 0;
    background:
        linear-gradient(rgba(106, 165, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(106, 165, 255, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9) 25%, rgba(0, 0, 0, 0.9) 80%, transparent);
    opacity: 0.48;
}

.scene-scan {
    top: -20%;
    left: -15%;
    width: 130%;
    height: 220px;
    background: linear-gradient(180deg, transparent, rgba(92, 246, 255, 0.12), transparent);
    filter: blur(12px);
    animation: sceneScan 9s linear infinite;
}

.scene-orb {
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.6;
}

.orb-left {
    top: 12%;
    left: 6%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(92, 246, 255, 0.4), rgba(92, 246, 255, 0.02) 68%, transparent 72%);
    animation: floatOrb 12s ease-in-out infinite;
}

.orb-right {
    right: 10%;
    bottom: 10%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(75, 121, 255, 0.34), rgba(75, 121, 255, 0.02) 68%, transparent 72%);
    animation: floatOrb 14s ease-in-out infinite reverse;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 470px);
    gap: 40px;
    align-items: center;
    padding: 48px clamp(20px, 4vw, 56px);
}

.login-hero,
.login-panel {
    position: relative;
}

.login-hero {
    padding: 28px 0 28px 8px;
}

.hero-brand {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.brand-mark {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(10, 18, 42, 0.92), rgba(21, 30, 62, 0.76));
    border: 1px solid rgba(135, 170, 255, 0.16);
    box-shadow:
        inset 0 0 40px rgba(92, 246, 255, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.28);
}

.brand-ring,
.brand-core {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.ring-a {
    width: 78px;
    height: 78px;
    border: 1px solid rgba(92, 246, 255, 0.68);
    box-shadow: 0 0 24px rgba(92, 246, 255, 0.24);
    animation: spinClockwise 9s linear infinite;
}

.ring-b {
    width: 54px;
    height: 54px;
    border: 1px dashed rgba(75, 121, 255, 0.68);
    animation: spinCounter 7s linear infinite;
}

.brand-core {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #ffffff 0%, var(--accent) 58%, transparent 100%);
    box-shadow: 0 0 20px rgba(92, 246, 255, 0.64);
}

.brand-kicker,
.panel-label {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-brand h1,
.login-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-brand h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
}

.brand-copy,
.login-copy,
.hero-panel p,
.hero-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

.brand-copy {
    max-width: 720px;
    margin-top: 18px;
    font-size: 16px;
}

.copy-translation {
    display: block;
    margin-top: 8px;
    color: var(--text-tertiary);
    font-size: 0.92em;
    line-height: 1.7;
}

.hero-panels {
    display: grid;
    gap: 22px;
    margin-top: 44px;
}

.hero-panel,
.hero-card,
.login-card {
    border: 1px solid var(--border);
    backdrop-filter: blur(24px);
}

.hero-panel {
    padding: 24px 26px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(12, 18, 38, 0.92), rgba(8, 13, 28, 0.78));
    box-shadow: var(--shadow);
}

.hero-panel-accent {
    background:
        linear-gradient(180deg, rgba(13, 18, 39, 0.94), rgba(10, 14, 31, 0.85)),
        radial-gradient(circle at top right, rgba(92, 246, 255, 0.1), transparent 45%);
}

.hero-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.2;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hero-card {
    min-height: 180px;
    padding: 22px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(13, 17, 36, 0.86), rgba(7, 10, 24, 0.7));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.hero-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.28);
}

.hero-card-index {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent-warm);
    font-size: 13px;
    letter-spacing: 0.24em;
}

.hero-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.hero-ticker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-ticker span,
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-ticker span {
    background: rgba(8, 16, 34, 0.72);
    border: 1px solid rgba(114, 159, 255, 0.18);
    color: var(--text-secondary);
}

.login-panel {
    display: flex;
    justify-content: flex-end;
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 30px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(15, 21, 46, 0.94), rgba(7, 11, 24, 0.9)),
        radial-gradient(circle at top right, rgba(92, 246, 255, 0.14), transparent 44%);
    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.status-pill {
    background: rgba(92, 246, 255, 0.1);
    border: 1px solid rgba(92, 246, 255, 0.24);
    color: var(--accent);
}

.login-card h2 {
    margin-top: 18px;
    font-size: clamp(30px, 3vw, 42px);
}

.login-copy {
    margin-top: 14px;
}

.login-alert {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 140, 161, 0.12);
    border: 1px solid rgba(255, 140, 161, 0.28);
    color: #ffd8e0;
    font-size: 14px;
}

.login-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.field {
    display: grid;
    gap: 10px;
}

.field span {
    color: var(--text-secondary);
    font-size: 14px;
}

.field input {
    width: 100%;
    border: 1px solid rgba(132, 162, 255, 0.2);
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(5, 10, 24, 0.72);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.field input::placeholder {
    color: var(--text-tertiary);
}

.field input:focus {
    border-color: rgba(92, 246, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(92, 246, 255, 0.12);
    transform: translateY(-1px);
}

.login-button {
    margin-top: 4px;
    border: 0;
    border-radius: 18px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #5cf6ff 0%, #4b79ff 54%, #76a2ff 100%);
    color: #04101f;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(75, 121, 255, 0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(75, 121, 255, 0.42);
    filter: brightness(1.03);
}

.login-button:active {
    transform: translateY(0);
}

.login-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.login-meta > div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(8, 14, 30, 0.72);
    border: 1px solid rgba(114, 159, 255, 0.14);
}

.meta-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-tertiary);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-meta strong {
    font-size: 15px;
}

@keyframes spinClockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinCounter {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -22px, 0);
    }
}

@keyframes sceneScan {
    from {
        transform: translate3d(0, -10%, 0);
    }
    to {
        transform: translate3d(0, 120vh, 0);
    }
}

@media (max-width: 1200px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .login-panel {
        justify-content: flex-start;
    }

    .login-card {
        max-width: 100%;
    }
}

@media (max-width: 840px) {
    .login-shell {
        padding: 24px 16px 36px;
    }

    .hero-brand {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-grid,
    .login-meta {
        grid-template-columns: 1fr;
    }

    .brand-mark {
        width: 92px;
        height: 92px;
    }

    .hero-card {
        min-height: auto;
    }

    .login-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .login-card-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

