:root {
  --bg: #15101f;
  --panel: #1e1830;
  --panel-2: #271f3d;
  --border: #392f52;
  --purple: #7c5cbf;
  --purple-bright: #9b7fe0;
  --gold: #e8b34f;
  --text: #ece7f7;
  --text-dim: #a79ccb;
  --red: #e05a5a;
  --green: #6fcf7a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
}

a { color: var(--purple-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { margin-top: 0; color: var(--text); }
h2 { color: var(--text); font-size: 17px; }

input, select, button, textarea {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 14px 0 4px;
}

textarea { resize: vertical; min-height: 110px; }

button, .btn {
  background: var(--purple);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 600;
  width: auto;
  padding: 10px 16px;
}
button:hover, .btn:hover { background: var(--purple-bright); text-decoration: none; }
button.danger, button.btn-deny { background: var(--red); }
button.danger:hover, button.btn-deny:hover { background: #ff7a7a; }
button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dim); width: auto; }

form.inline { display: inline; }

.flash, .error { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 0.88rem; }
.error { background: rgba(224,90,90,.15); color: var(--red); border: 1px solid rgba(224,90,90,.3); }
.ok { color: var(--green); }

.muted { color: var(--text-dim); }

/* --- Split login layout, matching the Hawk Eye panel --- */

.login-page {
  min-height: 100vh;
  display: flex;
}

.login-page .brand-panel {
  flex: 1 1 42%;
  max-width: 480px;
  background: linear-gradient(160deg, #1b1430 0%, #15102a 60%, #110c22 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 44px;
}

.login-page .brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-page .brand-mark img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; }
.login-page .brand-mark span { font-weight: 700; letter-spacing: 0.5px; font-size: 16px; color: var(--text); }

.login-page .brand-copy h1 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
}
.login-page .brand-copy p {
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 360px;
}

.login-page .brand-foot {
  color: var(--text-dim);
  font-size: 12px;
}

.login-page .form-panel {
  flex: 1 1 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: left;
}

.login-box h2 { font-size: 19px; margin: 0 0 4px; }
.login-box .subtitle { color: var(--text-dim); font-size: 13px; margin: 0 0 22px; }

@media (max-width: 760px) {
  .login-page { flex-direction: column; }
  .login-page .brand-panel { max-width: none; border-right: none; border-bottom: 1px solid var(--border); padding: 32px 28px; }
  .login-page .brand-copy h1 { font-size: 20px; }
}

/* --- Plain content pages (appeal form, staff queue) --- */

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  align-self: flex-start;
}

.card.wide { max-width: 720px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.appeal-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--panel-2);
}

.appeal-item .meta {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.appeal-item .message {
  white-space: pre-wrap;
  margin: 10px 0;
}

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