/* Thaivo Portal — Black & White Theme CSS v1 (shares the palette/primitives
   convention of admin.css but a simpler single-column layout, no sidebar). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg2: #f7f7f7;
  --bg3: #efefef;
  --border: #dcdcdc;
  --border-h: #bcbcbc;
  --text: #111111;
  --text-muted: #555555;
  --text-dim: #8a8a8a;
  --accent: #000000;
  --accent-h: #2b2b2b;
  --inverse: #ffffff;
  --green: #2f6f3e;
  --yellow: #8a6d1a;
  --red: #a12727;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg2);
  color: var(--text);
}
a { color: inherit; }

.portal-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
}
.portal-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.portal-card.narrow { max-width: 420px; }
.portal-card h1 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.portal-card p.sub { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-control {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-h);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--accent); background: var(--accent); color: var(--inverse);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; width: 100%;
}
.btn:hover { background: var(--accent-h); }

.alert-error { color: var(--red); font-size: 0.85rem; margin-bottom: 1rem; }

.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th, .table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; }
.table th { color: var(--text-dim); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; }

.status-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; border: 1px solid var(--border-h); }
.status-ok { border-color: var(--green); color: var(--green); }
.status-wait, .status-checking { border-color: var(--yellow); color: var(--yellow); }
.status-rejected, .status-frozen, .status-del { border-color: var(--red); color: var(--red); }

.empty-state { text-align: center; color: var(--text-dim); padding: 2rem 0; }
