:root {
    --bg1: #0b1020;
    --bg2: #121a33;
    --card: rgba(247, 240, 228, 0.95);
    --text: #0f172a;
    --muted: #475569;
    --border: rgba(15, 23, 42, 0.14);
    --shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
    --accent1: #b45309;
    --accent2: #a16207;
    --accentGlow: rgba(245, 158, 11, 0.35);
    --danger: #b91c1c;
    --success: #166534;
    --monoBg: rgba(2, 6, 23, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 32px 16px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(1000px 500px at 20% 10%, rgba(37, 99, 235, 0.35), transparent 60%),
        radial-gradient(900px 450px at 90% 30%, rgba(99, 102, 241, 0.28), transparent 55%),
        linear-gradient(160deg, var(--bg1), var(--bg2));
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--text);
}

.container {
    width: min(560px, 100%);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 28px 26px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

h1 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="password"] {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="password"]:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

button {
    padding: 0.8rem 1.15rem;
    border-radius: 9999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, var(--accent1), var(--accent2));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.18);
    transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22);
}

button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--accentGlow), 0 12px 24px rgba(2, 6, 23, 0.18);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
    filter: none;
}

pre#result {
    margin: 1.1rem 0 0;
    background: var(--monoBg);
    border: 1px solid var(--border);
    padding: 0.95rem 1rem;
    border-radius: 12px;
    min-height: 2.5rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: rgba(2, 6, 23, 0.85);
}

pre#result.is-empty {
    display: none;
}

pre#result.is-ok {
    border-color: rgba(22, 101, 52, 0.25);
    background: rgba(22, 101, 52, 0.06);
}

pre#result.is-error {
    border-color: rgba(185, 28, 28, 0.25);
    background: rgba(185, 28, 28, 0.06);
}

.fineprint {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}