/* Página pública — Validar certificado */

body.cert-verify-page {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(248, 110, 78, 0.12), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(239, 54, 45, 0.08), transparent 50%),
        linear-gradient(180deg, #f7f6f3 0%, #eef1f4 45%, #f4f3f0 100%);
    color: var(--mirage);
    min-height: 100vh;
}

/* Anular o main genérico do style.css (100vh / centrado / mirage) */
body.cert-verify-page main.cert-verify {
    position: relative;
    isolation: auto;
    overflow: visible;
    text-align: left;
    height: auto;
    min-height: calc(100vh - 220px);
    margin: 0;
    padding: 170px 20px 72px;
    background: transparent;
}

.cert-verify__shell {
    width: min(100%, 720px);
    margin: 0 auto;
}

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

.cert-verify__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(31, 43, 59, 0.06);
    border: 1px solid rgba(31, 43, 59, 0.08);
    color: var(--shuttle-gray);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.cert-verify__eyebrow i {
    color: var(--pomegranate);
}

.cert-verify__hero h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 4vw, 2.55rem);
    font-weight: 700;
    line-height: 1.15;
    background: linear-gradient(90deg, var(--pomegranate), var(--dtim-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cert-verify__hero .lead {
    margin: 0 auto;
    max-width: 38rem;
    color: var(--shuttle-gray);
    font-size: 1.05rem;
    line-height: 1.55;
}

.cert-verify__card {
    background: linear-gradient(
        165deg,
        rgba(31, 43, 59, 0.96) 0%,
        rgba(24, 34, 48, 0.98) 100%
    );
    color: var(--cararra);
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 18px 48px rgba(31, 43, 59, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: clamp(1.35rem, 3vw, 2rem);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.cert-verify__card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-verify__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--pomegranate), var(--sandy-brown));
    box-shadow: 0 8px 20px rgba(248, 110, 78, 0.28);
}

.cert-verify__card-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.cert-verify__card-head p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(244, 243, 240, 0.72);
    line-height: 1.45;
}

.cert-verify-form {
    display: grid;
    gap: 0.65rem;
}

.cert-verify-form label {
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(244, 243, 240, 0.9);
}

.cert-verify-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

.cert-verify-form input[type="text"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.cert-verify-form input[type="text"]::placeholder {
    color: rgba(244, 243, 240, 0.38);
    letter-spacing: 0;
    font-family: "DINLight", sans-serif;
}

.cert-verify-form input[type="text"]:focus {
    border-color: rgba(248, 110, 78, 0.65);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(248, 110, 78, 0.18);
}

.cert-verify-form button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.35rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pomegranate), var(--dtim-red));
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(239, 54, 45, 0.28);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.cert-verify-form button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(239, 54, 45, 0.34);
}

.cert-verify-form button:active {
    transform: translateY(0);
}

.cert-verify-result {
    margin-top: 1.35rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.cert-verify-result__banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.cert-verify-result__banner i {
    font-size: 1.25rem;
}

.cert-verify-result.ok .cert-verify-result__banner {
    background: linear-gradient(90deg, rgba(34, 140, 78, 0.28), rgba(34, 140, 78, 0.08));
    color: #9ee4b5;
    border-bottom: 1px solid rgba(110, 200, 140, 0.25);
}

.cert-verify-result.ko .cert-verify-result__banner {
    background: linear-gradient(90deg, rgba(180, 55, 55, 0.3), rgba(180, 55, 55, 0.08));
    color: #f0a8a8;
    border-bottom: 1px solid rgba(220, 120, 120, 0.25);
}

.cert-verify-result__body {
    padding: 1.1rem 1.15rem 1.2rem;
}

.cert-verify-result.ko .cert-verify-result__body p {
    margin: 0;
    color: rgba(244, 243, 240, 0.82);
    line-height: 1.55;
    font-size: 0.95rem;
}

.cert-verify-dl {
    margin: 0;
    display: grid;
    gap: 0;
}

.cert-verify-dl > div {
    display: grid;
    grid-template-columns: minmax(7.5rem, 30%) 1fr;
    gap: 0.55rem 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cert-verify-dl > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cert-verify-dl > div:first-child {
    padding-top: 0;
}

.cert-verify-dl dt {
    margin: 0;
    color: rgba(244, 243, 240, 0.55);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    align-self: start;
    padding-top: 0.1rem;
}

.cert-verify-dl dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.4;
    word-break: break-word;
}

.cert-verify-note {
    margin: 1.35rem 0 0;
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: rgba(244, 243, 240, 0.62);
    font-size: 0.86rem;
    line-height: 1.5;
}

.cert-verify-note i {
    color: var(--macaroni-and-cheese);
    margin-right: 0.35rem;
}

.cert-verify-note a {
    color: #ffb39a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cert-verify-note a:hover {
    color: #fff;
}

@media (max-width: 560px) {
    body.cert-verify-page main.cert-verify {
        padding: 150px 14px 56px;
    }

    .cert-verify__card {
        border-radius: 16px;
    }

    .cert-verify-form button {
        width: 100%;
    }

    .cert-verify-dl > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .cert-verify-dl dt {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}
