/* =========================================================
   GLOBAL
========================================================= */
:root {
    --white: #fff;
    --dark: #000;
    --red: #ff0000;
    --red-dark: #4d0b0b;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--white);
    background:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.8)),
        url("../image/System/login-bg.png") no-repeat center/cover fixed;
}

section {
    margin: 0;
    padding: 0;
}

/* =========================================================
   TOP NAVIGATION
========================================================= */
.top-nav {
    position: absolute;
    top: 20px;
    inset-inline: 0;
    padding: 0 40px;
    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    opacity: .9;
}

.nav-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* =========================================================
   COUNTERS
========================================================= */
.counters {
    display: flex;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.counter-box {
    min-width: 90px;
}

.counter {
    font-size: 26px;
    font-weight: bold;
}

.counter-box p {
    font-size: 13px;
    opacity: .9;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-box {
    max-width: 800px;
    animation: fadeUp .8s ease;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    opacity: .9;
}

.hero button {
    margin-top: 10px;
    padding: 14px 40px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ff4d4d, #b30000);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,.6);
}

.hero button:hover {
    transform: translateY(-2px);
}

/* =========================================================
   FEATURES
========================================================= */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 60px 80px;
}

.feature-card {
    background: linear-gradient(135deg, #7a0c0c, #2b2b2b);
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.6);
    transition: transform .3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card p {
    font-size: 15px;
    opacity: .9;
}

/* =========================================================
   MODAL (GENERIC)
========================================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.80);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   LOGIN MODAL
========================================================= */
.login-card {
    position: relative;
    max-width: 400px;
    width: 95%;
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0a0a0a, #4d0b0b, #ff0000);
    box-shadow:
        0 25px 60px rgba(0,0,0,.85),
        inset 0 0 25px rgba(255,0,0,.15);
    animation: zoomIn .4s ease;
}

.login-title {
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Inputs */
.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
    background: #111;
    color: var(--white);
    box-shadow: inset 0 0 8px rgba(255,0,0,.25);
}

.login-card input::placeholder {
    color: #aaa;
}

/* Buttons */
.login-btn,
.cancelbtn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;

}

.login-btn {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    font-weight: bold;
    box-shadow: 0 12px 25px rgba(255,0,0,.4);
}

.login-btn:hover {
    transform: translateY(-5px);
}

.cancelbtn {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    /*background: linear-gradient(135deg,  #4f4c4c ,#030000); */
    margin-top: 10px;    
    color: var(--white);
    border: 1px solid #444;
}

.cancelbtn:hover {
    transform: translateY(-5px);
}

/* Close icon */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {

    .top-nav {
        position: relative;
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        gap: 18px;
    }

    .counters {
        gap: 15px;
    }

    .counter {
        font-size: 20px;
    }

    .counter-box p {
        font-size: 11px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 30px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .login-card {
        margin: 0 15px;
    }

    .hero-title span {
        display: block;   /* forces new line */
    }

    .hero-title .line-2 {
        font-weight: 800;   /* bold only on mobile */
    }
}

@media (max-width: 768px) {

    /* Reduce hero height slightly */
    .hero {
        min-height: 85vh;   /* was 100vh */
        padding-bottom: 5px;
    }

    /* Reduce space under title */
    .hero-title {
        margin-bottom: 6px;
    }

    /* Reduce paragraph spacing */
    .hero p {
        margin-bottom: 8px;
    }

    /* Pull counters closer */
    .counters {
        margin-top: 5px;
    }
}

