<!doctype html>
<html lang="ru">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Вход - Churn Risk</title>
  <style>
    :root {
      --bg: #f4f6f8;
      --surface: #ffffff;
      --line: #dbe2e8;
      --text: #17212b;
      --muted: #647384;
      --blue: #2468c7;
      --red: #c43145;
      --red-soft: #fce9ec;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 24px;
      background: var(--bg);
      color: var(--text);
      font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      letter-spacing: 0;
    }

    .login {
      width: min(420px, 100%);
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--surface);
      box-shadow: 0 14px 32px rgba(23, 33, 43, 0.08);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 26px;
    }

    .mark {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 7px;
      background: #17212b;
      color: #fff;
      font-weight: 700;
    }

    h1 {
      margin: 0;
      font-size: 22px;
      line-height: 1.2;
      font-weight: 650;
    }

    .context {
      color: var(--muted);
      font-size: 13px;
    }

    label {
      display: block;
      margin-bottom: 14px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 500;
    }

    input {
      width: 100%;
      height: 44px;
      margin-top: 6px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 6px;
      color: var(--text);
      font: inherit;
      letter-spacing: 0;
    }

    input:focus {
      outline: 2px solid #bed6f7;
      border-color: var(--blue);
    }

    button {
      width: 100%;
      height: 44px;
      margin-top: 4px;
      border: 1px solid var(--blue);
      border-radius: 6px;
      background: var(--blue);
      color: #fff;
      font: inherit;
      font-weight: 600;
      letter-spacing: 0;
      cursor: pointer;
    }

    .error {
      margin: 0 0 14px;
      padding: 10px 11px;
      border-radius: 6px;
      background: var(--red-soft);
      color: var(--red);
    }
  </style>
</head>
<body>
  <main class="login">
    <div class="brand">
      <div class="mark">CR</div>
      <div>
        <h1>Churn Risk</h1>
        <div class="context">Вход в мониторинг рассылок</div>
      </div>
    </div>
    
    <form method="post" action="/login">
      <label>Логин
        <input name="username" type="text" autocomplete="username" autofocus required>
      </label>
      <label>Пароль
        <input name="password" type="password" autocomplete="current-password" required>
      </label>
      <button type="submit">Войти</button>
    </form>
  </main>
</body>
</html>