/* Evil Reborn: dark ember backdrop, gold accents (matches the in-game login screen). */
:root {
    --bg: #0b0605;
    --panel: rgba(18, 10, 8, 0.86);
    --border: #7a5a2a;
    --gold: #f0c97a;
    --gold-dim: #b8955a;
    --ember: #e0622a;
    --text: #eadfcf;
    --muted: #a8998a;
    --error: #ff7a6a;
    --font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg) url("../img/backdrop.jpg") center top / cover fixed no-repeat;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--gold); }

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.brand img { display: block; height: 56px; width: auto; }

nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--gold-dim); font-weight: 600; }
nav a:hover, nav a:focus-visible { color: var(--gold); }
nav .lang { border: 1px solid var(--border); border-radius: 4px; padding: 0 0.6rem; }

main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 3rem 1rem; }

.hero, .card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(224, 98, 42, 0.15), inset 0 0 0 1px rgba(240, 201, 122, 0.08);
    padding: 2rem 2.25rem;
    max-width: 640px;
    width: 100%;
}
.card.narrow { max-width: 460px; }
.hero { text-align: center; }

h1 { color: var(--gold); margin-top: 0; font-weight: 700; letter-spacing: 0.02em; }
.tagline { color: var(--ember); font-weight: 600; }

form { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; color: var(--gold-dim); }
small { color: var(--muted); font-weight: 400; }

input {
    font: inherit;
    color: var(--text);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.55rem 0.7rem;
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.button {
    display: inline-block;
    font: inherit;
    font-weight: 700;
    color: #1a0d05;
    background: linear-gradient(to bottom, #f6d68f, #c9953f);
    border: 1px solid #8a6326;
    border-radius: 4px;
    padding: 0.65rem 1.6rem;
    text-decoration: none;
    cursor: pointer;
}
.button:hover, .button:focus-visible { filter: brightness(1.1); }

.error { color: var(--error); background: rgba(255, 70, 50, 0.1); border: 1px solid rgba(255, 70, 50, 0.4); border-radius: 4px; padding: 0.5rem 0.75rem; }
.account-name { font-size: 1.4rem; font-weight: 700; color: var(--gold); }

/* Honeypot field: out of sight and out of the tab order. */
/* Clipped in place, not pushed off-screen: an off-screen offset makes RTL pages scroll sideways. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 1rem; background: rgba(0, 0, 0, 0.7); border-top: 1px solid var(--border); }

@media (max-width: 560px) {
    .top { justify-content: center; }
    .hero, .card { padding: 1.5rem 1.25rem; }
}
