:root {
  --green: #2d6a4f;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --gold: #b7791f;
  --gold-light: #f6e05e;
  --text: #1a202c;
  --text-muted: #718096;
  --bg: #f7faf9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green);
}

.brand-leaf {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 50% 10% 50% 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.login-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

.login-left {
  background: linear-gradient(135deg, var(--green) 0%, #1b4332 100%);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.login-left h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.login-left h1 span {
  color: var(--gold-light);
}

.login-left p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.feature-pills {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.12);
  padding: 0.6rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  width: fit-content;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--bg);
}

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.login-card .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  background: var(--bg);
  padding: 4px;
  border-radius: 8px;
}

.role-tab {
  padding: 0.6rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.role-tab.active {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--green-light);
}

.demo-hint {
  background: var(--green-pale);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--green);
  margin-bottom: 1.2rem;
}

.demo-hint strong { color: var(--green); }

.btn-login {
  width: 100%;
  padding: 0.75rem;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover { background: #1b4332; }

.error-msg {
  color: #e53e3e;
  font-size: 0.83rem;
  margin-top: 0.75rem;
  display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .login-hero { grid-template-columns: 1fr; }
  .login-left { padding: 2rem; }
  .login-left h1 { font-size: 1.8rem; }
}
