:root {
    --background: #07090c;
    --surface: rgba(15, 18, 23, 0.82);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text: #f4f5f7;
    --muted: #858b94;
    --orange: #f2a900;
    --orange-light: #ffc84b;
    --steam-blue: #66c0f4;
}

* {
    box-sizing: border-box;
}

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

body {
    overflow: hidden;
    color: var(--text);
    background: var(--background);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.background {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(49, 55, 66, 0.3),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #11151b 0%,
            #080a0e 46%,
            #050608 100%
        );
}

.background::before {
    content: "";
    position: absolute;
    inset: -20%;
    opacity: 0.28;
    background-image:
        linear-gradient(
            30deg,
            transparent 46%,
            rgba(255, 255, 255, 0.025) 47%,
            rgba(255, 255, 255, 0.025) 48%,
            transparent 49%
        ),
        linear-gradient(
            150deg,
            transparent 46%,
            rgba(255, 255, 255, 0.018) 47%,
            rgba(255, 255, 255, 0.018) 48%,
            transparent 49%
        );
    background-size: 120px 120px;
    transform: rotate(-6deg);
}

.background::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(76vw, 1100px);
    height: min(76vw, 1100px);
    border: 1px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 110px rgba(255, 255, 255, 0.012),
        0 0 0 240px rgba(255, 255, 255, 0.008);
}

.background-noise {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.18'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.background-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle,
            transparent 30%,
            rgba(0, 0, 0, 0.35) 70%,
            rgba(0, 0, 0, 0.8) 100%
        );
}

.background-glow {
    position: absolute;
    top: 46%;
    left: 50%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(242, 169, 0, 0.1);
    filter: blur(150px);
    transform: translate(-50%, -50%);
}

.login-card {
    position: relative;
    width: min(calc(100% - 32px), 390px);
    padding: 48px 42px 32px;
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(23, 27, 34, 0.88),
            rgba(10, 12, 16, 0.82)
        );
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
}

.login-card::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 60px;
    left: 60px;
    height: 1px;
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(242, 169, 0, 0.9),
            transparent
        );
}

.logo {
    display: flex;
    align-items: flex-end;
    font-weight: 950;
    line-height: 0.8;
    letter-spacing: -0.08em;
    user-select: none;
}

.logo-cs {
    color: #ffffff;
    font-size: 66px;
}

.logo-number {
    margin-left: 5px;
    color: var(--orange);
    font-size: 76px;
}

.login-divider {
    width: 46px;
    height: 2px;
    margin: 34px 0;
    border-radius: 999px;
    background: var(--orange);
    box-shadow:
        0 0 20px rgba(242, 169, 0, 0.38);
}

.steam-login-button {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: 9px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #1b2838,
            #121b27
        );
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.steam-login-button:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 192, 244, 0.52);
    background:
        linear-gradient(
            135deg,
            #243b55,
            #18293b
        );
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(102, 192, 244, 0.08);
}

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

.steam-login-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.private-label {
    margin: 22px 0 0;
    color: var(--muted);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.crosshair {
    position: absolute;
    width: 86px;
    height: 86px;
    opacity: 0.09;
}

.crosshair-left {
    top: 22%;
    left: 12%;
}

.crosshair-right {
    right: 11%;
    bottom: 17%;
    transform: scale(0.72);
}

.crosshair span,
.crosshair i {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: #ffffff;
}

.crosshair span:nth-child(1),
.crosshair span:nth-child(3) {
    left: calc(50% - 1px);
    width: 2px;
    height: 27px;
}

.crosshair span:nth-child(1) {
    top: 0;
}

.crosshair span:nth-child(3) {
    bottom: 0;
}

.crosshair span:nth-child(2),
.crosshair span:nth-child(4) {
    top: calc(50% - 1px);
    width: 27px;
    height: 2px;
}

.crosshair span:nth-child(2) {
    right: 0;
}

.crosshair span:nth-child(4) {
    left: 0;
}

.crosshair i {
    top: calc(50% - 2px);
    left: calc(50% - 2px);
    width: 4px;
    height: 4px;
}

.map-lines {
    position: absolute;
    inset: 0;
    opacity: 0.09;
}

.map-line {
    position: absolute;
    display: block;
    height: 1px;
    background:
        linear-gradient(
            to right,
            transparent,
            rgba(255, 255, 255, 0.9),
            transparent
        );
}

.line-one {
    top: 19%;
    left: -8%;
    width: 52%;
    transform: rotate(-24deg);
}

.line-two {
    top: 42%;
    right: -13%;
    width: 54%;
    transform: rotate(32deg);
}

.line-three {
    bottom: 17%;
    left: -5%;
    width: 47%;
    transform: rotate(19deg);
}

.line-four {
    right: 9%;
    bottom: 30%;
    width: 38%;
    transform: rotate(-53deg);
}

.corner-label {
    position: absolute;
    color: rgba(255, 255, 255, 0.18);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.corner-label-top {
    top: 30px;
    left: 34px;
}

.corner-label-bottom {
    right: 34px;
    bottom: 30px;
}

@media (max-width: 600px) {
    .login-card {
        padding: 42px 28px 28px;
    }

    .logo-cs {
        font-size: 56px;
    }

    .logo-number {
        font-size: 65px;
    }

    .crosshair,
    .map-lines {
        opacity: 0.045;
    }

    .corner-label-top {
        top: 20px;
        left: 20px;
    }

    .corner-label-bottom {
        right: 20px;
        bottom: 20px;
    }
}
