:root {
  --ink: #0b0f0d;
  --ink-soft: #121917;
  --ink-muted: #1e2a26;
  --cream: #eef4f1;
  --accent: #7ce38b;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 20% 0%, #16211d 0%, var(--ink) 55%);
  color: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
}

.brand-mark {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--accent);
}

.brand-sub {
  font-size: 13px;
  letter-spacing: 1px;
  color: #8aa39a;
}

.card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-muted);
  border-radius: 16px;
  padding: 28px;
}

#login-view { max-width: 380px; }

h1 { margin: 0 0 6px; font-size: 20px; }
.muted { color: #8aa39a; font-size: 13px; margin: 0 0 20px; }

label {
  display: block;
  font-size: 12px;
  color: #a9bdb6;
  margin-bottom: 14px;
}

input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--ink);
  border: 1px solid var(--ink-muted);
  border-radius: 10px;
  color: var(--cream);
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: rgba(124, 227, 139, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 227, 139, 0.12);
}

button {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #08120c;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.error {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
}

.modules-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.link {
  width: auto;
  background: none;
  color: #8aa39a;
  font-weight: 500;
  font-size: 13px;
  padding: 4px 0;
}

.link:hover { color: var(--danger); filter: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.module {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.module:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 227, 139, 0.5);
}

.module-icon { font-size: 26px; }
.module-title { font-size: 17px; font-weight: 700; }
.module-desc { font-size: 13px; color: #8aa39a; line-height: 1.5; }
.module-cta { margin-top: 8px; color: var(--accent); font-size: 13px; font-weight: 600; }
