:root {
  --bg: #f3efe6;
  --panel: #fffaf2;
  --ink: #1b1a17;
  --muted: #615f57;
  --line: #d8cfbc;
  --accent: #a24b2a;
  --accent-soft: #e8c7a0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #f8d9b6 0, transparent 28%),
    linear-gradient(180deg, #efe7d9 0%, var(--bg) 100%);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.page-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background: rgba(255, 250, 242, 0.85);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(83, 60, 30, 0.08);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-zone {
  border-color: #d98b7b;
  background: rgba(255, 241, 236, 0.92);
}

button.danger {
  background: #8e1f10;
}

.login-card {
  width: min(100%, 420px);
}

.eyebrow,
.subtle {
  color: var(--muted);
}

.error {
  color: #8e1f10;
  background: #f8d8cf;
  border: 1px solid #e6ad9f;
  border-radius: 12px;
  padding: 10px 12px;
}

.status {
  display: inline-block;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.status.ok {
  color: #215634;
  background: #d8efdb;
}

.status.warn {
  color: #8f5a06;
  background: #f6e6bd;
}

.stack {
  display: grid;
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.userbox {
  min-width: 220px;
  text-align: right;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.mapping-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.log-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

code {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
  }

  .userbox {
    text-align: left;
  }
}
