
:root {
    --bg: #040808;
    --panel: rgba(5, 16, 16, 0.95);
    --line: rgba(194, 128, 44, 0.50);
    --green: #92eb55;
    --amber: #d38943;
    --text: #f1ede4;
    --muted: #9aa39d;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background: #030707;
    color: var(--text);
    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
}

button,
input,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   FULL VIEWPORT SHELL
   Desktop page always occupies exactly one browser viewport.
========================================================= */

.page-shell {
    width: 100%;
    height: 100dvh;
    min-width: 0;
    min-height: 0;

    display: grid;
    grid-template-rows:
        clamp(52px, 6.5vh, 68px)
        minmax(0, 1fr)
        clamp(34px, 4.7vh, 48px);

    overflow: hidden;
    isolation: isolate;
}


/* =========================================================
   HEADER
========================================================= */

.topbar {
    min-width: 0;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: clamp(12px, 2vw, 24px);

    padding:
        0
        clamp(16px, 2.2vw, 34px);

    border-bottom:
        1px solid
        rgba(191, 124, 28, 0.55);

    background:
        linear-gradient(
            180deg,
            rgba(3, 9, 9, 0.99),
            rgba(5, 13, 13, 0.97)
        );

    overflow: hidden;

    position: relative;
    z-index: 20;
}

.brand-mini {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: clamp(8px, 1vw, 16px);

    flex: 0 1 auto;
}

.brand-icon {
    width: clamp(32px, 2.5vw, 38px);
    height: clamp(32px, 2.5vw, 38px);

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(214, 145, 39, 0.85);

    border-radius: 50%;

    color: #e8be59;

    font-size:
        clamp(14px, 1.2vw, 18px);
}

.brand-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 1px;

    color: #d9d0c1;

    font-size:
        clamp(8px, .65vw, 11px);

    letter-spacing:
        clamp(.14em, .25vw, .28em);

    text-transform: uppercase;
}

.desktop-nav {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: clamp(13px, 1.8vw, 28px);

    flex: 0 1 auto;

    overflow: hidden;
}

.desktop-nav a,
.mobile-nav a {
    position: relative;

    color: #d8d3cb;

    font-size:
        clamp(10px, .82vw, 14px);

    font-weight: 700;

    letter-spacing:
        clamp(.08em, .12vw, .14em);

    white-space: nowrap;

    text-transform: uppercase;
}

.desktop-nav a.active,
.mobile-nav a.active {
    color: var(--green);
}

.desktop-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -18px;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--green),
            transparent
        );

    box-shadow:
        0 0 12px
        rgba(145, 235, 85, .5);
}

.mobile-menu-button {
    width: 38px;
    height: 38px;

    display: none;

    flex: 0 0 auto;

    place-items: center;

    border:
        1px solid
        rgba(194, 128, 44, .45);

    background: #071111;

    color: var(--text);

    cursor: pointer;
}


/* Mobile menu overlays the page instead of increasing page height. */
.mobile-nav {
    display: none;

    position: fixed;

    top: clamp(52px, 6.5vh, 68px);
    left: 0;
    right: 0;

    z-index: 100;

    padding: 14px 18px;

    background:
        rgba(4, 12, 12, .985);

    border-bottom:
        1px solid
        rgba(191, 124, 28, .45);

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, .45);
}

.mobile-nav.show {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;

    text-align: center;
}


/* =========================================================
   MAIN TWO-COLUMN AREA
========================================================= */

.content-grid {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        clamp(390px, 34vw, 545px);

    overflow: hidden;
}


/* =========================================================
   HERO
========================================================= */

.hero-panel {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(5, 11, 11, .08) 0%,
            rgba(5, 11, 11, .03) 55%,
            rgba(5, 11, 11, .30) 100%
        ),
        url("Assets/login-hero-predator-v2.jpg")
        center center / cover
        no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 52% 18%,
            rgba(255, 166, 72, .10),
            transparent 23%
        );
}

.hero-frame {
    position: absolute;
    inset: 0;

    pointer-events: none;

    box-shadow:
        inset -1px 0 0
        rgba(191, 124, 28, .26);
}


/* =========================================================
   LOGIN SIDE
========================================================= */

.login-column {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: flex;
    align-items: stretch;
    justify-content: center;

    padding:
        clamp(8px, 1.4vh, 18px)
        clamp(10px, 1.35vw, 22px);

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(3, 9, 9, .78),
            rgba(4, 11, 11, .94)
        );
}

.login-panel {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    gap: clamp(5px, .7vh, 11px);

    position: relative;

    padding:
        clamp(14px, 2vh, 28px)
        clamp(16px, 1.7vw, 30px);

    overflow: hidden;

    border:
        1px solid
        rgba(191, 124, 28, .48);

    background:
        radial-gradient(
            circle at 30% 12%,
            rgba(90, 146, 62, .07),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            rgba(7, 18, 18, .97),
            rgba(4, 11, 11, .99)
        );

    box-shadow:
        0 0 0 1px
        rgba(188, 127, 37, .22);
}

.corner {
    position: absolute;

    width: 9px;
    height: 9px;

    border:
        2px solid
        rgba(218, 178, 85, .6);

    border-radius: 50%;
}

.corner.tl {
    top: 10px;
    left: 10px;
}

.corner.tr {
    top: 10px;
    right: 10px;
}

.corner.bl {
    bottom: 10px;
    left: 10px;
}

.corner.br {
    bottom: 10px;
    right: 10px;
}


/* =========================================================
   LOGIN HEADING
========================================================= */

.login-heading {
    flex: 0 0 auto;

    padding-top:
        clamp(0px, .6vh, 6px);

    text-align: center;
}

.login-heading h1 {
    margin: 0;

    color: #f2eee6;

    font-size:
        clamp(27px, min(2.55vw, 5.3vh), 48px);

    font-weight: 900;

    line-height: 1.03;

    letter-spacing: .025em;

    text-transform: uppercase;
}

.login-heading h1 span {
    display: inline-block;
}

.login-heading p {
    margin:
        clamp(5px, .8vh, 10px)
        0
        0;

    color: var(--green);

    font-size:
        clamp(8px, min(.75vw, 1.35vh), 12px);

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: .14em;

    text-transform: uppercase;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    width: 100%;
    min-width: 0;

    flex: 0 0 auto;

    display: flex;
    flex-direction: column;

    gap:
        clamp(6px, .8vh, 10px);
}

.input-row {
    width: 100%;

    min-width: 0;
    min-height:
        clamp(42px, 5.5vh, 55px);

    display: grid;

    grid-template-columns:
        clamp(26px, 2.4vw, 36px)
        minmax(0, 1fr)
        clamp(24px, 2.2vw, 30px);

    align-items: center;

    gap: 6px;

    padding:
        0
        clamp(8px, 1vw, 12px);

    border:
        1px solid
        rgba(161, 169, 160, .34);

    background:
        rgba(2, 9, 9, .82);

    overflow: hidden;
}

.input-row input {
    width: 100%;
    min-width: 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: var(--text);

    font-size:
        clamp(13px, .95vw, 17px);
}

.input-row input::placeholder {
    color:
        rgba(218, 221, 218, .68);
}

.input-icon {
    display: grid;
    place-items: center;

    color: #d8d2c5;

    font-size:
        clamp(13px, .95vw, 17px);
}

.password-toggle {
    border: 0;

    background: transparent;

    color:
        rgba(208, 206, 199, .88);

    cursor: pointer;
}

.login-options {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding:
        clamp(1px, .25vh, 4px)
        0;

    color: #e4dfd6;

    font-size:
        clamp(10px, .72vw, 13px);
}

.remember-wrap {
    min-width: 0;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    cursor: pointer;

    white-space: nowrap;
}

.remember-wrap input {
    display: none;
}

.custom-check {
    width: 17px;
    height: 17px;

    flex: 0 0 auto;

    border:
        1px solid
        rgba(139, 171, 131, .55);

    background:
        rgba(7, 20, 20, .8);
}

.remember-wrap input:checked
+
.custom-check {
    background:
        linear-gradient(
            180deg,
            rgba(127, 211, 66, .45),
            rgba(73, 122, 34, .45)
        );
}

.forgot-link {
    min-width: 0;

    white-space: nowrap;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.action-button {
    width: 100%;

    min-width: 0;
    min-height:
        clamp(42px, 5.5vh, 54px);

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    border:
        1px solid
        rgba(191, 124, 28, .38);

    color: #fff7ed;

    font-size:
        clamp(13px, 1vw, 17px);

    font-weight: 800;

    letter-spacing: .07em;

    text-transform: uppercase;

    cursor: pointer;
}

.action-button.primary {
    background:
        linear-gradient(
            90deg,
            #527e27,
            #79b938,
            #5c8a2a
        );
}

.action-button.secondary {
    background:
        linear-gradient(
            90deg,
            rgba(77, 37, 12, .92),
            rgba(119, 68, 25, .94),
            rgba(79, 38, 12, .92)
        );
}


/* =========================================================
   SERVER STATUS
========================================================= */

.server-strip {
    width: 100%;
    min-width: 0;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: #d8d8d4;

    font-size:
        clamp(9px, .68vw, 12px);
}

.server-state {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 7px;

    white-space: nowrap;
}

.online-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #77e33f;

    box-shadow:
        0 0 9px
        rgba(119, 227, 63, .7);
}

.online-total {
    min-width: 0;

    color: #8c948f;

    font-size:
        clamp(8px, .58vw, 10px);

    letter-spacing: .10em;

    white-space: nowrap;
}


/* =========================================================
   EVENT / SEASON CARDS
========================================================= */

.info-card {
    width: 100%;
    min-width: 0;

    flex: 0 0 auto;

    display: grid;
    align-items: center;

    gap:
        clamp(8px, .8vw, 13px);

    border:
        1px solid
        rgba(123, 155, 91, .25);

    overflow: hidden;
}

.event-card {
    min-height:
        clamp(59px, 8.2vh, 82px);

    grid-template-columns:
        clamp(30px, 2.8vw, 38px)
        minmax(0, 1fr)
        auto;

    padding:
        clamp(7px, 1vh, 12px)
        clamp(9px, 1vw, 15px);

    background:
        linear-gradient(
            90deg,
            rgba(11, 48, 35, .55),
            rgba(7, 25, 23, .94)
        );
}

.season-card {
    min-height:
        clamp(52px, 7.4vh, 72px);

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    padding:
        clamp(7px, 1vh, 12px)
        clamp(9px, 1vw, 15px);

    background:
        linear-gradient(
            90deg,
            rgba(74, 39, 18, .92),
            rgba(24, 12, 6, .98)
        );
}

.card-icon {
    width:
        clamp(28px, 2.4vw, 34px);

    height:
        clamp(28px, 2.4vw, 34px);

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ecc54c;

    border:
        1px solid
        rgba(236, 197, 76, .22);

    background:
        rgba(236, 197, 76, .08);
}

.card-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 1px;
}

.eyebrow,
.season-tag,
.card-side span {
    color: #d2d4ca;

    font-size:
        clamp(7px, .52vw, 9px);

    letter-spacing: .13em;

    text-transform: uppercase;
}

.card-text strong {
    min-width: 0;

    overflow: hidden;

    color: #ddd;

    font-size:
        clamp(12px, .95vw, 16px);

    line-height: 1.1;

    text-overflow: ellipsis;

    white-space: nowrap;

    text-transform: uppercase;
}

.event-card .card-text strong {
    color: var(--green);
}

.season-card .card-text strong {
    color: #e68d47;
}

.subcopy {
    min-width: 0;

    overflow: hidden;

    color: #c8c4bb;

    font-size:
        clamp(7px, .52vw, 9px);

    letter-spacing: .06em;

    text-overflow: ellipsis;

    white-space: nowrap;

    text-transform: uppercase;
}

.card-side {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 1px;

    text-align: right;
}

.card-side strong {
    color: white;

    font-size:
        clamp(18px, 1.8vw, 27px);

    line-height: 1;
}

.card-arrow {
    color: #eab579;

    font-size:
        clamp(18px, 1.8vw, 25px);
}


/* =========================================================
   SMALL BOTTOM LINKS
========================================================= */

.panel-links {
    width: 100%;
    min-width: 0;

    flex: 0 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top:
        1px solid
        rgba(191, 124, 28, .22);

    padding-top:
        clamp(4px, .65vh, 8px);
}

.panel-links a {
    min-width: 0;
    min-height:
        clamp(24px, 3.4vh, 34px);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    overflow: hidden;

    color: #d9d5cd;

    font-size:
        clamp(8px, .58vw, 10px);

    white-space: nowrap;
}

.panel-links a + a {
    border-left:
        1px solid
        rgba(191, 124, 28, .18);
}


/* =========================================================
   FOOTER — FIXED INSIDE VIEWPORT
========================================================= */

.footer-bar {
    width: 100%;
    min-width: 0;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    overflow: hidden;

    padding:
        0
        clamp(14px, 2vw, 30px);

    border-top:
        1px solid
        rgba(191, 124, 28, .48);

    background:
        rgba(3, 9, 9, .99);

    color: #c3beb4;

    font-size:
        clamp(7px, .52vw, 10px);

    letter-spacing: .14em;

    text-transform: uppercase;
}

.footer-left,
.footer-center {
    min-width: 0;

    display: flex;
    align-items: center;

    gap:
        clamp(6px, .8vw, 12px);

    overflow: hidden;

    white-space: nowrap;
}

.footer-icon {
    flex: 0 0 auto;

    color: #98e84f;

    font-size:
        clamp(13px, 1vw, 17px);
}


/* =========================================================
   MEDIUM DESKTOP
========================================================= */

@media (max-width: 1180px) {
    .content-grid {
        grid-template-columns:
            minmax(0, 1fr)
            clamp(350px, 39vw, 465px);
    }

    .brand-copy {
        display: none;
    }

    .online-total {
        display: none;
    }
}


/* =========================================================
   NARROW SCREENS
   Hero becomes full-screen background and login floats above it.
   The page still remains one viewport with no scrollbar.
========================================================= */

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: grid;
    }

    .content-grid {
        position: relative;

        display: block;

        overflow: hidden;
    }

    .hero-panel {
        position: absolute;
        inset: 0;

        z-index: 0;

        opacity: .52;

        background-position:
            center center;
    }

    .login-column {
        position: relative;
        z-index: 2;

        width:
            min(100%, 620px);

        margin-left: auto;

        padding:
            clamp(7px, 1vh, 12px)
            clamp(9px, 1.8vw, 16px);

        background:
            linear-gradient(
                90deg,
                rgba(3, 9, 9, .30),
                rgba(3, 9, 9, .94)
            );
    }

    .login-panel {
        backdrop-filter:
            blur(2px);
    }

    .footer-left span:last-child {
        display: none;
    }
}


/* =========================================================
   PHONE WIDTH
========================================================= */

@media (max-width: 600px) {
    .page-shell {
        grid-template-rows:
            52px
            minmax(0, 1fr)
            32px;
    }

    .topbar {
        padding:
            0
            12px;
    }

    .login-column {
        width: 100%;

        padding:
            6px;
    }

    .login-panel {
        padding:
            12px
            13px;

        gap: 5px;
    }

    .login-heading h1 {
        font-size:
            clamp(25px, 8vw, 34px);
    }

    .login-heading p {
        font-size:
            clamp(7px, 2.3vw, 10px);
    }

    .input-row {
        min-height: 42px;
    }

    .action-button {
        min-height: 42px;
    }

    .server-strip {
        font-size: 9px;
    }

    .event-card {
        min-height: 56px;
    }

    .season-card {
        min-height: 50px;
    }

    .panel-links a span:first-child {
        display: none;
    }

    .footer-center {
        margin: auto;
    }
}


/* =========================================================
   SHORT LAPTOP SCREENS
========================================================= */

@media (min-width: 601px) and (max-height: 760px) {
    .page-shell {
        grid-template-rows:
            52px
            minmax(0, 1fr)
            34px;
    }

    .login-column {
        padding:
            7px
            10px;
    }

    .login-panel {
        padding:
            12px
            16px;

        gap: 4px;
    }

    .login-heading h1 {
        font-size:
            clamp(26px, 4.7vh, 36px);
    }

    .login-heading p {
        margin-top: 4px;

        font-size: 8px;
    }

    .input-row {
        min-height: 40px;
    }

    .action-button {
        min-height: 40px;
    }

    .event-card {
        min-height: 55px;
    }

    .season-card {
        min-height: 49px;
    }

    .panel-links a {
        min-height: 22px;
    }
}


/* =========================================================
   EXTREMELY SHORT SCREENS
   Hide only non-essential decorative content so login always fits.
========================================================= */

@media (max-height: 610px) {
    .season-card,
    .panel-links {
        display: none;
    }

    .login-heading p {
        display: none;
    }

    .login-panel {
        justify-content: center;

        gap: 7px;
    }
}


/* =========================================================
   OPERA / CHROMIUM AUTOFILL DARK THEME FIX
========================================================= */

/*
   Chromium-based browsers such as Opera can inject their own
   pale autofill background into username/password fields.
   Force autofilled credentials to retain the Wasteland theme.
*/

.input-row input:-webkit-autofill,
.input-row input:-webkit-autofill:hover,
.input-row input:-webkit-autofill:focus,
.input-row input:-webkit-autofill:active {
    -webkit-text-fill-color: #f1ede4 !important;

    caret-color: #f1ede4 !important;

    -webkit-box-shadow:
        0 0 0 1000px
        #020909
        inset !important;

    box-shadow:
        0 0 0 1000px
        #020909
        inset !important;

    background-color:
        #020909 !important;

    border: 0 !important;

    transition:
        background-color
        9999s ease-out
        0s;
}

/* Newer Chromium autofill selector. */
.input-row input:autofill {
    color: #f1ede4 !important;

    -webkit-text-fill-color:
        #f1ede4 !important;

    box-shadow:
        0 0 0 1000px
        #020909
        inset !important;

    background:
        #020909 !important;
}

/* Keep selected text readable without a bright full-field flash. */
.input-row input::selection {
    color: #f6f3ec;

    background:
        rgba(101, 153, 54, .72);
}

/* Give the whole input row a subtle active state instead. */
.input-row:focus-within {
    border-color:
        rgba(139, 208, 82, .62);

    box-shadow:
        inset 0 0 0 1px
        rgba(139, 208, 82, .08),
        0 0 10px
        rgba(93, 161, 54, .08);
}
