/* Crappie Cracker login page - dark theme, animated header, login card */
        :root {
            --primary-color: #1a3a5f;
            --secondary-color: #2c5282;
            --accent-color: #4a90e2;
            --light-color: #ebf8ff;
            --dark-color: #1a365d;
            --form-bg: #121212;
            --text-color: #e0e0e0;
            --label-color: #e0e0e0;
            --border-radius: 10px;
            --inner-border-radius: 8px;
            --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            --transition: all 0.3s ease;
            --primary: #050c16;
            --secondary: #0d2036;
            --accent: #4a90e2;
            --light: #f7fafc;
            --dark: #2d3748;
            --gray: #718096;
            --background: #1e3a5f;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #01040a, #07172b);
            color: var(--light-color);
            line-height: 1.4;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Header Styles - Made more compact */
        header {
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            padding: 0.7rem 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* ===== Animated hero header: 1200x268 banner canvas, text + eyes + running cat ===== */
header.hero-banner {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #010306;
    border-bottom: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* everything inside is laid out on a 1200 x 268 canvas and scales with its width (1cqw = 12px at full size) */
.hero-sizer {
    position: relative;
    container-type: inline-size;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    aspect-ratio: 1200 / 268;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 90%, transparent 100%);
}

.hero-slide {
    --d: 0s;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0;
    pointer-events: none;
    animation: heroSlide 15s linear infinite;
    animation-delay: var(--d);
}
.hero-slide:nth-child(1) { --d: 0s; }
.hero-slide:nth-child(2) { --d: 5s; }
.hero-slide:nth-child(3) { --d: 10s; }

.slide-explorer { background: radial-gradient(ellipse at 84% 50%, #0b355c 0%, #04101c 42%, #010409 100%); }
.slide-chat     { background: radial-gradient(ellipse at 84% 50%, #1b4a10 0%, #04120a 42%, #010402 100%); }
.slide-nav      { background: radial-gradient(ellipse at 84% 50%, #174510 0%, #03100a 42%, #010402 100%); }

/* slow light sheen sweeping across each slide */
.hero-slide::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,0.05) 50%, transparent 62%);
    background-size: 220% 100%;
    animation: heroSheen 6s linear infinite;
}

.hero-kicker, .hero-name, .hero-sub {
    position: absolute;
    left: 2.5cqw;
    animation: heroText 15s ease-out infinite;
    animation-delay: var(--d);
}

.hero-kicker {
    top: 1.1cqw;
    color: #ffd700;
    font-weight: 800;
    font-size: max(1.3cqw, 8px);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-shadow: 0.15cqw 0.15cqw 0 #000;
    white-space: nowrap;
}

.hero-name {
    top: 1.5cqw;
    font-size: 13cqw;
    font-weight: 900;
    line-height: 1.05;
    color: #12701f;
    -webkit-text-stroke: 0.5cqw #ffd700;
    paint-order: stroke fill;
    text-shadow: 0.4cqw 0.4cqw 0 #000;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.slide-explorer .hero-name { color: #0a4a85; }

.hero-sub {
    top: 16.8cqw;
    border-top: max(0.17cqw, 1px) solid #ffd700;
    box-shadow: 0 -1px 8px rgba(255, 215, 0, 0.35);
    padding-top: 0.6cqw;
}

.hero-tag {
    color: #ffd700;
    font-size: max(2.1cqw, 10px);
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}

/* Cat eyes (left eye centre ~ x918, right ~ x1102, y~134 on the canvas) */
.hero-eyes {
    position: absolute;
    left: 70.833cqw;
    top: 6.5cqw;
    width: 26.667cqw;
}
.hero-eyes svg {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 50% 50%;
    opacity: 0.35;
    animation: heroEyes 15s ease-in-out infinite;
    animation-delay: var(--d);
}
.hero-eyes .pupil {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: heroPupil 15s ease-in-out infinite;
    animation-delay: var(--d);
}

/* The cat (sprite sheet extracted from the banner animation) */
.hero-catlayer {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5cqw);
    mask-image: linear-gradient(90deg, transparent 0, #000 5cqw);
}
.hero-cat {
    position: absolute;
    left: 0; top: 0;
    width: 19.750cqw;
    height: 8.000cqw;
    background: url("login-cat.png") no-repeat;
    background-size: 800% 700%;
    opacity: 0;
    filter: drop-shadow(0 0 0.25cqw rgba(70, 200, 40, 0.7));
    animation: heroCat 15s step-end infinite;
    animation-delay: var(--d);
}

@keyframes heroSlide {
    0%      { opacity: 0; }
    2%      { opacity: 1; }
    30%     { opacity: 1; }
    33.33%  { opacity: 0; }
    100%    { opacity: 0; }
}

@keyframes heroSheen {
    from { background-position: 120% 0; }
    to   { background-position: -120% 0; }
}

@keyframes heroText {
    0%       { transform: translateX(-2cqw); }
    4%, 100% { transform: translateX(0); }
}

        @keyframes heroCat {
            0%      { opacity: 0; }
            3.333% { opacity: 1; left: 0.083cqw; top: 12.417cqw; background-position: 0.000% 0.000%; }
            3.667% { opacity: 1; left: 0.083cqw; top: 12.417cqw; background-position: 14.286% 0.000%; }
            4.000% { opacity: 1; left: 0.083cqw; top: 12.583cqw; background-position: 28.571% 0.000%; }
            4.333% { opacity: 1; left: 0.083cqw; top: 12.583cqw; background-position: 42.857% 0.000%; }
            4.667% { opacity: 1; left: 0.083cqw; top: 12.500cqw; background-position: 57.143% 0.000%; }
            5.000% { opacity: 1; left: 0.083cqw; top: 12.333cqw; background-position: 71.429% 0.000%; }
            5.333% { opacity: 1; left: 0.083cqw; top: 12.000cqw; background-position: 85.714% 0.000%; }
            5.667% { opacity: 1; left: 0.083cqw; top: 11.750cqw; background-position: 100.000% 0.000%; }
            6.000% { opacity: 1; left: 0.083cqw; top: 11.750cqw; background-position: 0.000% 16.667%; }
            6.333% { opacity: 1; left: 0.083cqw; top: 11.750cqw; background-position: 14.286% 16.667%; }
            6.667% { opacity: 1; left: 1.583cqw; top: 12.000cqw; background-position: 28.571% 16.667%; }
            7.000% { opacity: 1; left: 3.333cqw; top: 12.250cqw; background-position: 42.857% 16.667%; }
            7.333% { opacity: 1; left: 5.083cqw; top: 12.417cqw; background-position: 57.143% 16.667%; }
            7.667% { opacity: 1; left: 6.833cqw; top: 12.500cqw; background-position: 71.429% 16.667%; }
            8.000% { opacity: 1; left: 8.667cqw; top: 12.333cqw; background-position: 85.714% 16.667%; }
            8.333% { opacity: 1; left: 10.417cqw; top: 12.167cqw; background-position: 100.000% 16.667%; }
            8.667% { opacity: 1; left: 12.167cqw; top: 11.917cqw; background-position: 0.000% 33.333%; }
            9.000% { opacity: 1; left: 13.917cqw; top: 11.583cqw; background-position: 14.286% 33.333%; }
            9.333% { opacity: 1; left: 15.667cqw; top: 11.583cqw; background-position: 28.571% 33.333%; }
            9.667% { opacity: 1; left: 17.500cqw; top: 11.583cqw; background-position: 42.857% 33.333%; }
            10.000% { opacity: 1; left: 19.250cqw; top: 11.750cqw; background-position: 57.143% 33.333%; }
            10.333% { opacity: 1; left: 21.083cqw; top: 12.000cqw; background-position: 71.429% 33.333%; }
            10.667% { opacity: 1; left: 22.833cqw; top: 12.167cqw; background-position: 85.714% 33.333%; }
            11.000% { opacity: 1; left: 24.667cqw; top: 12.250cqw; background-position: 100.000% 33.333%; }
            11.333% { opacity: 1; left: 26.500cqw; top: 12.167cqw; background-position: 0.000% 50.000%; }
            11.667% { opacity: 1; left: 28.333cqw; top: 11.833cqw; background-position: 14.286% 50.000%; }
            12.000% { opacity: 1; left: 30.083cqw; top: 11.583cqw; background-position: 28.571% 50.000%; }
            12.333% { opacity: 1; left: 31.917cqw; top: 11.417cqw; background-position: 42.857% 50.000%; }
            12.667% { opacity: 1; left: 33.750cqw; top: 11.333cqw; background-position: 57.143% 50.000%; }
            13.000% { opacity: 1; left: 35.583cqw; top: 11.417cqw; background-position: 71.429% 50.000%; }
            13.333% { opacity: 1; left: 37.417cqw; top: 11.583cqw; background-position: 85.714% 50.000%; }
            13.667% { opacity: 1; left: 39.250cqw; top: 11.667cqw; background-position: 100.000% 50.000%; }
            14.000% { opacity: 1; left: 41.083cqw; top: 11.750cqw; background-position: 0.000% 66.667%; }
            14.333% { opacity: 1; left: 42.917cqw; top: 11.750cqw; background-position: 14.286% 66.667%; }
            14.667% { opacity: 1; left: 44.750cqw; top: 11.750cqw; background-position: 28.571% 66.667%; }
            15.000% { opacity: 1; left: 46.667cqw; top: 11.417cqw; background-position: 42.857% 66.667%; }
            15.333% { opacity: 1; left: 48.500cqw; top: 11.333cqw; background-position: 57.143% 66.667%; }
            15.667% { opacity: 1; left: 50.417cqw; top: 11.000cqw; background-position: 71.429% 66.667%; }
            16.000% { opacity: 1; left: 52.333cqw; top: 11.000cqw; background-position: 85.714% 66.667%; }
            16.333% { opacity: 1; left: 54.167cqw; top: 11.000cqw; background-position: 100.000% 66.667%; }
            16.667% { opacity: 1; left: 56.000cqw; top: 11.083cqw; background-position: 0.000% 83.333%; }
            17.000% { opacity: 1; left: 57.917cqw; top: 11.167cqw; background-position: 14.286% 83.333%; }
            17.333% { opacity: 1; left: 59.750cqw; top: 11.250cqw; background-position: 28.571% 83.333%; }
            17.667% { opacity: 1; left: 61.667cqw; top: 11.250cqw; background-position: 42.857% 83.333%; }
            18.000% { opacity: 1; left: 63.583cqw; top: 11.250cqw; background-position: 57.143% 83.333%; }
            18.333% { opacity: 1; left: 65.500cqw; top: 11.083cqw; background-position: 71.429% 83.333%; }
            18.667% { opacity: 1; left: 67.417cqw; top: 10.750cqw; background-position: 85.714% 83.333%; }
            19.000% { opacity: 1; left: 69.417cqw; top: 10.667cqw; background-position: 100.000% 83.333%; }
            19.333% { opacity: 1; left: 71.333cqw; top: 10.583cqw; background-position: 0.000% 100.000%; }
            19.667% { opacity: 1; left: 73.167cqw; top: 10.583cqw; background-position: 14.286% 100.000%; }
            20.000% { opacity: 1; left: 76.083cqw; top: 10.583cqw; background-position: 28.571% 100.000%; }
            20.333% { opacity: 1; left: 80.833cqw; top: 10.750cqw; background-position: 42.857% 100.000%; }
            20.667% { opacity: 0; }
            100%    { opacity: 0; }
        }

/* eyes wake up as the cat approaches (cat crosses the eye at ~2.4s-3.0s), flare, then blink */
@keyframes heroEyes {
    0%      { opacity: 0.35; filter: drop-shadow(0 0 6px rgba(255, 230, 0, 0.3)); transform: scaleY(1); }
    14%     { opacity: 0.45; filter: drop-shadow(0 0 8px rgba(255, 230, 0, 0.4)); transform: scaleY(1); }
    17%     { opacity: 0.8;  filter: drop-shadow(0 0 16px rgba(255, 235, 0, 0.8)); transform: scaleY(1); }
    19%     { opacity: 1;    filter: drop-shadow(0 0 28px rgba(255, 235, 0, 1)); transform: scaleY(1); }
    21%     { opacity: 1;    filter: drop-shadow(0 0 28px rgba(255, 235, 0, 1)); transform: scaleY(1); }
    22.5%   { opacity: 1;    filter: drop-shadow(0 0 20px rgba(255, 235, 0, 0.9)); transform: scaleY(0.08); }
    24%     { opacity: 1;    filter: drop-shadow(0 0 16px rgba(255, 235, 0, 0.8)); transform: scaleY(1); }
    100%    { opacity: 1;    filter: drop-shadow(0 0 14px rgba(255, 235, 0, 0.7)); transform: scaleY(1); }
}

@keyframes heroPupil {
    0%, 15% { transform: scaleX(1); }
    19%     { transform: scaleX(1.7); }
    22%     { transform: scaleX(1.7); }
    26%, 100% { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slide::before, .hero-kicker, .hero-name, .hero-sub,
    .hero-eyes svg, .hero-eyes .pupil, .hero-cat { animation: none; }
    .hero-slide { opacity: 0; }
    .hero-slide:nth-child(1) { opacity: 1; }
    .hero-cat { display: none; }
    .hero-eyes svg { opacity: 1; }
}

/* ===== Login card (styled like the home page dark cards) ===== */
        .login-container {
            width: 100%;
            max-width: 450px;
            background-color: var(--form-bg);
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
            overflow: hidden;
            margin: 30px auto;
            position: relative;
        }

        /* thin blue-to-gold accent line across the top of the card */
        .login-container::before {
            content: "";
            display: block;
            height: 3px;
            background: linear-gradient(90deg, #4a90e2, #ffd700);
        }

        .login-body {
            padding: 1.5rem;
            background-color: transparent;
            color: var(--text-color);
        }

        .login-body a { color: #4a90e2; text-decoration: none; transition: color 0.3s; }
        .login-body a:hover { color: #ffffff; }

        /* Tagline strip at the bottom of the card */
        .login-tagline {
            background: #0a0a0a;
            border-top: 1px solid #262626;
            color: #ffd700;
            text-align: center;
            padding: 0.9rem 1rem;
            font-size: 0.9rem;
            font-weight: 600;
            letter-spacing: 0.04em;
        }

        .login-tagline i {
            margin: 0 0.4em;
            display: inline-block;
            animation: taglineSwim 3.2s ease-in-out infinite;
        }

        @keyframes taglineSwim {
            0%, 100% { transform: translateX(0) rotate(0deg); }
            50%      { transform: translateX(4px) rotate(-8deg); }
        }

        @media (prefers-reduced-motion: reduce) {
            .login-tagline i { animation: none; }
        }

        /* Updated Footer Styles */
        footer {
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            text-align: center;
            padding: 20px 0;
            margin-top: auto;
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .alert {
            background-color: rgba(229, 62, 62, 0.14);
            color: #feb2b2;
            padding: 10px 12px;
            border-radius: 6px;
            margin-bottom: 12px;
            border-left: 4px solid #e53e3e;
            font-size: 0.9rem;
        }

        .custom-login-form {
            display: flex;
            flex-direction: column;
        }

        .form-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--label-color);
        }

        .form-control {
            width: 100%;
            padding: 10px 12px;
            margin-bottom: 6px;
            border: 1px solid #2a2a2a;
            border-radius: 6px;
            background-color: #0a0a0a;
            color: var(--text-color);
            font-size: 0.95rem;
            transition: var(--transition);
            box-sizing: border-box;
        }

        .form-control:focus {
            outline: none;
            border-color: #4a90e2;
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
            background-color: #0f0f0f;
        }

        /* keep browser autofill dark */
        input:-webkit-autofill,
        input:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset;
            -webkit-text-fill-color: #e0e0e0;
            caret-color: #e0e0e0;
        }

        .btn {
            background-color: #4a90e2;
            color: #ffffff;
            border: none;
            border-radius: 4px;
            padding: 10px 18px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 5px;
        }

        .btn:hover {
            filter: brightness(1.12);
            transform: translateY(-1px);
        }

        .btn:disabled {
            background-color: #4a5568;
            filter: none;
            transform: none;
            cursor: not-allowed;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            margin: 8px 0;
            font-size: 0.9rem;
            color: var(--label-color);
        }

        .checkbox-group input[type="checkbox"] {
            margin-right: 6px;
            accent-color: #4a90e2;
        }

        h2 {
            color: #4a90e2;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #4a90e2;
            text-align: left;
            font-weight: 700;
            font-size: 1.4rem;
        }

        h2 i { margin-right: 0.45rem; font-size: 0.9em; }

        @media (max-width: 767px) {
            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 12px;
            }
            
            .login-container {
                margin: 15px;
                max-width: calc(100% - 30px);
            }
            
            .btn {
                padding: 12px 18px;
                width: 100%;
                margin: 5px 0;
            }
        }
