@charset "utf-8";
/* ============================================================
   Modern re-skin for the public homepage.
   Loaded after reset/forms/all/recover.css so it wins on cascade.
   Deliberately CSS-only: no markup, IDs, names or classes used by
   the page's jQuery (login toggle, tabs, validationEngine, password
   strength meter) are touched, so all existing behaviour keeps working.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --bg-deep: #04060d;
    --panel-bg: rgba(13, 19, 33, 0.72);
    --panel-bg-solid: #101827;
    --panel-border: rgba(148, 163, 184, 0.16);
    --accent-1: #7c6dfb;
    --accent-2: #22d3ee;
    --accent-gradient: linear-gradient(135deg, #7c6dfb 0%, #22d3ee 100%);
    --text-main: #e7ecf7;
    --text-dim: #94a3b8;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
}

/* ---------- Base ---------- */
html, body {
    background-color: var(--bg-deep) !important;
    font-family: 'Outfit', Helvetica, Arial, sans-serif !important;
}

/* The original page-bg.jpg has a dark UI mockup box baked directly into
   the photo (leftover from the old fixed-width design) that never lines
   up with a fluid/responsive layout at other viewport sizes. Swap it for
   a clean nebula photo already used elsewhere in the app, sized to always
   cover the viewport regardless of window size. */
#start {
    background-image: url('/assets/upload/skins/xgproyect/img/background.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    position: relative;
}

#start::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 6, 13, 0.15) 0%, rgba(4, 6, 13, 0.55) 75%, rgba(4, 6, 13, 0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

#header, #content, #footerContent { position: relative; z-index: 1; }

h1, h2, h3, h4 {
    font-family: 'Rajdhani', 'Outfit', sans-serif !important;
    letter-spacing: 0.02em;
}

a { transition: color .2s ease; }

/* ---------- Header / brand ---------- */
#header {
    width: 100% !important;
    max-width: 940px;
    margin: 0 auto !important;
    height: auto !important;
    min-height: 110px;
    padding: 28px 32px 0;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 50;
}

#header h1 {
    width: auto !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
}

#header h1 a {
    text-indent: 0 !important;
    display: inline-block !important;
    height: auto !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 30px !important;
    letter-spacing: 0.06em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    text-shadow: none !important;
    line-height: 1.1 !important;
}

a#loginBtn {
    background: var(--panel-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--panel-border);
    border-radius: 999px !important;
    box-shadow: var(--shadow-soft);
    float: none;
    margin: 0 !important;
    padding: 0 26px;
    height: 42px !important;
    line-height: 42px !important;
    width: auto !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-main) !important;
    text-shadow: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
a#loginBtn:hover {
    background-position: 0 0 !important;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px var(--accent-1) inset, var(--shadow-soft);
}
a#loginBtn.open {
    background: var(--accent-gradient) !important;
    border-color: transparent;
    color: #05070f !important;
    font-weight: 700;
}

/* ---------- Login popup ---------- */
#login {
    background: var(--panel-bg) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft);
    height: auto !important;
    width: 250px !important;
    padding: 20px 14px 16px;
    box-sizing: border-box;
    top: 78px !important;
}

#login form#loginForm { width: auto !important; height: auto !important; margin: 0 !important; }

#login label {
    background: none !important;
    color: var(--text-dim) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 12px !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-left: 2px !important;
}

#login .black-border,
#subscribeForm .black-border {
    border: none !important;
    width: 100% !important;
}

#login input[type=text],
#login input[type=password],
#login select,
#subscribeForm input[type=text],
#subscribeForm input[type=password],
#subscribeForm select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--panel-border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-main) !important;
    width: 100% !important;
    box-sizing: border-box;
    height: 38px !important;
    padding: 0 12px !important;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
#login input:focus,
#subscribeForm input:focus,
#subscribeForm select:focus,
#login select:focus {
    border-color: var(--accent-1) !important;
    box-shadow: 0 0 0 3px rgba(124, 109, 251, 0.25);
    outline: none;
}

/* The <select> box itself picks up the dark theme above, but the open
   options list is rendered natively by the browser/OS and ignores most
   of that styling - without this, it defaults to dark text on a white
   background, making every option but the currently selected one
   unreadable. */
#login select option,
#subscribeForm select option {
    background: var(--panel-bg-solid) !important;
    color: var(--text-main) !important;
}

#login #loginSubmit {
    background: var(--accent-gradient) !important;
    border: none !important;
    border-radius: 999px !important;
    color: #05070f !important;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px !important;
    height: 42px !important;
    line-height: 42px !important;
    width: 100% !important;
    margin: 14px 0 8px !important;
    text-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform .15s ease, filter .15s ease;
}
#login #loginSubmit:hover { background-position: 0 0 !important; filter: brightness(1.1); transform: translateY(-1px); }

#login #pwLost {
    background: none !important;
    display: block;
    text-align: center;
    color: var(--text-dim) !important;
    font-size: 11px !important;
    padding: 0 !important;
    margin-top: 6px;
}
#login #pwLost:hover { color: var(--accent-2) !important; }

#login p#TermsAndConditionsAcceptWithLogin {
    color: var(--text-dim) !important;
    font-size: 10px !important;
    line-height: 1.4;
    margin-top: 10px !important;
}
#login p#TermsAndConditionsAcceptWithLogin a { color: var(--accent-2) !important; }

/* ---------- Content layout ---------- */
#content {
    width: 100% !important;
    max-width: 940px;
    margin: 24px auto 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    box-sizing: border-box;
    padding: 0 20px;
}

/* ---------- Register / subscribe panel ---------- */
#subscribe {
    float: none !important;
    margin: 0 !important;
    width: 280px !important;
    flex: 0 0 280px;
    /* Same stacking-context fix as #header: without an explicit
       z-index here, the validationEngine error tooltip (position:
       absolute, z-index:5000, appended inside this panel) gets
       painted behind the neighbouring glass panel's own stacking
       context instead of on top of it. */
    z-index: 30;
}

#subscribeForm {
    background: var(--panel-bg) !important;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--panel-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft);
    width: 100% !important;
    padding: 22px 18px 18px;
    box-sizing: border-box;
}

#subscribeForm h2 {
    font-size: 18px !important;
    letter-spacing: 0.04em;
    text-shadow: none !important;
    border-bottom: none !important;
    padding: 0 0 14px !important;
    color: var(--text-main);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#subscribeForm .input-wrap {
    background: none !important;
    height: auto !important;
    margin-bottom: 12px;
}
#subscribeForm .first { height: auto !important; }

#subscribeForm label {
    background: none !important;
    color: var(--text-dim) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 11px !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: auto !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
}

#subscribeForm .server_table {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--panel-border) !important;
    border-radius: var(--radius-sm) !important;
    width: 100% !important;
    height: 38px;
}
#subscribeForm #uni_select_box { color: var(--text-main); padding-left: 12px; font-size: 13px; }
#subscribeForm .server_table td:last-child {
    background: none !important;
    position: relative;
    width: 32px !important;
}
#subscribeForm .server_table td:last-child::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: translate(-50%, -65%) rotate(45deg);
}

#subscribeForm #submitWrap {
    background: none !important;
    margin-top: 6px;
}
#subscribeForm #submitWrap label {
    color: var(--text-dim) !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    height: auto !important;
    width: auto !important;
    padding-left: 26px !important;
}
#subscribeForm #submitWrap label a { color: var(--accent-2) !important; }

#agb, #stayLoggedIn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--panel-border) !important;
    border-radius: 4px;
    accent-color: var(--accent-1);
    width: 16px !important;
    height: 16px !important;
}

#securePwd { margin-top: 10px; }
#securePwd p { color: var(--text-dim) !important; font-size: 11px; margin-bottom: 6px; }
.securePwdBarBox {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    height: 8px !important;
}
#securePwdBar { transition: width .25s ease; border-radius: 999px; }

#regSubmit {
    background: var(--accent-gradient) !important;
    border: none !important;
    border-radius: 999px !important;
    color: #05070f !important;
    font-family: 'Outfit', sans-serif;
    font-size: 15px !important;
    font-weight: 700;
    height: 46px !important;
    line-height: 46px !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: center;
    text-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform .15s ease, filter .15s ease;
}
#regSubmit:hover { background-position: 0 0 !important; text-shadow: none !important; filter: brightness(1.1); transform: translateY(-1px); }
input#regSubmit { width: 100% !important; }

/* ---------- Tabs / info panel ---------- */
#contentWrap {
    float: none !important;
    width: 100% !important;
    flex: 1 1 420px;
    max-width: 480px;
}

#menu {
    background: none !important;
    height: auto !important;
    background: var(--panel-bg) !important;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--panel-border) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    box-shadow: var(--shadow-soft);
    padding: 6px 6px 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

#tabs {
    border-bottom: none !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    gap: 4px;
    flex: 1;
}
#tab4, #tab5, #tabs li {
    float: none !important;
    height: auto !important;
    width: auto !important;
    flex: 1;
}
#tab4, #tab5, #tabs li a {
    color: var(--text-dim) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 40px !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    text-shadow: none !important;
    transition: color .2s ease, background .2s ease;
}
#tab4, #tab5 { margin: 0 6px 0 0; padding: 0 18px; }
#tabs li a:hover { color: var(--text-main) !important; background: rgba(255, 255, 255, 0.05); }
#tab4:hover, #tab5:hover,
#tabs li a.current {
    color: var(--text-main) !important;
    background: rgba(124, 109, 251, 0.16);
    box-shadow: inset 0 -2px 0 var(--accent-2);
}

#tabContent {
    background: var(--panel-bg) !important;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--panel-border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    box-shadow: var(--shadow-soft);
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box;
    color: var(--text-main);
}
#tabContent h3, #tabContent h4 { color: var(--text-main) !important; }
#tabContent p, #tabContent li, #tabContent span, #tabContent div { color: var(--text-dim); }
#tabContent em { color: var(--text-main); }

#tabContent .inner-box {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--panel-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 14px !important;
}

#trailer img,
video {
    border: 1px solid var(--panel-border) !important;
    border-radius: var(--radius-md) !important;
    width: 100% !important;
    height: auto !important;
    margin: 8px 0 !important;
}

/* Legacy fixed-width wrappers left over from the old design; the video
   itself is already fluid above, but its container and a purely
   decorative footer strip still had hardcoded pixel widths that caused
   horizontal overflow on real phones (missing on desktop browsers,
   which don't need a viewport meta tag to size correctly). */
#flashTrailer {
    width: 100% !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
}
#contentFooter { display: none !important; }

/* ---------- Footer ---------- */
#footerContent, #footer {
    width: 100% !important;
    max-width: 940px;
    margin: 32px auto 24px !important;
    box-sizing: border-box;
    padding: 0 20px;
    text-align: center;
}
#footer p {
    color: var(--text-dim) !important;
    font-size: 11px !important;
    letter-spacing: 0.03em;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    #header { flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 20px; }
    #content { flex-direction: column; align-items: center; }
    #subscribe, #contentWrap { width: 100% !important; max-width: 360px; flex-basis: auto; }
    #login { right: 50% !important; transform: translateX(50%); top: 130px !important; }
}
