:root {
  --accent: #c9a227; /* goldish */
  --bg: #f5f3eb; /* light with contrast */
  --text: #222;
  --danger: #c0392b;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 460px;
  margin: 48px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 24px;
}

h1 { font-size: 22px; margin: 0 0 16px; }
label { display: block; margin: 12px 0 6px; font-weight: 600; }
input[type="email"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.row { display: flex; gap: 12px; align-items: center; }
.btn {
  appearance: none;
  border: none;
  background: var(--accent);
  color: #201a00;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.btn.secondary { background: #ddd; color: #333; }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.error { color: var(--danger); margin-top: 10px; font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.card { background: #fafafa; padding: 12px; border-radius: 8px; border: 1px solid #eee; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  width: 96%; max-width: 420px; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal h2 { margin: 0 0 10px; font-size: 18px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.small { font-size: 12px; color: #666; }


