/* ==========================================================================
   Counter-Strike Online: Re-Server Edition
   Theme: "CSO Neon" (dark charcoal background + neon-green accent)
   ========================================================================== */

:root {
    /* Backgrounds */
    --cso-bg-base: #0f1015;
    --cso-bg-panel: #1a1c23;
    --cso-bg-panel-alt: #15171e;
    --cso-bg-footer: #111111;

    /* Neon accent (brand / primary) */
    --cso-accent: #7167ee;
    --cso-accent-soft: rgba(113, 103, 238, 0.1);
    --cso-accent-glow: rgba(113, 103, 238, 0.4);

    /* Text */
    --cso-text-white: #ffffff;
    --cso-text-muted: #cccccc;
    --cso-text-dim: #aaaaaa;
    --cso-text-faint: #888888;
    --cso-text-faint-2: #777777;
    --cso-text-footer: #666666;

    /* Borders */
    --cso-border-dark: #333333;
    --cso-border-darker: #222222;
    --cso-border-input: #555555;

    /* Status */
    --cso-color-error: #ff4444;

    /* Hero background overlay */
    --cso-overlay-top: rgba(15, 16, 21, 0.82);
    --cso-overlay-bottom: rgba(15, 16, 21, 0.92);

    /* Shadows & misc */
    --cso-shadow-card: rgba(0, 0, 0, 0.6);
    --cso-indicator-inactive: rgba(255, 255, 255, 0.3);

    /* Gradients */
    --cso-gradient-overlay: linear-gradient(var(--cso-overlay-top), var(--cso-overlay-bottom));
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--cso-bg-base);
    color: var(--cso-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

header {
    background-color: var(--cso-bg-panel);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--cso-accent);
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--cso-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--cso-text-white);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--cso-text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--cso-accent);
}

/* ==========================================================================
   Hero section (with background slideshow)
   ========================================================================== */

.hero {
    position: relative;
    padding: 80px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70vh;
    gap: 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cso-gradient-overlay);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    height: 100%;
    gap: 40px;
}

.hero-text,
.hero-form {
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-text h1 span {
    color: var(--cso-accent);
    display: block;
    font-size: 38px;
}

.hero-text p {
    font-size: 18px;
    font-weight: 400;
    color: var(--cso-text-muted);
    margin-bottom: 30px;
}

/* ==========================================================================
   Registration form
   ========================================================================== */

.hero-form {
    flex: 0 0 400px;
    background-color: rgba(26, 28, 35, 0.95);
    padding: 35px 30px;
    border-radius: 12px;
    border-top: 4px solid var(--cso-accent);
    box-shadow: 0 10px 30px var(--cso-shadow-card);
    backdrop-filter: blur(10px);
}

.hero-form h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
}

.card-theme {
    background-color: rgba(26, 28, 35, 0.95);
    border-radius: 12px;
    border-top: 4px solid var(--cso-accent);
    box-shadow: 0 10px 30px var(--cso-shadow-card);
    backdrop-filter: blur(10px);
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cso-text-dim);
    margin-bottom: 6px;
}

input {
    background-color: var(--cso-bg-base);
    border: 1px solid var(--cso-border-dark);
    color: var(--cso-text-white);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--cso-accent);
}

input.input-error {
    border-color: var(--cso-color-error);
}

.help-text {
    font-size: 11px;
    font-style: italic;
    color: var(--cso-text-faint-2);
    margin-top: -10px;
    margin-bottom: 15px;
}

.field-error {
    color: var(--cso-color-error);
    font-size: 11px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.field-error::before {
    content: '⚠ ';
}

.alert-success {
    background-color: var(--cso-accent-soft);
    border: 1px solid var(--cso-accent);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    color: var(--cso-accent);
    font-size: 13px;
}

.alert-error {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--cso-color-error);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    color: var(--cso-color-error);
    font-size: 13px;
}

.alert-error::before {
    content: '⚠ ';
}

.form-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--cso-border-dark);
    text-align: center;
}

.form-footer p {
    color: var(--cso-text-faint);
    font-size: 14px;
}

.form-footer a {
    color: var(--cso-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    text-shadow: 0 0 10px var(--cso-accent-glow);
}

.btn-submit {
    background-color: var(--cso-accent);
    color: var(--cso-bg-base);
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    text-align: center;
}

.btn-submit:hover {
    box-shadow: 0 0 15px var(--cso-accent-glow);
    transform: translateY(-1px);
}

/* ==========================================================================
   Download section
   ========================================================================== */

.download-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--cso-border-dark);
    text-align: center;
}

.btn-download {
    display: inline-block;
    width: 100%;
    background-color: transparent;
    color: var(--cso-text-white);
    border: 1px solid var(--cso-border-input);
    padding: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    border-color: var(--cso-accent);
    color: var(--cso-accent);
}

/* ==========================================================================
   Server status bar
   ========================================================================== */

.status-bar {
    background-color: var(--cso-bg-panel-alt);
    padding: 25px;
    display: flex;
    justify-content: center;
    gap: 60px;
    border-bottom: 1px solid var(--cso-border-darker);
}

.status-item {
    text-align: center;
}

.status-item h3 {
    color: var(--cso-text-faint);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.status-item p {
    font-size: 24px;
    font-weight: 800;
    color: var(--cso-accent);
}

/* ==========================================================================
   Features section
   ========================================================================== */

.features {
    padding: 70px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.feature-grid {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.feature-card {
    background-color: var(--cso-bg-panel);
    padding: 30px;
    border-radius: 12px;
    flex: 1;
    min-width: 250px;
    border-left: 3px solid var(--cso-accent);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--cso-text-white);
}

.feature-card p {
    font-size: 14px;
    font-weight: 400;
    color: var(--cso-text-dim);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background-color: var(--cso-bg-footer);
    text-align: center;
    padding: 25px;
    color: var(--cso-text-footer);
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid var(--cso-border-darker);
}

/* ==========================================================================
   Slideshow indicators
   ========================================================================== */

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slide-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cso-indicator-inactive);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background: var(--cso-accent);
    transform: scale(1.2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 40px 20px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 span {
        display: inline;
        font-size: inherit;
    }

    .hero-form {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .status-bar {
        flex-direction: column;
        gap: 20px;
    }
}