/* frontend/css/style.css */

:root {
  --bg: #0f172a;
  --card: #111827;
  --primary: #22c55e;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ===== Background ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}
.bg__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at top, #22c55e33, transparent 60%);
}
.bg__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ===== Login ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.brand__icon {
  width: 60px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: #052e16;
  font-weight: 800;
  font-size: 32px;
  display: grid;
  place-items: center;
}

.brand__text h1 {
  margin: 0;
  font-size: 20px;
}

.brand__text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.login-form label {
  display: block;
  margin-bottom: 14px;
}
.login-form span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.login-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  color: var(--text);
}
.login-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #052e16;
  font-weight: 700;
  cursor: pointer;
}

.login-msg {
  min-height: 20px;
  margin-top: 10px;
  font-size: 14px;
}
.login-msg.error {
  color: var(--danger);
}
.login-msg.success {
  color: var(--primary);
}

.login-links {
  text-align: center;
  margin-top: 10px;
}
.login-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.login-footer {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
