* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0d12;
    --surface: #11161e;
    --surface-hover: #171e28;
    --border: #242c38;
    --text: #f1f5f9;
    --muted: #8994a3;
    --accent: #7c3aed;
    --accent-hover: #8b5cf6;
    --danger: #ef4444;
    --success: #22c55e;
}

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

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(124, 58, 237, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(59, 130, 246, 0.08),
            transparent 35%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    padding: 48px;
}

body > * {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-hover);
}

h1 {
    font-size: 38px;
    font-weight: 750;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

#spoof-form {
    margin-top: 28px;
}

.field {
    margin-bottom: 18px;
}

.field > label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.field > input {
    width: 100%;
    height: 48px;
    padding: 0 16px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;
    font-size: 15px;
    font-family: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.field > input::placeholder {
    color: #566170;
}

.field > input:hover {
    background: var(--surface-hover);
}

.field > input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.hint {
    display: block;
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
}

.hint code {
    display: inline-block;
    background: #0e1219;
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 11.5px;
    color: var(--accent-hover);
}

.actions {
    margin-top: 24px;
}

#send {
    height: 48px;
    padding: 0 24px;

    border: 0;
    border-radius: 10px;

    background: var(--accent);
    color: #fff;

    font-size: 15px;
    font-weight: 650;
    font-family: inherit;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

#send:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
}

#send:active:not(:disabled) {
    transform: translateY(1px);
}

#send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#status {
    min-height: 24px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
}

#status code {
    display: inline-block;
    background: #0e1219;
    border: 1px solid var(--border);
    padding: 1px 5px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--accent-hover);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#status small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

#status.ok {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.06);
    color: #d6f5df;
}

#status.ok strong {
    color: var(--success);
    font-weight: 700;
}

#status.error {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.06);
    color: #fdd2d2;
}

#status.error strong {
    color: var(--danger);
    font-weight: 700;
}

@media (max-width: 700px) {
    body {
        padding: 24px;
    }

    h1 {
        font-size: 30px;
    }

    #send {
        width: 100%;
    }
}
