:root {
  color-scheme: light;
  --ink: #0f1a14;
  --ink-soft: #1d2a23;
  --muted: #5b6660;
  --muted-soft: #8a958f;
  --line: #dfe7e1;
  --line-soft: #eef2ee;
  --panel: #ffffff;
  --page: #f5f8f4;
  --page-soft: #fafcf8;
  --brand-dark: #0b1a11;
  --brand-deep: #11221a;
  --green: #16804f;
  --green-bright: #1aa563;
  --teal: #0d6f78;
  --gold: #b3811f;
  --red: #b42318;
  --blue: #2058a8;
  --shadow-sm: 0 2px 8px rgba(15, 26, 20, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 26, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 26, 20, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 8px 22px rgba(22, 128, 79, 0.28);
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--green-bright);
}

.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--line-soft);
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 999px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 128, 79, 0.18);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-link img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-link strong {
  font-weight: 750;
  letter-spacing: 0.005em;
}

.error-banner {
  border-left: 3px solid var(--red);
  background: #fff4f2;
  color: var(--red);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.success-banner {
  border-left: 3px solid var(--green);
  background: #f1faf3;
  color: var(--green);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
}

.hide {
  display: none !important;
}

.fade-in {
  animation: fadeIn 600ms ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
