/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===============================
   Topbar Layout (HR-Style)
================================ */
.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

/* Left */
.logo-wrap {
    justify-self: start;
}

/* Center */
.main-nav {
    justify-self: center;
}

/* Right */
.nav-action {
    justify-self: end;
}


/* ===============================
   Main Navigation
================================ */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}


/* ===============================
   Main Navigation (Enhanced)
================================ */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 6px 2px;
    transition: color 0.2s ease;
}

/* Animated underline */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        #0b5ed7,
        #3b82f6
    );
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: #0b5ed7;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===============================
   Login Button (Premium Action)
================================ */
.nav-login-btn {
    padding: 9px 26px;
    border-radius: 999px; /* soft pill shape */
    background: linear-gradient(
        135deg,
        #0b5ed7,
        #2563eb
    );
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(11, 94, 215, 0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.nav-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(11, 94, 215, 0.35);
    filter: brightness(1.05);
}

.nav-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(11, 94, 215, 0.25);
}

/* Disable underline for button */
.nav-login-btn::after {
    display: none;
}

/* Hover effect */
.nav-login-btn:hover {
    background: linear-gradient(
        135deg,
        #0b5ed7,
        #2563eb
    );
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(11, 94, 215, 0.25);
    transform: translateY(-1px);
}

/* Active click */
.nav-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(11, 94, 215, 0.2);
}

/* ===============================
   Active Menu State (Optional)
================================ */
.main-nav a.active {
    color: #0b5ed7;
    font-weight: 600;
}

.main-nav a.active::after {
    width: 100%;
}

/* ===============================
   Base Page
================================ */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;

    /* Softer gradient so background image can show */
    background: linear-gradient(
        180deg,
        rgba(242, 246, 251, 0.88) 0%,
        rgba(255, 255, 255, 0.92) 60%
    );
}

/* ===============================
   Background Images (FIXED)
================================ */
body::before {
    content: "";
    position: fixed;
    inset: 0;

    /* ? Correct relative path */
    background: url("../images/event15.jpeg") center / cover no-repeat;

    opacity: 0.18;          /* visible but subtle */
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    bottom: -40px;
    right: -40px;
    width: 520px;
    height: 520px;

    /* ? Correct relative path */
    background: url("../images/event17.jpg") no-repeat;
    background-size: contain;

    opacity: 0.25;          /* slightly stronger */
    z-index: -1;
    pointer-events: none;
}

/* ===============================
   Utilities
================================ */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* ===============================
   Header
================================ */
.topbar {
    background: rgba(255, 255, 255, 0.96); /* translucent */
    backdrop-filter: blur(2px);
    border-bottom: 1px solid #e1e5eb;
    padding: 15px 0;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.logo-text span {
    color: #0b5ed7;
}

/* ===============================
   Hero Section
================================ */
.hero {
    background: transparent;
    padding: 90px 0;
    text-align: center;
}

.hero h1 {
    font-size: 34px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 16px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    background: #0b5ed7;
    color: #fff;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.btn-primary:hover {
    background: #094bb5;
}

/* ===============================
   Features
================================ */
.features {
    padding: 60px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.97); /* allows faint background */
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.card h3 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.card p {
    font-size: 14px;
    color: #555;
}

/* ===============================
   Footer
================================ */
.footer {
    background: rgba(255, 255, 255, 0.96); /* translucent */
    border-top: 1px solid #e1e5eb;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* ===============================
   Ensure Content is Above Background
================================ */
header,
section,
footer {
    position: relative;
    z-index: 10;
}
.hero-message {
    font-weight: 600;              /* bold but professional */
    color: #1a1a1a;
}
/* Hero Message Emphasis */
.hero-message {
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

/* Make emphasized words slightly stronger */
.hero-message strong {
    font-weight: 700;
    color: #0b5ed7; /* RCCG blue accent */
}

/* Soft divider under hero text */
.hero-divider {
    width: 80px;
    height: 3px;
    margin: 25px auto 0;
    background: linear-gradient(
        90deg,
        #0b5ed7,
        #3b82f6
    );
    border-radius: 2px;
}
/* ===============================
   Mobile Menu Toggle
================================ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    display: block;
    transition: 0.3s ease;
}

/* ===============================
   Navigation Wrapper
================================ */
.nav-wrapper {
    display: contents;
}

/* ===============================
   Mobile Styles
================================ */
@media (max-width: 900px) {

    /* Header layout */
    .topbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Show hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Hide nav by default */
    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(6px);
        border-bottom: 1px solid #e1e5eb;
        padding: 20px 0;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        z-index: 99;
    }

    /* Show when active */
    .nav-wrapper.active {
        display: flex;
    }

    /* Menu links */
    .main-nav ul {
        flex-direction: column;
        gap: 18px;
    }

    .main-nav a {
        font-size: 16px;
    }

    /* Login button on mobile */
    .nav-login-btn {
        width: 160px;
        text-align: center;
    }

    /* Hero spacing */
    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-message {
        font-size: 15px;
    }
}
/* ===============================
   Login Page
================================ */
.login-section {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.97);
    padding: 40px 35px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.login-container h1 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.login-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #0b5ed7;
    box-shadow: 0 0 0 2px rgba(11,94,215,0.15);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.login-note {
    margin-top: 25px;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
    }

    .login-container h1 {
        font-size: 24px;
    }
}
/* Login Error Message */
.login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}
/* ===============================
   Login Page Header Fix
================================ */
.login-section {
    margin-top: 40px;
}

/* Simplify header nav on login page */
body.login-page .main-nav ul {
    gap: 18px;
}

body.login-page .nav-login-btn {
    pointer-events: none;
    opacity: 0.9;
}
/* ===============================
   LOGIN PAGE – MOBILE FIX
================================ */
@media (max-width: 900px) {

    /* Header layout reset */
    .topbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Hide nav by default */
    .nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(6px);
        border-bottom: 1px solid #e1e5eb;
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        z-index: 999;
    }

    /* Show menu when active */
    .nav-wrapper.active {
        display: flex;
    }

    /* Stack nav links */
    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .main-nav a {
        font-size: 16px;
    }

    /* Login button full width */
    .nav-login-btn {
        width: 180px;
        text-align: center;
    }

    /* Login card spacing */
    .login-section {
        padding: 30px 15px;
    }

    .login-container {
        padding: 30px 25px;
    }

    /* Typography scale */
    .login-container h1 {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }
}
/* =====================================
   LOGIN PAGE MOBILE FIX (IMPORTANT)
===================================== */
@media (max-width: 768px) {

    /* Soften background on login page */
    body.login-page::before {
        opacity: 0.08 !important;
    }

    /* Proper login section spacing */
    .login-section {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px 15px;
    }

    /* True mobile card */
    .login-container {
        width: 100%;
        max-width: 380px;
        padding: 30px 20px;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    /* Full width inputs */
    .form-group input {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    /* Button full width */
    .btn-block {
        width: 100%;
    }

    /* Header simplified spacing */
    .topbar-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Hide nav on login page mobile */
    body.login-page .nav-wrapper {
        display: none;
    }

    body.login-page .menu-toggle {
        display: none;
    }
}
/* ====================================
   Ultra Premium Enterprise Loader
==================================== */

.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);

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

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.25s ease, visibility 0.25s ease;

    z-index: 999999;
    cursor: wait;
}

/* Active state */
.page-loader.active {
    opacity: 1;
    visibility: visible;
}

/* Elegant dual ring spinner */
.premium-spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(11, 94, 215, 0.15);
    border-top: 3px solid #0b5ed7;
    animation: spin 0.9s linear infinite;
    position: relative;
}

/* Inner subtle glow ring */
.premium-spinner::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid rgba(11, 94, 215, 0.2);
    border-top: 2px solid #2563eb;
    animation: spinReverse 1.2s linear infinite;
}

/* Rotation animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
/* Back to Homepage Button */
.back-home-wrapper {
    text-align: center;
    margin-top: 18px;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #dcdcdc;
    background: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #cfd4da;
}
/* Admin Highlight */
.login-page .logo-text span {
    color: #dc3545; /* Subtle red for ADMIN */
}
