<?php
require_once 'includes/db.php';
if (session_status() === PHP_SESSION_NONE) {
    ini_set('session.cookie_httponly', 1);
    ini_set('session.use_strict_mode', 1);
    session_start();
}
if (!empty($_SESSION[ADMIN_SESSION_KEY])) { header('Location: dashboard.php'); exit; }

$error = $success = '';

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    if (empty($_POST['csrf_token']) || $_POST['csrf_token'] !== ($_SESSION['csrf_token'] ?? '')) {
        $error = 'Invalid request. Please try again.';
    } else {
        $identifier = trim($_POST['identifier'] ?? '');
        $password   = $_POST['password'] ?? '';
        if (empty($identifier) || empty($password)) {
            $error = 'Please enter both email/username and password.';
        } else {
            $max_attempts = 5; $lockout_time = 15 * 60;
            $attempt_key  = 'login_attempts_' . md5($identifier);
            $locked_key   = 'login_locked_'   . md5($identifier);
            if (!empty($_SESSION[$locked_key]) && time() < $_SESSION[$locked_key]) {
                $remaining = ceil(($_SESSION[$locked_key] - time()) / 60);
                $error = "Too many failed attempts. Try again in {$remaining} minute(s).";
            } else {
                $admin = db_fetch_one(
                    "SELECT * FROM admins WHERE (email = ? OR username = ?) AND status = 'active' LIMIT 1",
                    [$identifier, $identifier]
                );
                if ($admin && password_verify($password, $admin['password_hash'])) {
                    unset($_SESSION[$attempt_key], $_SESSION[$locked_key]);
                    session_regenerate_id(true);
                    $_SESSION[ADMIN_SESSION_KEY] = true;
                    $_SESSION['admin_id']        = $admin['id'];
                    $_SESSION['admin_name']      = $admin['full_name'];
                    $_SESSION['admin_username']  = $admin['username'];
                    $_SESSION['admin_role']      = $admin['role'];
                    $_SESSION['admin_avatar']    = $admin['avatar'];
                    $_SESSION['login_time']      = time();
                    db_execute("UPDATE admins SET last_login = NOW() WHERE id = ?", [$admin['id']]);
                    db_execute("INSERT INTO activity_log (admin_id, action, target_type, details, ip_address) VALUES (?, 'admin_login', 'system', 'Admin logged in', ?)", [$admin['id'], $_SERVER['REMOTE_ADDR']]);
                    header('Location: dashboard.php'); exit;
                } else {
                    $_SESSION[$attempt_key] = ($_SESSION[$attempt_key] ?? 0) + 1;
                    if ($_SESSION[$attempt_key] >= $max_attempts) {
                        $_SESSION[$locked_key] = time() + $lockout_time;
                        $error = 'Too many failed attempts. Account locked for 15 minutes.';
                    } else {
                        $left  = $max_attempts - $_SESSION[$attempt_key];
                        $error = "Invalid credentials. {$left} attempt(s) remaining.";
                    }
                }
            }
        }
    }
}
if (empty($_SESSION['csrf_token'])) { $_SESSION['csrf_token'] = bin2hex(random_bytes(32)); }
$csrf_token = $_SESSION['csrf_token'];
?>
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title>Admin Login — Wadata Skill Acquisition Center</title>
<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=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Epilogue:wght@400;500;700;800&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"/>
<style>
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* ══ DESIGN TOKENS ══════════════════════════════════════════ */
:root {
  --or:        #E8621A;
  --or2:       #F48340;
  --or-g:      rgba(232,98,26,.15);
  --bl:        #1A6FE8;
  --bl2:       #4E96F4;
  --bl-g:      rgba(26,111,232,.13);
  --gold:      #F0A500;

  /* LIGHT */
  --page:      #EDF2FB;
  --panel:     rgba(255,255,255,.78);
  --panel2:    rgba(255,255,255,.55);
  --inp:       rgba(255,255,255,.9);
  --bdr:       rgba(26,111,232,.13);
  --bdr-f:     var(--or);
  --sh:        0 20px 60px rgba(26,111,232,.12), 0 2px 12px rgba(0,0,0,.05);
  --sh-inp:    0 0 0 3px rgba(232,98,26,.18);
  --th:        #0C1A35;
  --tb:        #3B4E72;
  --tm:        #7A8EAD;
  --mesh:      rgba(26,111,232,.045);
  --orb1:      rgba(232,98,26,.22);
  --orb2:      rgba(26,111,232,.16);
  --orb3:      rgba(240,165,0,.14);
  --er-bg:     rgba(220,38,38,.07);
  --er-bd:     rgba(220,38,38,.22);
  --er-tx:     #991B1B;
  --ok-bg:     rgba(16,185,129,.08);
  --ok-bd:     rgba(16,185,129,.25);
  --ok-tx:     #065F46;
}

[data-theme=dark] {
  --page:      #0A1120;
  --panel:     rgba(15,24,48,.84);
  --panel2:    rgba(15,24,48,.6);
  --inp:       rgba(255,255,255,.06);
  --bdr:       rgba(255,255,255,.09);
  --bdr-f:     var(--or);
  --sh:        0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
  --sh-inp:    0 0 0 3px rgba(232,98,26,.25);
  --th:        #EEF3FF;
  --tb:        #9AAFCF;
  --tm:        #506080;
  --mesh:      rgba(255,255,255,.022);
  --orb1:      rgba(232,98,26,.28);
  --orb2:      rgba(26,111,232,.22);
  --orb3:      rgba(240,165,0,.18);
  --er-bg:     rgba(220,38,38,.12);
  --er-bd:     rgba(220,38,38,.3);
  --er-tx:     #FCA5A5;
  --ok-bg:     rgba(16,185,129,.12);
  --ok-bd:     rgba(16,185,129,.3);
  --ok-tx:     #6EE7B7;
}

html,body { height:100%; font-family:'Plus Jakarta Sans',sans-serif; background:var(--page); color:var(--tb); transition:background .35s,color .35s; }

/* ══ SCENE ══════════════════════════════════════════════════ */
.scene { position:fixed;inset:0;z-index:0;overflow:hidden; }
.scene::before {
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(ellipse 75% 55% at 8% 15%, var(--orb1), transparent 55%),
    radial-gradient(ellipse 65% 65% at 92% 88%, var(--orb2), transparent 55%),
    radial-gradient(ellipse 45% 45% at 55% 48%, var(--orb3), transparent 60%);
  transition:opacity .35s;
}
.scene::after {
  content:'';position:absolute;inset:0;
  background-image:linear-gradient(var(--mesh) 1px,transparent 1px),linear-gradient(90deg,var(--mesh) 1px,transparent 1px);
  background-size:56px 56px;
}
.orb { position:absolute;border-radius:50%;filter:blur(88px);animation:drift ease-in-out infinite alternate; }
.oa  { width:480px;height:480px;background:radial-gradient(var(--or2),transparent 70%);top:-170px;left:-110px;opacity:.5;animation-duration:16s; }
.ob  { width:380px;height:380px;background:radial-gradient(var(--bl2),transparent 70%);bottom:-110px;right:-90px;opacity:.42;animation-duration:13s;animation-delay:-6s; }
.oc  { width:240px;height:240px;background:radial-gradient(var(--gold),transparent 70%);top:40%;left:55%;opacity:.28;animation-duration:19s;animation-delay:-10s; }
@keyframes drift { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(38px,26px) scale(1.08)} }

/* ══ LAYOUT ═════════════════════════════════════════════════ */
.page { position:relative;z-index:1;display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh; }

/* ══ LEFT: BRAND PANEL ═══════════════════════════════════════ */
.brand {
  display:flex;flex-direction:column;justify-content:center;
  padding:60px 64px;position:relative;overflow:hidden;
}

/* Decorative glass circles */
.brand::before {
  content:'';position:absolute;
  width:320px;height:320px;border-radius:50%;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  top:-80px;right:-80px;
}
.brand::after {
  content:'';position:absolute;
  width:180px;height:180px;border-radius:50%;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  bottom:60px;left:-50px;
}

.brand-logo {
  display:flex;align-items:center;gap:14px;margin-bottom:52px;
}
.brand-logo-icon {
  width:58px;height:58px;border-radius:18px;
  background:white;padding:8px;
  box-shadow:0 6px 24px rgba(232,98,26,.25);
  display:grid;place-items:center;flex-shrink:0;
  overflow:hidden;
}
.brand-logo-icon img { width:100%;height:100%;object-fit:contain; }
.brand-logo-icon .fallback {
  width:100%;height:100%;border-radius:10px;
  background:linear-gradient(135deg,var(--or),var(--bl));
  display:grid;place-items:center;color:white;font-size:22px;
}
.brand-logo-name strong {
  display:block;font-family:'Epilogue',sans-serif;
  font-size:21px;font-weight:800;color:var(--th);letter-spacing:-.3px;
}
.brand-logo-name span {
  font-size:10.5px;font-weight:700;letter-spacing:2px;
  text-transform:uppercase;color:var(--or);
}

.brand-hl {
  font-family:'Epilogue',sans-serif;
  font-size:clamp(26px,2.8vw,40px);
  font-weight:800;color:var(--th);
  line-height:1.15;letter-spacing:-.6px;margin-bottom:18px;
}
.brand-hl em {
  font-style:normal;
  background:linear-gradient(130deg,var(--or) 20%,var(--gold) 50%,var(--bl) 80%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}

.brand-sub { font-size:14.5px;color:var(--tm);line-height:1.75;max-width:370px;margin-bottom:44px; }

/* Feature list */
.features { display:flex;flex-direction:column;gap:10px; }
.feat {
  display:flex;align-items:center;gap:12px;
  padding:13px 17px;
  background:var(--panel);
  border:1px solid var(--bdr);
  border-radius:14px;
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  font-size:13.5px;font-weight:600;color:var(--tb);
  max-width:360px;
  transition:transform .2s,box-shadow .2s;
  animation:slideR .6s cubic-bezier(.22,1,.36,1) both;
}
.feat:hover { transform:translateX(5px);box-shadow:var(--sh); }
.feat:nth-child(1){animation-delay:.1s}
.feat:nth-child(2){animation-delay:.18s}
.feat:nth-child(3){animation-delay:.26s}
.feat:nth-child(4){animation-delay:.34s}
@keyframes slideR { from{opacity:0;transform:translateX(-16px)} to{opacity:1;transform:translateX(0)} }

.feat-ico {
  width:34px;height:34px;border-radius:10px;
  display:grid;place-items:center;font-size:14px;flex-shrink:0;
}

/* Stats row */
.brand-stats { display:flex;gap:24px;margin-bottom:40px; }
.bstat { }
.bstat-n { font-family:'Epilogue',sans-serif;font-size:28px;font-weight:800;color:var(--th);line-height:1; }
.bstat-l { font-size:11px;font-weight:600;color:var(--tm);margin-top:3px;text-transform:uppercase;letter-spacing:.8px; }
.bstat-div { width:1px;background:var(--bdr);align-self:stretch; }

/* ══ RIGHT: FORM PANEL ═══════════════════════════════════════ */
.form-side {
  display:flex;align-items:center;justify-content:center;
  padding:40px 36px;
  background:var(--panel2);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-left:1px solid var(--bdr);
  transition:background .35s,border-color .35s;
}

.card {
  width:100%;max-width:430px;
  background:var(--panel);
  border:1px solid var(--bdr);
  border-radius:26px;
  backdrop-filter:blur(36px) saturate(180%);
  -webkit-backdrop-filter:blur(36px) saturate(180%);
  padding:42px 38px;
  box-shadow:var(--sh);
  animation:cardIn .65s cubic-bezier(.22,1,.36,1) both;
  transition:background .35s,border-color .35s,box-shadow .35s;
}
@keyframes cardIn { from{opacity:0;transform:translateY(24px) scale(.97)} to{opacity:1;transform:none} }

.eyebrow {
  display:inline-flex;align-items:center;gap:7px;
  padding:5px 13px;border-radius:20px;
  background:linear-gradient(135deg,var(--or-g),var(--bl-g));
  border:1px solid rgba(232,98,26,.18);
  font-size:11px;font-weight:800;letter-spacing:1.2px;
  text-transform:uppercase;color:var(--or);
  margin-bottom:18px;
}

.card-h { font-family:'Epilogue',sans-serif;font-size:25px;font-weight:800;color:var(--th);margin-bottom:5px;letter-spacing:-.4px; }
.card-s { font-size:13.5px;color:var(--tm);margin-bottom:28px;line-height:1.55; }

/* Alert */
.alert {
  display:flex;align-items:flex-start;gap:10px;
  padding:13px 15px;border-radius:12px;
  font-size:13px;font-weight:600;margin-bottom:20px;
  animation:alertIn .3s ease both;
}
@keyframes alertIn { from{opacity:0;transform:translateY(-5px)} to{opacity:1;transform:none} }
.ae { background:var(--er-bg);border:1px solid var(--er-bd);color:var(--er-tx); }
.as { background:var(--ok-bg);border:1px solid var(--ok-bd);color:var(--ok-tx); }

/* Form */
.fg { margin-bottom:17px; }
.fl { display:block;font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--tm);margin-bottom:7px; }
.iw { position:relative; }
.ii { position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:13.5px;color:var(--tm);pointer-events:none;transition:color .2s; }
.fi {
  width:100%;background:var(--inp);
  border:1.5px solid var(--bdr);border-radius:12px;
  padding:13px 15px 13px 43px;
  color:var(--th);font-family:'Plus Jakarta Sans',sans-serif;
  font-size:14px;font-weight:500;outline:none;
  transition:border-color .22s,box-shadow .22s,background .22s;
  -webkit-appearance:none;
}
.fi::placeholder { color:var(--tm);font-weight:400; }
.fi:focus { border-color:var(--or);box-shadow:var(--sh-inp); }
.iw:focus-within .ii { color:var(--or); }
.pt { position:absolute;right:13px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--tm);cursor:pointer;font-size:13px;padding:4px;transition:color .2s; }
.pt:hover { color:var(--or); }
.ht { padding-right:42px; }

/* Row */
.fr { display:flex;align-items:center;justify-content:space-between;margin-bottom:24px; }
.cw { display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;color:var(--tm);font-weight:600;user-select:none; }
.cw input[type=checkbox] {
  appearance:none;width:17px;height:17px;
  border:1.5px solid var(--bdr);border-radius:5px;
  background:var(--inp);cursor:pointer;display:grid;place-items:center;
  transition:all .2s;flex-shrink:0;
}
.cw input:checked { background:var(--or);border-color:var(--or); }
.cw input:checked::before { content:'';width:9px;height:9px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.fgt { font-size:13px;color:var(--bl);text-decoration:none;font-weight:700;transition:color .2s; }
.fgt:hover { color:var(--or); }

/* Button */
.btn-s {
  width:100%;padding:14.5px;
  background:linear-gradient(130deg,var(--or) 0%,var(--or2) 45%,var(--bl) 100%);
  background-size:200% 100%;background-position:0 0;
  border:none;border-radius:13px;color:#fff;
  font-family:'Epilogue',sans-serif;font-size:15px;font-weight:800;
  cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;
  transition:background-position .45s,transform .2s,box-shadow .2s;
  box-shadow:0 6px 28px rgba(232,98,26,.38);
  letter-spacing:.1px;
}
.btn-s:hover { background-position:100% 0;transform:translateY(-2px);box-shadow:0 10px 36px rgba(232,98,26,.48); }
.btn-s:active { transform:none; }
.spin { display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:sp .6s linear infinite; }
@keyframes sp { to{transform:rotate(360deg)} }
.btn-s.loading .bt { display:none; }
.btn-s.loading .spin { display:block; }

/* Divider */
.dv { display:flex;align-items:center;gap:12px;margin:22px 0 0;font-size:10.5px;letter-spacing:1.2px;text-transform:uppercase;color:var(--tm);font-weight:700; }
.dv::before,.dv::after { content:'';flex:1;height:1px;background:var(--bdr); }

.cf { margin-top:14px;text-align:center;font-size:11.5px;color:var(--tm); }

/* ══ THEME TOGGLE ════════════════════════════════════════════ */
.tt {
  position:fixed;top:18px;right:20px;z-index:200;
  width:40px;height:40px;border-radius:50%;
  background:var(--panel);border:1px solid var(--bdr);
  backdrop-filter:blur(20px);display:grid;place-items:center;
  cursor:pointer;font-size:15px;color:var(--tb);
  box-shadow:0 4px 14px rgba(0,0,0,.1);
  transition:all .3s;
}
.tt:hover { transform:scale(1.1);color:var(--or); }

/* ══ RESPONSIVE ═════════════════════════════════════════════ */
@media(max-width:860px) {
  .page { grid-template-columns:1fr; }
  .brand { display:none; }
  .form-side { padding:24px 16px;border-left:none; }
}
</style>
</head>
<body>

<button class="tt" id="tt" aria-label="Toggle theme"><i class="fas fa-moon" id="ti"></i></button>

<div class="scene">
  <div class="orb oa"></div>
  <div class="orb ob"></div>
  <div class="orb oc"></div>
</div>

<div class="page">

  <!-- ══ LEFT BRAND ══════════════════════════════════════════ -->
  <div class="brand">

    <div class="brand-logo">
      <div class="brand-logo-icon">
        <img src="assets/images/logo.png" alt="Wadata"
             onerror="this.parentElement.innerHTML='<div class=fallback><i class=\'fas fa-graduation-cap\'></i></div>'"/>
      </div>
      <div class="brand-logo-name">
        <strong>WADATA</strong>
        <span>Skill Acquisition Center</span>
      </div>
    </div>

    <!-- Stats -->
    <div class="brand-stats">
      <div class="bstat">
        <div class="bstat-n">500+</div>
        <div class="bstat-l">Trainees</div>
      </div>
      <div class="bstat-div"></div>
      <div class="bstat">
        <div class="bstat-n">24</div>
        <div class="bstat-l">Programmes</div>
      </div>
      <div class="bstat-div"></div>
      <div class="bstat">
        <div class="bstat-n">98%</div>
        <div class="bstat-l">Completion</div>
      </div>
    </div>

    <h1 class="brand-hl">
      Empowering Skills,<br>
      <em>Building Futures</em>
    </h1>
    <p class="brand-sub">
      Your all-in-one admin dashboard for managing trainees, instructors, programmes, and certifications — built for Nigeria's growing skills economy.
    </p>

    <div class="features">
      <div class="feat">
        <div class="feat-ico" style="background:rgba(232,98,26,.12);color:var(--or)"><i class="fas fa-users"></i></div>
        Trainee enrolment &amp; progress tracking
      </div>
      <div class="feat">
        <div class="feat-ico" style="background:rgba(26,111,232,.12);color:var(--bl)"><i class="fas fa-chalkboard-user"></i></div>
        Programme &amp; instructor management
      </div>
      <div class="feat">
        <div class="feat-ico" style="background:rgba(240,165,0,.13);color:var(--gold)"><i class="fas fa-certificate"></i></div>
        Certification &amp; assessment records
      </div>
      <div class="feat">
        <div class="feat-ico" style="background:rgba(16,185,129,.12);color:#059669"><i class="fas fa-chart-line"></i></div>
        Real-time reports &amp; activity logs
      </div>
    </div>
  </div>

  <!-- ══ RIGHT FORM ════════════════════════════════════════== -->
  <div class="form-side">
    <div class="card">

      <div class="eyebrow"><i class="fas fa-shield-halved"></i> Admin Portal</div>
      <h1 class="card-h">Welcome back</h1>
      <p class="card-s">Sign in to manage Wadata Skill Acquisition Center.</p>

      <?php if ($error): ?>
        <div class="alert ae"><i class="fas fa-circle-exclamation"></i><span><?= htmlspecialchars($error) ?></span></div>
      <?php endif; ?>
      <?php if ($success): ?>
        <div class="alert as"><i class="fas fa-circle-check"></i><span><?= htmlspecialchars($success) ?></span></div>
      <?php endif; ?>

      <form method="POST" action="" id="lf" autocomplete="off" novalidate>
        <input type="hidden" name="csrf_token" value="<?= htmlspecialchars($csrf_token) ?>"/>

        <div class="fg">
          <label class="fl" for="identifier">Email or Username</label>
          <div class="iw">
            <input type="text" id="identifier" name="identifier" class="fi"
                   placeholder="admin@wadata.ng" value="<?= htmlspecialchars($_POST['identifier'] ?? '') ?>"
                   autocomplete="username" required/>
            <i class="fas fa-at ii"></i>
          </div>
        </div>

        <div class="fg">
          <label class="fl" for="password">Password</label>
          <div class="iw">
            <input type="password" id="password" name="password" class="fi ht"
                   placeholder="Enter your password" autocomplete="current-password" required/>
            <i class="fas fa-lock ii"></i>
            <button type="button" class="pt" id="pti"><i class="fas fa-eye" id="ptic"></i></button>
          </div>
        </div>

        <div class="fr">
          <label class="cw">
            <input type="checkbox" name="remember"/>
            Remember me
          </label>
          <a href="forgot-password.php" class="fgt">Forgot password?</a>
        </div>

        <button type="submit" class="btn-s" id="sb">
          <span class="bt"><i class="fas fa-arrow-right-to-bracket"></i> Sign In to Dashboard</span>
          <span class="spin"></span>
        </button>
      </form>

      <div class="dv">Secured Admin Access</div>
      <div class="cf"><i class="fas fa-lock" style="color:var(--or);margin-right:5px;font-size:10px;"></i>Protected portal — unauthorised access prohibited</div>
    </div>
  </div>

</div>

<script>
// Theme
const html=document.documentElement,tt=document.getElementById('tt'),ti=document.getElementById('ti');
const saved=localStorage.getItem('wadata-theme')||'light';
html.dataset.theme=saved; ti.className=saved==='dark'?'fas fa-sun':'fas fa-moon';
tt.onclick=()=>{const n=html.dataset.theme==='light'?'dark':'light';html.dataset.theme=n;localStorage.setItem('wadata-theme',n);ti.className=n==='dark'?'fas fa-sun':'fas fa-moon';};

// Password toggle
document.getElementById('pti').onclick=function(){
  const p=document.getElementById('password'),i=document.getElementById('ptic'),s=p.type==='password';
  p.type=s?'text':'password'; i.className=s?'fas fa-eye-slash':'fas fa-eye';
};

// Submit loading
document.getElementById('lf').addEventListener('submit',function(e){
  const id=document.getElementById('identifier').value.trim();
  const pw=document.getElementById('password').value;
  if(!id||!pw){e.preventDefault();return;}
  const b=document.getElementById('sb');b.classList.add('loading');b.disabled=true;
});
</script>
</body>
</html>
