/* =========================================================
   ACERVO RIO ESPERA
   Shared application stylesheet
   ========================================================= */


/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f6f8;
    color: #111827;
}

a {
    color: #1261a0;
}


/* ---------- Header ---------- */

.site-header {
    background: #1261a0;
    color: white;
    padding: 28px 20px;
}

.header-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
}


/* ---------- Brand ---------- */

.brand {
    display: flex;
    align-items: center;

    gap: 18px;

    color: white;
    text-decoration: none;

    min-width: 0;
}

.brand:hover {
    color: white;
    text-decoration: none;
}

.brand-logo {
    width: 72px;
    height: 72px;

    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    margin: 0;

    color: white;

    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
}

.brand-subtitle {
    margin-top: 6px;

    color: white;

    font-size: 16px;
    line-height: 1.25;

    opacity: .92;
}


/* ---------- User navigation ---------- */

.user-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex-wrap: wrap;
}

.user-name {
    color: white;
    font-size: 14px;
    margin-right: 2px;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 13px;

    border:
        1px solid
        rgba(255,255,255,.55);

    border-radius: 5px;

    background: transparent;
    color: white;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease;
}

.nav-button:hover {
    background: rgba(255,255,255,.12);
    color: white;
}

.logout-form {
    margin: 0;
}

.logout-button {
    appearance: none;
}


/* ---------- General page container ---------- */

.page-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 30px 20px 50px;

    flex: 1;
}


/* ---------- Cards ---------- */

.card {
    background: white;

    border: 1px solid #d7dee7;
    border-radius: 8px;

    padding: 24px;
}


/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: 700;
}

.form-control {
    display: block;

    width: 100%;

    padding: 12px 13px;

    border: 1px solid #b9c6d3;
    border-radius: 5px;

    background: white;

    font: inherit;
}

.form-control:focus {
    outline: 2px solid rgba(18,97,160,.18);
    border-color: #1261a0;
}


/* ---------- Main buttons ---------- */

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;

    border: 0;
    border-radius: 5px;

    background: #1261a0;
    color: white;

    font: inherit;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

.button-primary:hover {
    background: #0d5289;
    color: white;
}


/* ---------- Footer ---------- */

.site-footer {
    margin-top: auto;

    background: #ffffff;

    border-top: 1px solid #d7dee7;

    color: #5f6b76;
}

.footer-inner {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 25px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.footer-brand {
    font-weight: 700;
    color: #1261a0;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 14px;
}


/* ---------- Responsive ---------- */

@media (max-width: 700px) {

    .site-header {
        padding: 22px 18px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 18px;
    }

    .brand {
        gap: 12px;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .brand-name {
        font-size: 25px;
    }

    .brand-subtitle {
        font-size: 14px;
    }

    .user-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;

        gap: 12px;
    }

}


/* ---------- Very small screens ---------- */

@media (max-width: 430px) {

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 13px;
    }

    .nav-button {
        padding: 8px 10px;
        font-size: 13px;
    }

}
/* =========================================================
   Registration
   ========================================================= */

.register-page {
    width: 100%;
    max-width: 560px;

    margin: 0 auto;
    padding: 45px 20px 60px;

    flex: 1;
}

.register-card {
    background: white;

    border: 1px solid #d7dee7;
    border-radius: 8px;

    padding: 32px;
}

.register-card h1 {
    margin: 0 0 18px;

    color: #1261a0;
    font-size: 28px;
}

.register-intro {
    margin-bottom: 25px;
    line-height: 1.45;
}

.register-submit {
    width: 100%;
    margin-top: 5px;
}

.register-links {
    margin-top: 22px;
    text-align: center;
}

.register-links p {
    margin: 12px 0;
}

.error {
    background: #fdecec;
    border-left: 4px solid #b42318;

    padding: 12px;
    margin-bottom: 18px;
}


/* =========================================================
   Account page
   ========================================================= */

.account-page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 60px;
    box-sizing: border-box;
}

/* =========================================================
   ACCOUNT PAGE
   ========================================================= */

.account-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px 60px;
    box-sizing: border-box;
}

/* =========================================================
   ACCOUNT PAGE
   ========================================================= */

.account-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px 60px;
    box-sizing: border-box;
}


/* Account cards */

.account-page .card {
    background: #ffffff;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    padding: 25px;
    box-sizing: border-box;
}

.account-page .card + .card {
    margin-top: 22px;
}


.account-page h2 {
    margin-top: 0;
    color: #1261a0;
}


/* Account action buttons */

.account-page .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 25px;
}

.account-page .actions form {
    margin: 0;
}


.account-page .button {
    display: inline-block;
    padding: 11px 16px;
    border: 0;
    border-radius: 5px;
    background: #1261a0;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.account-page .button:hover {
    background: #0d4f85;
}


/* Help button */

.account-page .help-button {
    background: #b06b16;
}

.account-page .help-button:hover {
    background: #8e5410;
}


/* Success message */

.account-page .success {
    background: #eaf7ed;
    border-left: 4px solid #188038;
    padding: 14px;
    margin-bottom: 20px;
}


/* =========================================================
   DOWNLOAD HISTORY
   ========================================================= */

.download-history {
    margin-top: 22px;
}


.table-wrapper {
    width: 100%;
    overflow-x: auto;
}


.download-history table {
    width: 100%;
    border-collapse: collapse;
}


.download-history th {
    background: #1261a0;
    color: #ffffff;
    text-align: left;
    padding: 10px;
}


.download-history td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}


.download-history a {
    color: #1261a0;
    font-weight: bold;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .account-page {
        padding: 30px 15px 45px;
    }

    .account-page .card {
        padding: 20px;
    }

    .account-page .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-page .actions .button,
    .account-page .actions form,
    .account-page .actions form button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

}
.brand-home-link {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
}

.brand-home-link:hover,
.brand-home-link:focus {
    text-decoration: none;
    color: inherit;
}

.brand-home-link img {
    display: block;
}
.pessoa-perfil {
    max-width: 820px;
}

.pessoa-intro {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #41514d;
}

.pessoa-bloco {
    margin-top: 2.5rem;
}

.pessoa-bloco h2 {
    margin-bottom: .8rem;
}

.pessoa-bloco p {
    line-height: 1.75;
}

.pessoa-dados {
    margin: 1.4rem 0 1.8rem;
    padding: 1.2rem 1.4rem;
    background: #f7f5f0;
    border-left: 3px solid #1f5f70;
}

.pessoa-dados div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: .35rem 0;
}

.pessoa-dados dt {
    font-weight: 700;
    color: #173e35;
}

.pessoa-dados dd {
    margin: 0;
}

.pessoa-frase {
    margin: 2.8rem 0 1rem;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid #b59b6a;
    background: #f7f5f0;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #173e35;
}

@media (max-width: 700px) {
    .pessoa-dados div {
        grid-template-columns: 1fr;
        gap: .15rem;
    }
}
