:root {
    --bg: #0b1020;
    --card: #11162a;
    --muted: #94a3b8;
    --text: #e5e7eb;
    --primary: #7c3aed;
    --primary-2: #a78bfa;
    --danger: #ef4444;
    --ok: #22c55e;
    --border: #1f2941;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: radial-gradient(1000px 600px at 80% -100px, #1b2547 0%, rgba(27, 37, 71, 0) 60%), var(--bg);
    color: var(--text);
    font: 14px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

.wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #e5e7eb;
}

.brand i {
    font-size: 28px;
    color: var(--primary-2)
}

.brand span {
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 18px
}

.brand .sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: -4px
}

.card {
    width: min(420px, 92vw);
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)), var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

h1 {
    font-size: 18px;
    margin: 0 0 14px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.muted {
    color: var(--muted);
    margin: 0 0 8px 0
}

.field {
    margin: 10px 0 12px
}

.field label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px
}

.field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0c1327;
    color: var(--text);
    outline: none;
}

.field input:focus {
    border-color: #334155;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0f172a;
    color: #e5e7eb;
    cursor: pointer;
    min-width: 160px;
    font-weight: 600;
    letter-spacing: .2px;
}

.btn-primary {
    background: linear-gradient(180deg, rgba(124, 58, 237, .1), rgba(124, 58, 237, .02)), var(--card);
    border-color: #2a2350;
}

.btn-primary:hover {
    filter: brightness(1.06)
}

.btn-ghost {
    background: transparent
}

.row {
    display: flex;
    gap: 10px;
    justify-content: space-between
}

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .15);
    border-top-color: var(--primary-2);
    animation: spin .8s linear infinite;
    display: none;
}

.btn.loading .spinner {
    display: inline-block
}

.btn.loading .btn-text {
    visibility: hidden
}

.devotp {
    font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color: #cbd5e1;
    background: #0b142c;
    border: 1px dashed #334155;
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.foot {
    color: #60708d;
    font-size: 12px
}

.toast {
    position: fixed;
    top: 16px;
    right: 16px;
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s;
    z-index: 9999;
}

.toast--show {
    opacity: 1;
    transform: translateY(0)
}

.toast--error {
    background: #7f1d1d;
    border-color: #991b1b
}

.toast--ok {
    background: #064e3b;
    border-color: #065f46
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}