.cert-page {
    padding: 28px 0 48px;
}

.cert-intro {
    margin: 0 0 40px;
}

.cert-intro-panel {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 32px 36px;
    background: linear-gradient(135deg, #fffdf8 0%, #f7f4ee 100%);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(3, 63, 136, 0.08);
}

.cert-intro-icon {
    width: 190px;
    height: 176px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.cert-intro-icon img {
    display: block;
    width: 740px;
    height: 176px;
    max-width: none;
}

.cert-intro-body {
    flex: 1;
    min-width: 0;
}

.cert-intro-title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: 2.15rem;
    font-weight: 700;
    color: #033f88;
    line-height: 1.15;
    letter-spacing: -0.02em;
    border-bottom: 3px solid #f9a800;
}

.cert-intro-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
    color: #2a2a2a;
    text-align: left;
    max-width: 62ch;
}

.cert-intro-text::first-letter {
    float: left;
    margin: 0.06em 0.12em 0 0;
    font-size: 3.1em;
    line-height: 0.82;
    font-weight: 700;
    color: #033f88;
}

.cert-intro-keywords {
    font-weight: 700;
    color: #033f88;
}

.cert-login-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 36px 28px;
    background: linear-gradient(160deg, #ffffff 0%, #f7f8fb 55%, #eef1f6 100%);
    border: 2px solid #033f88;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(3, 63, 136, 0.12);
    position: relative;
    overflow: hidden;
}

.cert-login-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -30px;
    width: 180px;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(249, 168, 0, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.cert-login-card::after {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 140px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(124, 179, 66, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cert-login-title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    -webkit-text-stroke: 1px #333333;
    text-shadow:
        1px 1px 0 #333333,
        -1px -1px 0 #333333,
        1px -1px 0 #333333,
        -1px 1px 0 #333333;
}

.cert-login-lead {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    color: #222222;
}

.cert-login-form {
    position: relative;
    z-index: 1;
}

.cert-field {
    margin-bottom: 14px;
}

.cert-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #333333;
}

.cert-field .form-control {
    height: 40px;
    font-size: 14px;
    border: 1px solid #c5c5c5;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.cert-field .form-control:focus {
    border-color: #033f88;
    box-shadow: 0 0 0 3px rgba(3, 63, 136, 0.15);
}

.cert-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.cert-btn-entrar {
    min-width: 110px;
    height: 40px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, #0450a8 0%, #033f88 100%);
    border: 1px solid #022d66;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cert-btn-entrar:hover,
.cert-btn-entrar:focus {
    background: linear-gradient(180deg, #0560c4 0%, #044a9e 100%);
    box-shadow: 0 4px 12px rgba(3, 63, 136, 0.25);
    color: #ffffff;
}

.cert-forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: #033f88 !important;
    text-decoration: underline !important;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.cert-forgot-link:hover,
.cert-forgot-link:focus {
    color: #f9a800 !important;
}

.cert-msg {
    display: block;
    width: 100%;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #cc0000;
    text-align: center;
}

.cert-msg-success {
    color: #2e7d32 !important;
}

/* Lista de certificados (p&oacute;s-login) */
.cert-list-page {
    padding-bottom: 56px;
}

.cert-welcome-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #fffdf8 0%, #f7f4ee 100%);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(3, 63, 136, 0.08);
}

.cert-welcome-greeting {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #033f88;
}

.cert-welcome-greeting strong {
    font-weight: 700;
}

.cert-welcome-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    max-width: 62ch;
}

.cert-btn-sair {
    flex-shrink: 0;
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #033f88 !important;
    background: #ffffff;
    border: 2px solid #033f88;
    border-radius: 6px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cert-btn-sair:hover,
.cert-btn-sair:focus {
    background: #033f88;
    color: #ffffff !important;
}

.cert-list-wrap {
    margin-top: 8px;
}

.cert-download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cert-download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px 18px 20px;
    min-height: 210px;
    background: #f8fafc;
    border: 1px solid #dde4ee;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cert-download-card:hover,
.cert-download-card:focus {
    border-color: #f9a800;
    box-shadow: 0 6px 20px rgba(249, 168, 0, 0.2);
    transform: translateY(-3px);
    text-decoration: none !important;
}

.cert-download-icon {
    display: block;
    width: 72px;
    height: auto;
    flex-shrink: 0;
}

.cert-download-event {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f9a800;
    line-height: 1.3;
}

.cert-download-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #222222;
}

.cert-download-action {
    margin-top: auto;
    padding-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #033f88;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cert-download-card:hover .cert-download-action,
.cert-download-card:focus .cert-download-action {
    color: #f9a800;
}

.cert-empty {
    padding: 40px 28px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #c5d0de;
    border-radius: 12px;
}

.cert-empty p {
    margin: 0;
    font-size: 16px;
    color: #555555;
}

@media (max-width: 767.98px) {
    .cert-intro {
        margin-bottom: 32px;
    }

    .cert-intro-panel {
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding: 24px 20px;
    }

    .cert-intro-body {
        width: 100%;
    }

    .cert-intro-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .cert-intro-icon {
        width: 140px;
        height: 130px;
    }

    .cert-intro-icon img {
        width: 545px;
        height: 130px;
        max-width: none;
    }

    .cert-intro-text {
        font-size: 16px;
        line-height: 1.7;
        max-width: none;
    }

    .cert-login-card {
        padding: 24px 20px 22px;
    }

    .cert-login-title {
        font-size: 26px;
    }

    .cert-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cert-btn-entrar {
        width: 100%;
    }

    .cert-welcome-panel {
        flex-direction: column;
        padding: 22px 20px;
    }

    .cert-btn-sair {
        align-self: flex-start;
    }

    .cert-download-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .cert-download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
