<!doctype html>
<html>
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Mastermind — Login</title>
  <style>
    body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;margin:0;background:#0b0f14;color:#e8eef7}
    .wrap{max-width:420px;margin:0 auto;padding:28px}
    .card{background:#111824;border:1px solid #233043;border-radius:12px;padding:16px}
    label{display:block;margin:10px 0 6px;color:#a9b7c6}
    input{width:100%;padding:12px;border-radius:10px;border:1px solid #233043;background:#0e1520;color:#e8eef7}
    button{width:100%;padding:12px;border-radius:10px;border:1px solid #233043;background:#1c2a3d;color:#e8eef7;margin-top:12px}
    .row{display:flex;gap:10px;margin-top:12px}
    .row a{flex:1;text-align:center;text-decoration:none;padding:12px;border-radius:10px;border:1px solid #233043;color:#7cc4ff;background:#0e1520}
    .muted{color:#a9b7c6;font-size:13px;line-height:1.4}
  </style>
</head>
<body>
  <div class="wrap">
    <h1 style="margin:0 0 8px">Mastermind</h1>
    <div class="muted">Local login + Google/Microsoft OAuth. Mobile friendly.</div>
    <div style="height:12px"></div>

    <div class="card">
      <form method="post" action="/login">
        <label>Email</label>
        <input name="email" placeholder="you@company.com" />
        <label>Password</label>
        <input name="password" type="password" placeholder="••••••••" />
        <button type="submit">Sign in (local)</button>
      </form>

      <div class="row">
        <% if (googleEnabled) { %>
          <a href="/auth/google">Google</a>
        <% } %>
        <% if (microsoftEnabled) { %>
          <a href="/auth/microsoft">Microsoft</a>
        <% } %>
      </div>

      <p class="muted" style="margin-top:12px">
        First run creates <b>owner@local / owner</b> (change ASAP).
      </p>
    </div>
  </div>
</body>
</html>
