/* ============================================================
   Login page — always dark
   ============================================================ */

:root {
  --bg: #0f1210;
  --bg-elevated: #151a16;
  --bg-card: rgba(154,196,86,0.05);
  --border-card: rgba(154,196,86,0.12);
  --text: #eaf0e4;
  --text-secondary: #bdd88e;
  --text-muted: rgba(154,196,86,0.55);
  --accent: #9ac456;
  --accent-light: #bdd88e;
  --glow: rgba(154,196,86,0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(ellipse at 30% 40%, rgba(154,196,86,0.07) 0%, transparent 55%),
                    radial-gradient(ellipse at 70% 70%, rgba(61,90,60,0.1) 0%, transparent 50%);
}

.login-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 80px var(--shadow);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
}

.login-logo {
  display: flex; justify-content: center;
  margin-bottom: 24px;
}
.login-logo img { height: 44px; width: auto; object-fit: contain; }

.login-title {
  text-align: center;
  font-size: 1.3rem; font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.login-sub {
  text-align: center;
  font-size: .82rem; color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .75rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 16px;
  background: var(--bg); border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(154,196,86,0.1);
}
.form-input::placeholder { color: var(--text-muted); }

.login-btn {
  width: 100%; padding: 12px;
  background: var(--accent); color: var(--bg);
  border: none; border-radius: var(--radius-sm);
  font: inherit; font-size: .92rem; font-weight: 700;
  cursor: pointer; margin-top: 8px;
  transition: background .25s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-btn:hover { background: var(--accent-light); }
.login-btn:active { transform: scale(.99); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }

.login-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .82rem;
  margin-top: 14px;
  display: none;
}
.login-error.visible { display: block; }

.login-footer {
  text-align: center;
  margin-top: 28px;
  font-size: .72rem;
  color: var(--text-muted);
}
.login-footer a { color: var(--accent); text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
