/* Estilos exclusivos da tela login. */
body {
            min-height: 100vh;
            margin: 0;
            display: grid;
            place-items: center;
            background:
                linear-gradient(135deg, rgba(13, 50, 74, 0.94), rgba(21, 71, 94, 0.86)),
                #0d324a;
        }

        .login-shell {
            width: min(440px, calc(100vw - 32px));
            background: var(--fmc-surface);
            border: 1px solid var(--fmc-line);
            border-radius: 12px;
            box-shadow: 0 24px 60px rgba(5, 20, 35, 0.28);
            overflow: hidden;
        }

        .login-header {
            padding: 32px 32px 24px;
            background: #f7fafd;
            border-bottom: 1px solid var(--fmc-line);
        }

        .login-brand {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 22px;
            color: #16364d;
        }

        .login-brand-mark {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: grid;
            place-items: center;
            background: #16364d;
            color: var(--fmc-surface);
            font-weight: 800;
            letter-spacing: 0;
        }

        .login-brand strong,
        .login-brand small {
            display: block;
        }

        .login-brand strong {
            font-size: 18px;
        }

        .login-brand small {
            color: #5c7088;
            margin-top: 2px;
        }

        .login-header h1 {
            margin: 0;
            color: #172434;
            font-size: 26px;
            line-height: 1.15;
        }

        .login-header p {
            margin: 8px 0 0;
            color: #5c7088;
        }

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

        .login-form {
            display: grid;
            gap: 18px;
        }

        .login-form .field {
            display: grid;
            gap: 7px;
        }

        .login-form label {
            font-weight: 700;
            color: #2d3d51;
        }

        .login-form input {
            width: 100%;
            box-sizing: border-box;
            border: 1px solid #c8d6e5;
            border-radius: 8px;
            padding: 13px 14px;
            font-size: 15px;
            color: #162335;
            background: var(--fmc-surface);
        }

        .login-form input:focus {
            outline: 2px solid rgba(97,126,147,0.18);
            border-color: var(--fmc-focus-color);
        }

        .login-error {
            padding: 12px 14px;
            border-radius: 8px;
            background: #fff3f0;
            color: #a33a1f;
            font-weight: 700;
            border: 1px solid #ffd4c7;
        }

        .login-submit {
            width: 100%;
            justify-content: center;
            min-height: 46px;
            font-size: 15px;
        }

        .login-wait p { line-height: 1.5; }
        .login-wait .login-error p { margin-bottom: 0; }
        .login-wait .login-submit { display: flex; box-sizing: border-box; text-decoration: none; }

.login-shell-wide {
    width: min(840px, calc(100vw - 32px));
    margin-block: 16px;
}

.login-shell-access .login-form {
    max-width: 376px;
    margin-inline: auto;
}

.login-accesses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.login-access {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid #c8d6e5;
    border-radius: 8px;
    background: #fff;
    color: #16364d;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

a.login-access:hover {
    background: #e9f2fb;
}

.login-access:focus-visible,
.login-form:focus-visible {
    outline: 2px solid #246090;
    outline-offset: 3px;
}

.login-access-unavailable {
    background: #f1f5f9;
    color: #46576b;
}

.login-access-unavailable small {
    margin-top: 3px;
    font-size: .75rem;
    font-weight: 500;
}

.login-documents {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.login-documents li,
.login-document-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding-block: 12px;
}

.login-documents li {
    border-bottom: 1px solid var(--fmc-line);
    overflow-wrap: anywhere;
}

.login-documents a,
.login-document-pages a {
    color: #16364d;
    font-weight: 700;
}

.login-document-pages {
    justify-content: center;
    margin-bottom: 16px;
}

@media (max-width: 740px) {
    .login-accesses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .login-header,
    .login-body {
        padding-inline: 16px;
    }
}

@media (max-width: 315px) {
    .login-accesses {
        grid-template-columns: 1fr;
    }
}

body[data-fmc-ui="standalone"] {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.login-submit {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--fmc-primary);
    border-radius: 8px;
    background: var(--fmc-primary);
    color: var(--fmc-surface);
    font-weight: 700;
    cursor: pointer;
}
.login-submit:hover { background: var(--fmc-primary-hover); }
.login-submit:disabled { cursor: wait; opacity: .75; }
.login-error ul, .login-form .errorlist { margin: 0; padding-left: 1.25rem; }
.login-form .errorlist { color: #a33a1f; }
.login-ajuda { margin: 1rem 0 0; color: #46576b; font-size: .875rem; }
