:root {
  --bg: #f4efe4;
  --panel: rgba(255, 251, 245, 0.96);
  --panel-strong: #fffdf8;
  --text: #2e241b;
  --muted: #7a6654;
  --line: rgba(95, 74, 51, 0.16);
  --primary: #b0562f;
  --primary-dark: #8e4323;
  --secondary: #1e5f62;
  --danger: #aa2f32;
  --success: #2f7d55;
  --shadow: 0 20px 50px rgba(81, 55, 26, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(255, 222, 173, 0.7), transparent 32%),
    radial-gradient(circle at bottom right, rgba(176, 86, 47, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f3ea 0%, #efe7d9 100%);
}

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

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

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

textarea {
  resize: vertical;
}

label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 8px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar h1,
.login-card h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.panel {
  border: 1px solid rgba(95, 74, 51, 0.12);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.primary-btn,
.ghost-btn,
.small-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.primary-btn {
  background: var(--primary);
  color: #fff9f3;
  box-shadow: 0 10px 24px rgba(176, 86, 47, 0.22);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  border: 1px solid var(--line);
}

.small-btn {
  padding: 10px 14px;
  background: rgba(30, 95, 98, 0.12);
  color: var(--secondary);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover {
  transform: translateY(-1px);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.grid {
  display: grid;
  gap: 16px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.error-text {
  color: var(--danger);
  font-size: 14px;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }
}
