/* YK27 Phase 1 — Core Styles (green, modern, mobile-first) */
:root {
  --green: #16a34a;
  --green2: #22c55e;
  --dark: #102019;
  --bg: #f0f4f1;
  --card: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #e9f8ee;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 4px 18px #0f172a08;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: #17211b;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 64px;
  display: flex; align-items: center;
  padding: 0 5%;
  gap: 18px;
  box-shadow: 0 2px 12px #0000000b;
}
.logo { font-size: 25px; font-weight: 900; color: var(--green); letter-spacing: -1px; }
.logo span { color: #111; }
.navlinks { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.navlinks a { font-weight: 700; color: #475569; padding: 8px 12px; border-radius: 10px; }
.navlinks a:hover { background: var(--soft); color: var(--green); text-decoration: none; }
.user-chip { font-weight: 600; color: var(--muted); font-size: 14px; }

.hero {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 64px - 60px);
  padding: 40px 20px;
  background: linear-gradient(160deg, #e9f8ee 0%, #f0f4f1 50%, #fff 100%);
}
.hero-content { max-width: 680px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--dark);
}
.tagline { font-size: 1.15rem; color: var(--green); font-weight: 700; margin: 0 0 12px; }
.sub { color: var(--muted); margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.version { margin-top: 32px; font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(145deg, #0f7a36, #22c55e); color: #fff; box-shadow: 0 4px 14px #16a34a40; }
.btn-outline { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn-block { width: 100%; }

.footer {
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Auth */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #e9f8ee, #f0f4f1);
}
.auth-card {
  background: var(--card);
  border-radius: 18px;
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.auth-card .logo { text-align: center; margin-bottom: 8px; }
.auth-card h1 { text-align: center; margin: 0 0 4px; font-size: 1.5rem; }
.auth-card .muted { text-align: center; color: var(--muted); margin-bottom: 24px; }
.auth-card label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
  display: block; width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  background: #f8faf9;
}
.auth-card input:focus {
  outline: none;
  border-color: #86efac;
  background: #fff;
  box-shadow: 0 0 0 3px #16a34a22;
}
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.footer-note { text-align: center; margin-top: 20px; font-size: 14px; }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
