<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign in — AID Partner Portal | Lauritz Knudsen</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=Archivo:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="<?= base_url('public/assets'); ?>/css/style.css">
</head>
<body>

<!-- ============================================================
  LOGIN PAGE
  DEVELOPER (PHP): <form action="login.php" method="POST">
  Fields: aid_email, aid_password
  On success: set $_SESSION and redirect to dashboard.php
============================================================ -->
<main class="login-wrap">

  <section class="login-left">
    <div class="brand">
      <!-- Replace this SVG with the official logo file if available:
           <img src="assets/img/logo-white.png" alt="Lauritz Knudsen" width="230"> -->
      <svg class="lk-logo" width="230" viewBox="0 0 300 112" role="img" aria-label="Lauritz Knudsen — Electrical and Automation">
        <rect x="3" y="3" width="294" height="76" rx="38" fill="none" stroke="#fff" stroke-width="3"/>
        <rect x="10" y="10" width="280" height="62" rx="31" fill="#fff"/>
        <text x="46" y="42" font-family="Archivo,Arial,sans-serif" fill="#175D8D" font-weight="800"><tspan font-size="34">L</tspan><tspan font-size="24">auritz</tspan></text>
        <text x="86" y="66" font-family="Archivo,Arial,sans-serif" fill="#175D8D" font-weight="800"><tspan font-size="34">K</tspan><tspan font-size="24">nudsen</tspan></text>
        <text x="150" y="103" text-anchor="middle" font-family="Inter,Arial,sans-serif" fill="#E6EDF5" font-size="17" font-weight="500">Electrical &amp; Automation</text>
      </svg>
    </div>

    <div class="login-hero">
      <h1>AID Partner Portal</h1>
      <p>Register architects, share Designer Club app credentials in one tap, and track every architect mapped to your account.</p>
    </div>

    <p class="login-foot">&copy; 2026 Lauritz Knudsen Electrical &amp; Automation. For authorised AID partners only.</p>
  </section>

  <section class="login-right">
    <form class="login-card" id="loginForm" novalidate>
      <h2>Sign in</h2>
      <p class="sub">Use your registered email ID to continue.</p>

      <div class="field" id="f-email">
        <label for="aid_email">Email ID <span class="req">*</span></label>
        <input type="email" id="aid_email" name="aid_email" placeholder="name@company.com" autocomplete="username" required>
        <p class="err">Enter a valid email address.</p>
      </div>

      <div class="field" id="f-pass">
        <label for="aid_password">Password <span class="req">*</span></label>
        <input type="password" id="aid_password" name="aid_password" placeholder="Enter your password" autocomplete="current-password" required>
        <p class="err">Password is required.</p>
      </div>

      <button type="submit" class="btn btn-primary btn-block">Sign in</button>

      <div class="login-links">
        <a href="#" id="linkForgot">Forgot password?</a>
        <a href="#" id="linkHelp">Need help?</a>
      </div>
    </form>
  </section>

</main>

<div class="toast" id="toast" role="status"></div>

<script src="<?= base_url('public/assets'); ?>/js/common.js"></script>
<script src="<?= base_url('public/assets'); ?>/js/login.js"></script>
</body>
</html>
