:root {
  --fp-green: #133b2a;
  --fp-green-soft: #1f5a40;
  --fp-bg: #f6f4ee;
  --fp-line: #d9d4c4;
  --fp-muted: #6b6e68;
  --fp-error: #b3261e;
  --fp-success: #1f5a40;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fp-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--fp-green);
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: 14px;
  padding: 40px 32px 32px;
  box-shadow: 0 24px 48px -32px rgba(19, 59, 42, 0.25);
}
.brand { text-align: center; margin-bottom: 28px; }
.brand img { max-width: 260px; width: 70%; height: auto; }
.subtitle {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fp-muted);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--fp-bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.tabs[hidden] { display: none; }
.tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--fp-green);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
form { display: none; }
form[data-active="true"] { display: block; }
.view-title { margin: 0 0 6px; font-size: 20px; }
.view-lead { margin: 0 0 20px; font-size: 14px; color: var(--fp-muted); }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--fp-green);
}
.field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--fp-green);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--fp-green-soft);
  box-shadow: 0 0 0 3px rgba(31, 90, 64, 0.12);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin: 6px 0 18px;
  color: var(--fp-muted);
}
.row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.row a { color: var(--fp-green-soft); text-decoration: none; }
.row a:hover { text-decoration: underline; }
.submit {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--fp-green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.submit:hover:not([disabled]) { background: var(--fp-green-soft); }
.submit[disabled] { opacity: 0.6; cursor: progress; }
.msg {
  margin-top: 14px;
  font-size: 13px;
  min-height: 1em;
  text-align: center;
}
.msg.error { color: var(--fp-error); }
.msg.success { color: var(--fp-success); }
.hint {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--fp-muted);
}
.hint a { color: var(--fp-green-soft); text-decoration: none; font-weight: 600; }
.hint a:hover { text-decoration: underline; }
