/* ==========================================================================
   Document Authentication Portal — Stylesheet v4 (light / professional)
   Palette: white canvas / white card / deep navy text / muted gold accent
   Type:    Source Serif 4 (display), IBM Plex Sans (body), IBM Plex Mono (data)
   ========================================================================== */

:root {
    --page-bg: #F4F5F7;
    --surface: #FFFFFF;
    --surface-2: #FBFBFC;
    --raised: #F1F2F5;
    --raised-focus: #FFFFFF;
    --line: #E1E4E9;
    --line-soft: #ECEEF1;
    --line-strong: #C7CCD4;
    --brass: #A67C2E;
    --brass-bright: #C79A4B;
    --brass-deep: #8A6423;
    --on-brass: #FFFFFF;
    --verified: #2F7A4E;
    --verified-bg: #EAF6EF;
    --verified-line: #BFE3CD;
    --ink: #14212F;
    --slate: #55606F;
    --slate-dim: #8993A3;
    --shadow: 0 24px 56px rgba(20, 33, 47, 0.09), 0 2px 6px rgba(20, 33, 47, 0.05);
    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
    --guilloche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14'%3E%3Cpath d='M0 7 Q10 -3 20 7 T40 7' stroke='%23A67C2E' stroke-width='0.6' fill='none' opacity='0.45'/%3E%3Cpath d='M0 7 Q10 17 20 7 T40 7' stroke='%23A67C2E' stroke-width='0.6' fill='none' opacity='0.3'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--page-bg);
    color: var(--ink);
    font-family: var(--font-body);
}

body {
    background-image: radial-gradient(ellipse 900px 460px at 50% -8%, rgba(166,124,46,0.06), transparent 65%);
}

/* ---------- Page: single centered column ---------- */

.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 56px 20px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ---------- Brand block ---------- */

.brand {
    margin-bottom: 30px;
}

.brand__emblem {
    width: 240px;
    
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.brand__emblem1 {
    width: 240px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
}
.brand__eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-deep);
    margin: 0 0 10px;
}

.brand__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: var(--ink);
    margin: 0;
    text-transform: uppercase;
}

    .brand__title small {
        display: block;
        font-family: var(--font-mono);
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--slate);
        margin-top: 8px;
    }

/* ---------- Panel ---------- */

.panel {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.panel__band {
    height: 14px;
    background-color: var(--surface-2);
    background-image: var(--guilloche);
    background-repeat: repeat-x;
    background-position: center;
}

.panel__band--top {
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--line-soft);
}

.panel__band--bottom {
    border-radius: 0 0 10px 10px;
    border-top: 1px solid var(--line-soft);
}

.panel__inner {
    padding: 36px 36px 32px;
}

@media (max-width: 520px) {
    .panel__inner {
        padding: 28px 20px 26px;
    }
}

.lede {
    font-size: 14px;
    line-height: 1.6;
    color: var(--slate);
    margin: 0 0 28px;
}

/* ---------- Form elements (all centered) ---------- */

.field {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.field-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 10px;
}

input[type="text"] {
    width: 100%;
    max-width: 320px;
    height: 48px;
    background: var(--raised);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 0 14px;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

    input[type="text"]::placeholder {
        color: var(--slate-dim);
    }

    input[type="text"]:focus {
        border-color: var(--brass);
        background: var(--raised-focus);
        box-shadow: 0 0 0 3px rgba(166,124,46,0.14);
    }

/* ---------- Captcha widget ---------- */

.captcha {
    margin: 6px 0 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.captcha__image-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.captcha__image {
    width: 180px;
    height: 200px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--raised);
    overflow: hidden;
    align-items: center;
    background-color: white;
}

.captcha__refresh {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}

    .captcha__refresh:hover {
        color: var(--brass);
        border-color: var(--brass);
    }

    .captcha__refresh:active svg {
        transform: rotate(90deg);
    }

    .captcha__refresh svg {
        transition: transform 0.2s ease;
    }

.captcha__hint {
    font-size: 12px;
    color: var(--slate-dim);
    margin: 0 0 14px;
}

/* ---------- Buttons ---------- */

.btn-verify {
    width: 100%;
    max-width: 320px;
    height: 48px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 6px;
    border: 1px solid var(--brass-deep);
    background: var(--brass);
    color: var(--on-brass);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

    .btn-verify:hover {
        background: var(--brass-deep);
    }

    .btn-verify:active {
        transform: scale(0.98);
    }

.btn-cancel {
    margin-top: 12px;
    height: 32px;
    padding: 0 6px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: none;
    color: var(--slate);
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

    .btn-cancel:hover {
        color: var(--ink);
        border-color: var(--line-strong);
    }

/* ---------- Divider ---------- */

.hr {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
    margin: 8px 0 28px;
    border: none;
    width: 100%;
}

/* ---------- Results ---------- */

.results {
    /*display: none;*/
    width: 100%;
}

    /*.results.is-visible {
        display: block;
    }*/

.status-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--verified-bg);
    border: 1px solid var(--verified-line);
    border-radius: 7px;
    padding: 16px 18px;
    margin-bottom: 26px;
}

.status-banner__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--verified);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.status-banner__title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--verified);
    letter-spacing: 0.01em;
    margin: 0;
}

.status-banner__meta {
    font-size: 12.5px;
    color: var(--slate);
    margin: 0;
}

.status-banner__chip {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--slate);
    background: var(--surface);
    border: 1px solid var(--verified-line);
    border-radius: 4px;
    padding: 5px 10px;
    margin-top: 4px;
}

.evidence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: center;
}

@media (max-width: 460px) {
    .evidence-grid {
        grid-template-columns: 1fr;
    }
}

.evidence-panel {
    margin: 0;
}

    .evidence-panel figcaption {
        font-family: var(--font-mono);
        font-size: 10.5px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--slate-dim);
        margin: 0 0 10px;
    }

.evidence-frame {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--raised);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .evidence-frame img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.evidence-frame--stamp {
    aspect-ratio: 1 / 1;
}

.evidence-frame--document {
    aspect-ratio: 1 / 1.414;
}

.evidence-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--slate-dim);
    padding: 16px;
}

.evidence-placeholder__text {
    font-size: 10.5px;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */

.portal-footer {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portal-footer__logo {
    margin-bottom: 12px;
    opacity: 0.85;
}

.portal-footer p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--slate-dim);
}
