:root {
    color-scheme: dark;
}

* { box-sizing: border-box; }

.steam-login-body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #080604;
    color: #f7f3e9;
    font-family: Inter, Arial, sans-serif;
}

.steam-login-shell {
    isolation: isolate;
    position: relative;
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 42px 24px 82px;
}

.steam-login-backdrop,
.steam-login-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.steam-login-backdrop {
    z-index: -2;
    background:
        radial-gradient(circle at 50% 40%, rgba(215, 162, 73, .18), transparent 25%),
        linear-gradient(90deg, rgba(3, 3, 2, .92), rgba(4, 4, 3, .24) 50%, rgba(3, 3, 2, .92)),
        linear-gradient(180deg, rgba(2, 2, 1, .12), rgba(2, 2, 1, .86)),
        url('../img/battle_pass_season_bg.png') center/cover no-repeat;
    filter: saturate(.78) contrast(1.1);
    transform: scale(1.035);
}

.steam-login-grain {
    z-index: -1;
    opacity: .26;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,.18) 0 1px, transparent 1px 5px);
}

.steam-login-card {
    position: relative;
    width: min(100%, 520px);
    overflow: hidden;
    border: 1px solid rgba(241, 203, 132, .25);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(19, 18, 13, .89), rgba(7, 8, 6, .92));
    box-shadow: 0 40px 120px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 255, 255, .08);
    padding: 46px clamp(26px, 7vw, 58px) 42px;
    text-align: center;
    backdrop-filter: blur(18px);
}

.steam-login-card::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 320px;
    height: 2px;
    content: '';
    background: linear-gradient(90deg, transparent, #f4ca77, transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(244, 202, 119, .65);
}

.steam-login-brand {
    display: inline-flex;
    align-items: center;
    color: #d6c8aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.steam-login-brand b { color: #e4ba67; font-size: 8px; vertical-align: 1px; }

.steam-login-orbit {
    position: relative;
    display: grid;
    width: 92px;
    height: 92px;
    margin: 30px auto 26px;
    place-items: center;
    border: 1px solid rgba(244, 202, 119, .42);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 175, 73, .2), rgba(198, 146, 58, .045) 62%, transparent 63%);
    color: #f5ce7d;
    font-size: 31px;
    box-shadow: 0 0 0 10px rgba(198, 146, 58, .035), 0 0 54px rgba(198, 146, 58, .16);
}

.steam-login-orbit::before,
.steam-login-orbit::after {
    position: absolute;
    border: 1px solid rgba(244, 202, 119, .2);
    border-radius: inherit;
    content: '';
}

.steam-login-orbit::before { inset: -13px; border-left-color: transparent; animation: steam-orbit 8s linear infinite; }
.steam-login-orbit::after { inset: -23px; border-right-color: transparent; animation: steam-orbit 12s linear infinite reverse; }

.steam-login-kicker {
    margin: 0;
    color: #e8be6a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.steam-login-kicker i { margin-right: 7px; }

.steam-login-card h1 {
    margin: 14px 0 0;
    color: #fffdf8;
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(3rem, 8vw, 4.6rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: .94;
    text-transform: uppercase;
}

.steam-login-card h1 em {
    color: #e9bd65;
    font-style: normal;
}

.steam-login-copy {
    max-width: 370px;
    margin: 22px auto 0;
    color: #bdb8ad;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.75;
}

.steam-login-button {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    width: 100%;
    min-height: 68px;
    margin-top: 31px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: linear-gradient(135deg, #202b3a, #171d27);
    color: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
    padding: 0 20px;
}

.steam-login-button > :first-child {
    color: #c9e5ff;
    font-size: 23px;
}
.steam-login-button > :last-child { color: #e4ba67; font-size: 13px; transition: transform .2s ease; }
.steam-login-button:hover { border-color: rgba(235, 193, 106, .7); background: linear-gradient(135deg, #27374a, #1b2430); box-shadow: 0 19px 40px rgba(0, 0, 0, .42), 0 0 28px rgba(198, 146, 58, .12); transform: translateY(-2px); }
.steam-login-button:hover > :last-child { transform: translateX(3px); }
.steam-login-button:focus-visible { outline: 3px solid #f0c66f; outline-offset: 4px; }

.steam-login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 23px;
    border: 1px solid rgba(248, 113, 113, .36);
    border-radius: 10px;
    background: rgba(127, 29, 29, .18);
    padding: 12px 14px;
    color: #fecaca;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.steam-login-error i { margin-top: 2px; color: #f87171; }

.steam-login-trust {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 21px auto 0;
    color: #858982;
    font-size: 10px;
    line-height: 1.55;
}

.steam-login-trust i { color: #e4ba67; }

.steam-login-footer {
    position: absolute;
    bottom: 25px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: rgba(238, 230, 210, .54);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.steam-login-footer i { margin-right: 5px; color: #6ad58a; font-size: 7px; }

.steam-login-socials {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.steam-login-socials a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: rgba(238, 230, 210, .68);
    font-size: 14px;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.steam-login-socials a:hover { color: #e4ba67; transform: translateY(-2px); }
.steam-login-socials a i { margin: 0; color: currentColor; font-size: inherit; }
.steam-login-x-icon { display: block; width: 14px; height: 14px; border-radius: 2px; }

@keyframes steam-orbit { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
    .steam-login-shell { padding: 22px 15px 76px; }
    .steam-login-card { padding: 32px 23px 31px; border-radius: 19px; }
    .steam-login-orbit { width: 80px; height: 80px; margin-top: 24px; margin-bottom: 22px; }
    .steam-login-footer { bottom: 22px; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
    .steam-login-card { backdrop-filter: none; }
    .steam-login-socials { gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .steam-login-orbit::before, .steam-login-orbit::after { animation: none; }
    .steam-login-button, .steam-login-button > :last-child { transition: none; }
}
