/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* Copyright (C) 2024-2026 Philippe Naveau — contact@perfshop.io */
/* PerfShop — Admin Login CSS */

:root {
  --bg: #0d0d14; --surface: #13131e; --surface2: #1c1c2e;
  --border: #2a2a40; --accent: #667eea; --danger: #ff4757;
  --success: #2ed573; --text: #e8e8f0; --text2: #7878a0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px 48px; width: 100%; max-width: 420px; box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.logo { text-align: center; margin-bottom: 28px; }
.logo h1 { font-size: 1.4rem; font-weight: 700; }
.logo p { font-size: 0.8rem; color: var(--text2); margin-top: 4px; font-family: 'DM Mono', monospace; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.78rem; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.form-group input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
}
.form-group input:focus { outline: none; border-color: var(--accent); }
.btn-login {
  width: 100%; padding: 12px; background: var(--accent); color: white; border: none;
  border-radius: 8px; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: opacity 0.2s; margin-top: 8px;
}
.btn-login:hover { opacity: 0.85; }
.btn-login:disabled { opacity: 0.4; cursor: not-allowed; }
.error { color: var(--danger); font-size: 0.82rem; margin-top: 14px; text-align: center;
         background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.25);
         border-radius: 8px; padding: 10px; display: none; }
.error.show { display: block; }
.back { text-align: center; margin-top: 20px; }
.back a { color: var(--text2); font-size: 0.82rem; text-decoration: none; }
.back a:hover { color: var(--text); }