:root {
    --bg: #0e1116;
    --panel: #171b22;
    --panel-2: #202630;
    --text: #f4f7fb;
    --muted: #9aa4b2;
    --border: #303845;
    --accent: #f0b429;
    --accent-dark: #c78d0c;
    --ok: #1e9e63;
    --error: #b63a3a;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(145deg, #0b0d11 0%, var(--bg) 55%, #151a21 100%);
    color: var(--text);
}

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

.shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.card {
    width: 100%;
    max-width: 460px;
    background: rgba(23, 27, 34, .98);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
}

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

.brand {
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
    margin: 0;
}

.environment {
    text-align: center;
    color: var(--muted);
    margin: 7px 0 28px;
    font-size: 13px;
    letter-spacing: .9px;
}

h2 { margin: 0 0 20px; }

label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 700;
}

input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0f1319;
    color: var(--text);
    font-size: 16px;
    outline: none;
}

input:focus { border-color: var(--accent); }

button, .button {
    width: 100%;
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 13px 16px;
    margin-top: 22px;
    background: var(--accent);
    color: #17120a;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}

button:hover, .button:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.button.secondary {
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.message {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 14px 0 18px;
}

.message.error { background: rgba(182,58,58,.2); border: 1px solid #7c3333; }
.message.ok { background: rgba(30,158,99,.18); border: 1px solid #27704e; }

.links {
    text-align: center;
    margin-top: 22px;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.stat {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.stat .value { font-size: 26px; font-weight: 800; }
.stat .label { color: var(--muted); margin-top: 4px; }

.userbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

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

@media (max-width: 560px) {
    .card { padding: 24px 20px; }
    .grid { grid-template-columns: 1fr; }
    .userbar { align-items: flex-start; flex-direction: column; }
}
