/* =============================================================
   Solum Tutum — minimal self-contained stylesheet
   ============================================================= */

:root {
    --color-bg:          #f7f7f8;
    --color-surface:     #ffffff;
    --color-border:      #d9dce1;
    --color-text:        #1c1f24;
    --color-text-muted:  #5f6772;
    --color-primary:     #2e5d9f;
    --color-primary-hi:  #244c84;
    --color-error-bg:    #fde8e8;
    --color-error-text:  #9b1c1c;
    --color-error-bord:  #f5c6c6;

    --radius:            8px;
    --shadow:            0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --font-stack:        -apple-system, BlinkMacSystemFont, "Segoe UI",
                         Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue",
                         sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg:          #15171b;
        --color-surface:     #1e2127;
        --color-border:      #2f3540;
        --color-text:        #e6e8eb;
        --color-text-muted:  #9aa3af;
        --color-primary:     #5b8fdc;
        --color-primary-hi:  #76a3e6;
        --color-error-bg:    #3a1d1d;
        --color-error-text:  #f5b0b0;
        --color-error-bord:  #5a2a2a;
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-stack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

.brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.brand h1 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand .tagline {
    margin: 0.25rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
}

.card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.intro {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

fieldset {
    border: 0;
    margin: 0 0 1.5rem;
    padding: 0;
}

fieldset legend {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.field {
    margin-bottom: 1.125rem;
}

.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.field input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 93, 159, 0.18);
}

.hint {
    margin: 0.375rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.825rem;
}

.field-error {
    margin: 0.375rem 0 0;
    color: var(--color-error-text);
    font-size: 0.85rem;
    font-weight: 500;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.925rem;
}

.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-bord);
}

.actions {
    margin-top: 1.5rem;
}

button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--color-primary);
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

button:hover {
    background: var(--color-primary-hi);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 93, 159, 0.3);
}

.muted {
    color: var(--color-text-muted);
    font-size: 0.925rem;
}
