/* Metin2 Reborn website: dark leather and bronze, like the game's windows (2DOrders.md, "Tarzımız"). */
:root {
  --bg: #120f0d;
  --panel: rgba(26, 23, 20, 0.88);
  --panel-solid: #1a1714;
  --border: #8a6a3a;
  --border-dim: #4a3a24;
  --gold: #d4a84a;
  --ember: #e0662a;
  --crimson: #8b1e1e;
  --text: #e8dcc0;
  --muted: #a89880;
  --ok: #78c86e;
  --bad: #e06060;
  --warn: #e6a046;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg) url("/static/bg.jpg") center top / cover fixed no-repeat;
  color: var(--text);
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

header.site {
  background: linear-gradient(rgba(10, 8, 7, 0.92), rgba(10, 8, 7, 0.75));
  border-bottom: 1px solid var(--border-dim);
}

header.site .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

header.site img { height: 56px; width: auto; display: block; }

nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }

nav a {
  color: var(--text);
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 600;
}

nav a:hover, nav a.active {
  text-decoration: none;
  border-color: var(--border);
  background: rgba(138, 106, 58, 0.15);
  color: var(--gold);
}

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.hero { text-align: center; padding: 28px 0 8px; }
.hero img { max-width: min(560px, 100%); height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7)); }
.hero p { font-size: 1.15rem; color: var(--text); text-shadow: 0 2px 6px #000; margin: 8px 0 22px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(212, 168, 74, 0.08), 0 12px 32px rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  padding: 22px 26px;
  margin-bottom: 22px;
}

.panel h1, .panel h2 { color: var(--gold); margin: 0 0 14px; font-weight: 700; letter-spacing: 0.3px; }
.panel h1 { font-size: 1.6rem; }
.panel h2 { font-size: 1.25rem; }

.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }

.button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: linear-gradient(#a3361e, var(--crimson));
  color: #fff3dc;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.35), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.button:hover { text-decoration: none; filter: brightness(1.15); }
.button.secondary { background: linear-gradient(#4a4540, #2e2a26); border-color: var(--border); }
.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.status { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
.online { color: var(--ok); }
.maintenance { color: var(--warn); }
.offline { color: var(--bad); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.news article { border-bottom: 1px solid var(--border-dim); padding: 12px 0; }
.news article:last-child { border-bottom: 0; }
.news h3 { margin: 0 0 4px; color: var(--text); font-size: 1.08rem; }
.news time { color: var(--muted); font-size: 0.85rem; }
.news p { margin: 6px 0 0; white-space: pre-line; }

form { display: grid; gap: 16px; max-width: 520px; }
label { display: grid; gap: 6px; font-weight: 600; }
label .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }

input[type=text], input[type=password], input[type=email] {
  background: #0f0d0b;
  color: var(--text);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 10px 12px;
  font: inherit;
}

input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 168, 74, 0.25); }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.message { padding: 12px 16px; border-radius: 3px; margin-bottom: 16px; border: 1px solid; }
.message.error { border-color: var(--bad); background: rgba(224, 96, 96, 0.12); }
.message.success { border-color: var(--ok); background: rgba(120, 200, 110, 0.12); }

ol.steps { padding-left: 22px; }
ol.steps li { margin: 6px 0; }
code { background: #0f0d0b; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--border-dim); }

footer.site {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 18px 16px 26px;
  background: rgba(10, 8, 7, 0.85);
  border-top: 1px solid var(--border-dim);
}
