/* =========================================================
   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;
}