:root {
  --ink: #0c1f17;
  --muted: #5a6f64;
  --line: rgba(15, 159, 110, 0.14);
  --surface: #ffffff;
  --soft: #f0faf4;
  --accent: #0f9f6e;
  --accent-dark: #08794f;
  --yellow: #f5c518;
  --yellow-soft: #fff4c4;
  --navy: #0a3d2c;
  --shadow: 0 24px 60px rgba(12, 48, 32, 0.12);
  --shadow-sm: 0 8px 24px rgba(12, 48, 32, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--ink);
  background: linear-gradient(160deg, var(--soft), var(--yellow-soft));
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.auth-card {
  width: min(400px, 100%);
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15, 159, 110, 0.35);
}

.auth-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.auth-card p.auth-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.auth-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.auth-submit {
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 24px rgba(15, 159, 110, 0.35);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 159, 110, 0.4);
}

.auth-message {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.auth-message.error {
  color: #c83c21;
  background: rgba(200, 60, 33, 0.1);
}

.auth-message.success {
  color: var(--accent-dark);
  background: var(--soft);
}

.auth-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-foot a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.auth-foot a:hover {
  text-decoration: underline;
}

/* ── Dashboard ── */
.dash-card {
  width: min(560px, 100%);
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dash-welcome h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

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

.dash-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--yellow);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dash-logout:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.dash-item {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.dash-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-item strong {
  font-size: 15px;
  font-weight: 800;
  word-break: break-word;
}
