/* Palette/type pulled from justo.cz: MUI blue as their primary action color,
   a gold accent used for their logo mark, Optima for headings (falls back to
   serif where the font isn't installed), system sans stack for body text. */
:root {
    --justo-blue: #1976d2;
    --justo-blue-dark: #1565c0;
    --justo-gold: #a27d22;
    --justo-bg: #f5f5f5;
    --justo-border: #e0e0e0;
    --text: #1a1a1a;
    --text-muted: #5f5f5f;
    --card-bg: #fff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --justo-bg: #121212;
        --justo-border: #333;
        --text: #eee;
        --text-muted: #aaa;
        --card-bg: #1c1c1c;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--justo-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.brand {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.brand-mark {
    height: 28px;
    width: auto;
    fill: var(--justo-gold);
}

@media (prefers-color-scheme: dark) {
    .brand-mark {
        fill: #fff;
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--justo-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

h1 {
    font-family: OptNL, "Optima nova LT Pro", Optima, serif;
    font-weight: 500;
    font-size: 1.6rem;
    margin: 0 0 1.5rem;
}

label {
    display: block;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    margin-top: 0.35rem;
    border: 1px solid var(--justo-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--card-bg);
}

input:focus {
    outline: none;
    border-color: var(--justo-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.readonly-value {
    margin: 0.35rem 0 0;
    padding: 0.65rem 0.75rem;
    background: var(--justo-bg);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1rem;
}

button {
    margin-top: 2rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--justo-blue);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s ease;
}

button:hover {
    background: var(--justo-blue-dark);
}

#status {
    font-size: 1rem;
    color: var(--text-muted);
}

.footnote {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
