/* ===================== Design-Tokens ===================== */

:root {
    --bg: #000000;
    --panel: #ffffff;
    --ink: #242424;
    --ink-soft: #6b6b76;
    --line: #ececf1;
    --blue: #704cff;
    --blue-soft: rgba(117, 88, 255, .14);
    --purple-bg: #e2ddf9;
    --grad: linear-gradient(135deg, #7558ff, #21c8df);
    --radius: 14px;
}

/* ===================== Reset ===================== */

* {
    box-sizing: border-box;
}

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

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #000000 0%, #071525 55%, var(--blue) 100%);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    direction: ltr;
    text-align: left;
}

/* ===================== Layout ===================== */

.admin {
    width: 100%;
    max-width: 440px;
}

.admin-head {
    margin-bottom: 16px;
    color: #ffffff;
    text-align: center;
}

.admin-head h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
}

.admin-sub {
    margin: 4px 0 0;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.card {
    padding: 26px 24px 22px;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.card[hidden] {
    display: none;
}

.card + .card {
    margin-top: 14px;
}

.card h2 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: .5px;
}

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

.card-head h2 {
    margin: 0;
}

/* ===================== Formular ===================== */

form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    margin-top: 6px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--ink-soft);
}

input {
    width: 100%;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
    background: #f7f8fc;
    border: 1px solid var(--line);
    border-radius: 9px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft);
    background: #ffffff;
}

.hint {
    margin: 8px 0 0;
    font-size: 10px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.message {
    min-height: 14px;
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--ink-soft);
}

.message.error {
    color: #b42318;
}

.message.success {
    color: #0f7a3d;
}

/* ===================== Buttons ===================== */

button {
    margin-top: 14px;
    appearance: none;
    border: none;
    background: var(--grad);
    color: #ffffff;
    padding: 11px 21px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.5px;
    border-radius: 9px;
    cursor: pointer;
    transition: filter .2s, box-shadow .15s, transform .15s, background .2s;
    white-space: nowrap;
}

button:hover {
    filter: brightness(1.06);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

button.ghost {
    margin-top: 0;
    padding: 8px 14px;
    color: var(--blue);
    background: #ffffff;
    border: 1px solid #e6e0ff;
}

button.ghost:hover {
    background: var(--purple-bg);
    filter: none;
}
