/* CONVENIOS_PORTAL_CSS_1G_20260712 */

:root {
    --wine: #8e1537;
    --wine-dark: #651027;
    --blue: #003b71;
    --blue-dark: #00294f;
    --ink: #172033;
    --muted: #667085;
    --line: #e5e9f0;
    --surface: #ffffff;
    --background: #f4f6f9;
    --success: #087a55;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(142, 21, 55, .12), transparent 30%),
        radial-gradient(circle at 88% 90%, rgba(0, 59, 113, .14), transparent 34%),
        var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.portal-shell {
    min-height: 100vh;
    padding: 32px 20px;
}

.login-shell {
    display: grid;
    place-items: center;
}

.login-card,
.content-card {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 30px 80px rgba(21, 32, 51, .14);
    backdrop-filter: blur(18px);
}

.login-card {
    max-width: 470px;
    overflow: hidden;
    border-radius: 30px;
}

.login-header {
    position: relative;
    overflow: hidden;
    padding: 36px 38px 32px;
    color: white;
    background: linear-gradient(135deg, var(--wine), var(--blue));
}

.login-header::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -70px;
    top: -85px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}

.brand-mark {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    font-size: 28px;
    font-weight: 900;
}

.login-header h1 {
    position: relative;
    z-index: 1;
    margin: 22px 0 8px;
    font-size: 30px;
    line-height: 1.1;
}

.login-header p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
}

.login-body {
    padding: 32px 38px 38px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #cfd6df;
    border-radius: 14px;
    color: var(--ink);
    background: white;
    font: inherit;
    outline: none;
    transition: .2s ease;
}

.field input:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 4px rgba(142, 21, 55, .10);
}

.password-row {
    position: relative;
}

.password-row input {
    padding-right: 92px;
}

.password-toggle {
    position: absolute;
    right: 9px;
    top: 8px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    padding: 0 11px;
    color: var(--blue);
    background: #eef4fa;
    font-weight: 800;
    cursor: pointer;
}

.primary-button,
.logout-button {
    border: 0;
    border-radius: 14px;
    color: white;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.primary-button {
    width: 100%;
    min-height: 52px;
    background: var(--wine);
    box-shadow: 0 12px 24px rgba(142, 21, 55, .20);
}

.primary-button:hover {
    transform: translateY(-1px);
    background: var(--wine-dark);
}

.flash {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.flash-success {
    color: var(--success);
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.flash-error {
    color: var(--danger);
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.security-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.portal-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, .80);
    border-radius: 22px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 16px 45px rgba(21, 32, 51, .08);
}

.brand-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-inline .brand-mark {
    width: 44px;
    height: 44px;
    border-color: transparent;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--wine), var(--blue));
    font-size: 21px;
}

.brand-inline strong {
    display: block;
}

.brand-inline span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.logout-button {
    min-height: 42px;
    padding: 0 16px;
    background: var(--blue);
}

.logout-button:hover {
    background: var(--blue-dark);
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 34px;
    border-radius: 28px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--wine));
    box-shadow: 0 24px 60px rgba(0, 59, 113, .16);
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero small {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .10em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 43px);
}

.hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.badge {
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 850;
}

.content-card {
    border-radius: 26px;
    padding: 30px;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: var(--wine);
    background: rgba(142, 21, 55, .09);
    font-size: 28px;
}

.content-card h2 {
    margin: 0 0 9px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 640px) {
    .portal-shell {
        padding: 18px 12px;
    }

    .login-header,
    .login-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .topbar {
        align-items: flex-start;
    }

    .brand-inline span {
        max-width: 180px;
    }

    .hero,
    .content-card {
        padding: 24px;
    }
}


/* CONVENIOS_PORTAL_SEARCH_CSS_1J_20260712 */

.search-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.search-heading .empty-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.beneficiary-search-form {
    margin-top: 28px;
}

.search-label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 850;
}

.search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-control input {
    width: 100%;
    min-height: 54px;
    padding: 0 17px;
    border: 1px solid #cfd6df;
    border-radius: 15px;
    color: var(--ink);
    background: white;
    font: inherit;
    outline: none;
    transition: .2s ease;
}

.search-control input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 59, 113, .10);
}

.search-submit {
    min-width: 145px;
    min-height: 54px;
    border: 0;
    border-radius: 15px;
    padding: 0 22px;
    color: white;
    background: var(--wine);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.search-submit:hover {
    transform: translateY(-1px);
    background: var(--wine-dark);
}

.search-result {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 24px;
    padding: 19px;
    border: 1px solid;
    border-radius: 18px;
}

.search-result .result-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 950;
}

.search-result strong {
    display: block;
    margin-top: 1px;
    font-size: 16px;
}

.search-result p {
    margin-top: 6px;
    font-size: 14px;
}

.result-success {
    border-color: #a6f4c5;
    background: #ecfdf3;
}

.result-success .result-symbol {
    color: #067647;
    background: #d1fadf;
}

.result-warning {
    border-color: #fedf89;
    background: #fffaeb;
}

.result-warning .result-symbol {
    color: #b54708;
    background: #fef0c7;
}

.result-error {
    border-color: #fecdca;
    background: #fef3f2;
}

.result-error .result-symbol {
    color: #b42318;
    background: #fee4e2;
}

.result-neutral {
    border-color: #d0d5dd;
    background: #f9fafb;
}

.result-neutral .result-symbol {
    color: #475467;
    background: #eaecf0;
}

.result-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.result-categories span {
    padding: 6px 9px;
    border-radius: 9px;
    color: #05603a;
    background: #d1fadf;
    font-size: 11px;
    font-weight: 850;
}

.privacy-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .search-heading {
        align-items: flex-start;
    }

    .search-control {
        grid-template-columns: 1fr;
    }

    .search-submit {
        width: 100%;
    }
}
