﻿/* ===========================================================
    1. RESET & SYSTEM VARIABLES
=========================================================== */
:root {
    --primary: #007bff;
    --primary-hover: #0056b3;
    --pink: #d63384;
    --pink-hover: #b82a6e;
    --bg-light: #eef1f5;
    --glass: rgba(255, 255, 255, 0.98);
    --card-shadow: 0 8px 30px rgba(0,0,0,0.08);
    --input-height: 48px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* ===========================================================
    2. HEADER (100PX LOGO & COMPACT HEIGHT)
=========================================================== */
.top-header {
    width: 100%;
    background: var(--glass);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    position: sticky;
    top: 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; /* Tight vertical padding */
    gap: 20px;
}

.header-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.header-title {
    flex: 1;
    text-align: center;
}

    .header-title h1 {
        font-size: 24px;
        font-weight: 800;
        color: #111;
        text-transform: uppercase;
        letter-spacing: -0.5px;
    }

.header-notice {
    font-size: 12px;
    color: var(--pink);
    font-weight: 600;
}

/* Desktop Navigation */
.main-nav {
    background: #fff;
    border-bottom: 4px solid var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
}

    .nav-links li a {
        text-decoration: none;
        color: #444;
        font-weight: 700;
        font-size: 16px;
        padding: 12px 25px;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: 0.2s;
    }

        .nav-links li a:hover {
            color: var(--primary);
            background: rgba(0, 123, 255, 0.05);
        }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--primary);
    cursor: pointer;
}

/* ===========================================================
    3. MAIN CONTENT (FIXED CARD WRAPPER LOGIC)
=========================================================== */
.main-bg {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 20px 1px;
}

.content-container {
    display: flex;
    flex-wrap: wrap; /* Important for mobile stacking */
    justify-content: center;
    align-items: stretch; /* Ensures cards match height on desktop */
    gap: 30px;
    width: 100%;
    max-width: 1100px;
}

.card-wrapper {
    flex: 1 1 450px; /* Base width 450px */
    max-width: 500px;
    display: flex; /* Makes the child (glass-card) fill the height */
}

.glass-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    width: 100%; /* Stretch to wrapper */
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    animation: fadeIn 0.6s ease-out;
}

/* Tracking & User Logos */
.card-icon img, .login-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.glass-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.glass-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}

/* ===========================================================
    4. FORMS & BUTTONS
=========================================================== */
.input-group-custom {
    position: relative;
    margin-bottom: 15px;
    text-align: left; /* Icons and text align left */
}

    .input-group-custom .icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary);
        z-index: 5;
    }

.input-custom {
    width: 100%;
    height: var(--input-height);
    padding: 0 15px 0 45px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    /* Increased font size */
    font-size: 18px;
    font-weight: 500; /* Makes text slightly cleaner */

    color: #333;
    transition: 0.2s;
}

    /* Optional: Increase placeholder font size specifically */
    .input-custom::placeholder {
        font-size: 16px;
        color: #999;
    }

    .input-custom:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }
.alert-msg {
    background-color: #fff5f5; /* Light red background */
    color: #c53030; /* Deep red text */
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #feb2b2; /* Soft red border */
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: shake 0.4s ease-in-out; /* Attention grabber */
}

    /* Optional: Add an icon via CSS if not in HTML */
    .alert-msg::before {
        content: "⚠️";
        font-size: 16px;
    }

.btn-login, .btn-pink {
    width: 100%;
    height: var(--input-height);
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
    margin-top: 10px;
}

.btn-login {
    background: var(--primary);
}

    .btn-login:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
    }

.btn-pink {
    background: var(--pink);
}

    .btn-pink:hover {
        background: var(--pink-hover);
        transform: translateY(-1px);
    }
.nav-close {
    display: none; /* Hidden by default */
    text-align: right;
    padding: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}
/* ===========================================================
    5. MOBILE RESPONSIVE (CORRECT DRAWER)
=========================================================== */
@media (max-width: 768px) {
    /* 1. Header Adjustments */
    .top-header {
        overflow: visible !important;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
    }

    .header-logo img {
        height: 70px;
    }

    .header-title h1 {
        font-size: 18px;
    }

    /* 2. Side Drawer (The Menu) */
    .main-nav {
        position: fixed;
        right: -320px; /* Hidden off-screen right */
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 10001; /* Highest layer */
        background: #ffffff;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        padding-top: 20px;
        display: block !important;
    }

        .main-nav.active {
            right: 0; /* Slide in */
        }

    /* 3. Navigation Links & Touch Targets */
    .nav-links {
        flex-direction: column;
        display: flex;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .nav-links li {
            width: 100%;
        }

        .nav-links a {
            display: flex !important;
            align-items: center;
            width: 100%;
            padding: 18px 30px;
            border-bottom: 1px solid #f5f5f5;
            color: #333;
            font-size: 16px;
            text-decoration: none;
            position: relative;
            z-index: 10005; /* Ensures link is above menu background */
            /* FIX: Ensures the tap registers immediately on mobile */
            pointer-events: auto !important;
            touch-action: manipulation;
        }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        /* 1. Essential: Ensure it doesn't block clicks when hidden */
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
       
        z-index: 0;
        transition: opacity 0.3s, visibility 0.3s;
    }

        .menu-overlay.active {
            visibility: visible;
            opacity: 1;
            /* 3. Essential: Re-enable clicks so you can click the overlay to close the menu */
            pointer-events: auto;
        }

    /* 5. Close Button */
    .nav-close {
        display: block;
        padding: 10px 25px;
        text-align: right;
        font-size: 28px;
        cursor: pointer;
        color: var(--primary, #000);
    }

    /* 6. Hide Desktop-only Elements */
    .header-contact,
    .location-sidebar {
        display: none !important;
    }

    .card-wrapper {
        flex: 1 1 100%;
    }
}

/* ===========================================================
    6. FOOTER
=========================================================== */
.page-footer {
    text-align: center;
    padding: 25px;
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
